:root {
    --primary-color: #7E6D95; /* lavender */
    --primary-dark: #5A4563; /* plum */
    --primary-light: #9B89B5;
    --secondary-color: #F19FB0; /* pink */
    --accent-color: #F6C3B0; /* peach */
    --bg-color: #FFFFFF;
    --bg-secondary: #FFF7F6; /* very light peach */
    --text-primary: #2B2430; /* dark plum for readability */
    --text-secondary: #6E5974;
    --text-muted: #9C8DA0;
    --border-color: #EDE6EE;
    --dark-bg: #191223;
    --dark-bg-secondary: #2b2130;
    --dark-text-primary: #F7F3F7;
    --dark-text-secondary: #D8CFE0;
    --dark-border: #3b3141;
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --section-padding: 100px;
    --container-width: 1200px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-color: var(--dark-bg);
    --bg-secondary: var(--dark-bg-secondary);
    --text-primary: var(--dark-text-primary);
    --text-secondary: var(--dark-text-secondary);
    --border-color: var(--dark-border);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-cursor {
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-light);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    mix-blend-mode: difference;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(90, 52, 99, 0.18);
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-size: 1rem;
    color: var(--text-color);
    letter-spacing: 1px;
    animation: fadePulse 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}


.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition-base);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

.nav-logo svg { vertical-align: middle; margin-right: 10px; border-radius: 8px; }
.nav-brand { font-family: var(--font-display); font-weight: 800; color: var(--text-primary); font-size: 18px; }

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-accent {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(20deg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    bottom: -250px;
    right: -250px;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(50px, -50px); }
    66% { transform: translate(-50px, 50px); }
}

/* Vibe overlay: subtle animated gradient + shapes to add ambience */
.vibe-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at 10% 20%, rgba(246,195,176,0.06), transparent 15%),
                radial-gradient(ellipse at 90% 80%, rgba(241,159,176,0.06), transparent 12%);
    mix-blend-mode: screen;
    animation: vibeShift 12s linear infinite;
}

@keyframes vibeShift {
    0% { transform: scale(1) translateY(0); opacity: 0.95; }
    50% { transform: scale(1.03) translateY(-6px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 0.95; }
}

/* decorative bars at bottom-left for subtle 'vibe' */
.vibe-overlay::before {
    content: '';
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: 220px;
    height: 6px;
    background: linear-gradient(90deg, rgba(126,109,149,0.7), rgba(241,159,176,0.6));
    filter: blur(6px);
    opacity: 0.55;
}

.vibe-overlay::after {
    content: '';
    position: absolute;
    right: 40px;
    top: 30%;
    width: 6px;
    height: 140px;
    background: linear-gradient(180deg, rgba(241,159,176,0.4), rgba(126,109,149,0.4));
    filter: blur(8px);
    opacity: 0.35;
}

/* Floating vibe icons removed per user preference */

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-greeting {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.name-line {
    display: block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 40px;
}

.typewriter {
    color: var(--primary-color);
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 15px;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(90, 52, 99, 0.18);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 52, 99, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.hero-image {
    animation: slideInRight 1s ease-out;
}

.image-frame {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: white;
    box-shadow: 0 20px 60px rgba(90, 52, 99, 0.12);
}

.frame-accent {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
}

.frame-accent-1 {
    top: -20px;
    right: -20px;
    width: 80%;
    height: 80%;
    animation: rotate 20s linear infinite;
}

.frame-accent-2 {
    bottom: -20px;
    left: -20px;
    width: 70%;
    height: 70%;
    border-color: var(--secondary-color);
    animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    position: relative;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    box-shadow: 0 20px 50px rgba(90, 52, 99, 0.12);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;  
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;  
    display: block;  
}
/* Background image */
.image-frame {
    position: absolute;
    z-index: 1;
}

/* Image to bring to front */
.profile-image {
    position: relative;
    z-index: 10;
}


.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 25px; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-number {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.title-decoration {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    margin: 0 auto;
    border-radius: 2px;
}

.about {
    padding: var(--section-padding) 20px;
    background: var(--bg-secondary);
}

/* Creative work showcase */
.creative-work {
    padding: var(--section-padding) 20px;
    background: var(--bg-color);
}

.creative-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

/* ensure chatbot window stays hidden until toggled */
.chatbot-window {
    display: none !important;
}

.chatbot-window.active {
    display: flex !important;
}

.creative-role {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.creative-project {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.creative-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.creative-link a:hover {
    text-decoration: underline;
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-intro {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-color);
    font-family: var(--font-display);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.education-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    transition: var(--transition-base);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.education-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.education-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.education-institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.education-details {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.education-details i {
    color: var(--primary-color);
    margin-right: 8px;
}

.certifications {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.certifications h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cert-item:last-child {
    border-bottom: none;
}

.cert-item i {
    color: var(--primary-color);
    font-size: 18px;
}

.cert-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-base);
}

.cert-item a:hover {
    color: var(--primary-color);
}

.skills {
    padding: var(--section-padding) 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 20px;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.skill-category h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--bg-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-base);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.projects {
    padding: var(--section-padding) 20px;
    background: var(--bg-secondary);
}

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

.project-card {
    background: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(90, 52, 99, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition-base);
}

.project-link:hover {
    transform: scale(1.1);
}

.project-content {
    padding: 30px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tag {
    background: var(--bg-secondary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 600;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-features {
    list-style: none;
}

.project-features li {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-features i {
    color: var(--primary-color);
    font-size: 12px;
}

.achievements {
    padding: var(--section-padding) 20px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    text-align: right;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-content {
    width: 45%;
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.timeline-date {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 16px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-base);
}

.achievement-badge:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.contact {
    padding: var(--section-padding) 20px;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-text a,
.contact-text p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    background: var(--bg-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

.social-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* Social Hub Grid */
.contact-extras {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Playground */
.playground { background: var(--bg-color); padding: 18px; border-radius: 14px; box-shadow: var(--shadow-lg); }
.playground-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.sr-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sr-title { font-family: var(--font-display); font-size:20px; letter-spacing:0.6px; color:var(--primary-color); margin:0; }
.vibe-icons { display:flex; gap:10px; align-items:center; }
.icon { opacity:0.9; color:var(--text-secondary); transition: transform 0.35s ease, color 0.35s ease; }
.icon:hover { transform: translateY(-4px) scale(1.05); color:var(--accent-color); }

/* subtle pulsing glow around title */
.sr-title { position:relative; }
.sr-title::after {
    content: '';
    position: absolute;
    left: -6px; right: -6px; top: -6px; bottom: -6px;
    border-radius: 8px;
    background: radial-gradient(closest-side, rgba(241,159,176,0.06), transparent 60%);
    z-index: -1;
    filter: blur(6px);
    opacity: 0.9;
    animation: titleGlow 4s ease-in-out infinite;
}
@keyframes titleGlow { 0% { transform: scale(1); opacity:0.7 } 50% { transform: scale(1.02); opacity:1 } 100% { transform: scale(1); opacity:0.7 } }
.playground-tabs { display:flex; gap:8px; margin-bottom:12px; }
.playground-tabs .tab { padding:8px 12px; border-radius:10px; background:transparent; border:1px solid var(--border-color); cursor:pointer; }
.playground-tabs .tab.active { background: linear-gradient(90deg, var(--accent-color), var(--secondary-color)); color:white; border:none; }
.tab-content { padding:10px 0; }
.game-section { margin-bottom:12px; }
.game-controls { display:flex; gap:8px; align-items:center; }
#guess-input { width:120px; padding:8px; border-radius:8px; border:1px solid var(--border-color); }
#guess-feedback { margin-top:8px; color:var(--text-secondary); }
.leaderboard { margin-top:12px; }
#leaderboard-list { list-style:decimal inside; max-height:220px; overflow:auto; }

/* Server Room styles */
.server-room { padding: 12px 6px; border-radius: 10px; background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(255,255,255,0.02)); }
.sr-prompt { background: var(--bg-secondary); padding: 12px; border-radius: 8px; max-height: 220px; overflow:auto; color: var(--text-primary); }
.sr-controls { display:flex; gap:8px; margin-top:10px; }
.sr-controls input { flex:1; padding:10px; border-radius:8px; border:1px solid var(--border-color); }
.sr-actions { display:flex; gap:8px; }
.sr-status { display:flex; align-items:center; gap:8px; margin-bottom:8px; }

/* success animation for solved prompt */
.sr-prompt.solved {
    animation: srPop 700ms cubic-bezier(.2,.9,.3,1);
    box-shadow: 0 8px 30px rgba(126,109,149,0.14), inset 0 0 30px rgba(241,159,176,0.04);
    border: 1px solid rgba(126,109,149,0.12);
}

@keyframes srPop {
    0% { transform: scale(1); filter: brightness(1); }
    40% { transform: scale(1.03); filter: brightness(1.06); }
    100% { transform: scale(1); filter: brightness(1); }
}

.challenge-picker { display:flex; gap:8px; align-items:center; }
#editor-container { background:var(--bg-secondary); color:var(--text-primary); border-radius:8px; padding:8px; }
.code-controls { display:flex; gap:8px; }
.social-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    background: transparent;
    padding: 12px;
    border-radius: 12px;
    box-shadow: none;
}
.social-card {
    position: relative;
    padding: 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.02));
    border: 1px solid rgba(255,255,255,0.03);
}
.social-card a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}
.social-card i {
    font-size: 22px;
    color: var(--primary-color);
}
.social-card span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}
.social-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(16,12,26,0.35);
}

/* Ensure headings and labels in playground are high-contrast */
.playground h4, .playground p, .playground label, .playground .challenge-picker, .playground .playground-header {
    color: var(--text-primary);
}

/* Make select and inputs visible in dark theme */
.playground select, .playground input, .playground textarea {
    color: var(--text-primary);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

/* Tweak active tab contrast */
.playground-tabs .tab {
    color: var(--text-secondary);
}
.playground-tabs .tab.active { color: #fff; }

/* Small responsive polish for editor area */
@media (max-width: 800px) {
    .social-hub { grid-template-columns: repeat(2, 1fr); }
    #editor-container { height: 220px; }
}

/* Fallback textarea styling inside editor container */
#editor-container textarea#fallback-editor {
    width: 100%;
    height: 100%;
    resize: none;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 12px;
    outline: none;
}

/* Puzzle Reveal */
.puzzle-reveal {
    background: var(--bg-color);
    padding: 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
}
.puzzle-title {
    margin: 0 0 6px 0;
}
.puzzle-sub {
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 240px;
    margin: 0 auto 12px;
}
.puzzle-tile {
    height: 72px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    cursor: pointer;
    transition: transform 0.35s ease, background 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.puzzle-tile.flipped {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.02);
}

/* Sliding puzzle styles */
.sliding-puzzle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.puzzle-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    background: transparent;
    border-radius: 8px;
}
.puzzle-tile.slide {
    background-size: 300px 300px;
    background-repeat: no-repeat;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 150ms ease;
    box-shadow: 0 6px 12px rgba(2,6,23,0.06);
}
.puzzle-tile.empty {
    background: linear-gradient(180deg, #f1f5f9, #fff);
    box-shadow: none;
    cursor: default;
}
.puzzle-controls { display:flex; gap:10px; justify-content:center; margin-top:6px; }

.puzzle-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2,6,23,0.6);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 2000;
}
.puzzle-modal.open {
    visibility: visible;
    opacity: 1;
}
.puzzle-modal .modal-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 420px;
    width: calc(100% - 40px);
    position: relative;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

@media (max-width: 800px) {
    .social-hub { grid-template-columns: repeat(2, 1fr); }
    .contact-content { grid-template-columns: 1fr; }
}


.contact-form {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-body);
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    left: 0;
    top: 15px;
    color: var(--text-secondary);
    font-size: 16px;
    pointer-events: none;
    transition: var(--transition-base);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 12px;
    color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

.footer {
    padding: 40px 20px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-content i {
    color: var(--secondary-color);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    .hero {
        padding: 80px 20px 60px;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-image {
        max-width: 360px;
        margin: 0 auto;
        order: -1;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-socials {
        justify-content: center;
    }
    .hero-description {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    /* --- Navigation --- */
    .hero {
        padding: 80px 15px 40px;
    }
    .nav-container {
        padding: 15px 20px;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        transition: left 0.3s ease;
        z-index: 999;
        gap: 8px;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-link {
        font-size: 17px;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    .nav-link:last-child {
        border-bottom: none;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* --- Hero --- */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding-top: 20px;
    }
    .hero-image {
        max-width: 280px;
        margin: 0 auto;
        order: -1;
    }
    .image-frame {
        width: 260px !important;
        height: 260px !important;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 12px 24px;
    }
    .hero-socials {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* --- Section Header --- */
    .section-header {
        margin-bottom: 40px;
    }
    .section-title {
        font-size: 34px;
    }

    /* --- About --- */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .stat-item {
        padding: 20px 15px;
    }
    .about-education {
        order: -1;
    }
    .education-card {
        flex-direction: column;
        gap: 15px;
    }

    /* --- Skills --- */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .skill-category {
        padding: 20px;
    }
    .skill-tags {
        gap: 6px;
    }

    /* --- Projects --- */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-card {
        max-width: 100%;
    }

    /* --- Timeline --- */
    .timeline {
        padding-left: 0;
    }
    .timeline::before {
        left: 18px;
    }
    .timeline-dot {
        left: 18px;
        width: 14px;
        height: 14px;
    }
    .timeline-item {
        padding-left: 50px;
    }
    .timeline-content {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
        padding: 18px;
    }
    .timeline-content h3 {
        font-size: 16px;
    }

    /* --- Contact --- */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-details {
        gap: 15px;
    }
    .contact-item {
        gap: 12px;
    }
    .social-links {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* --- Playground / Server Room --- */
    .playground {
        padding: 14px;
    }
    .sr-controls {
        flex-direction: column;
        gap: 8px;
    }
    .sr-controls input,
    .sr-controls button {
        width: 100%;
    }
    .sr-prompt {
        font-size: 13px;
        padding: 10px;
        overflow-x: auto;
    }

    /* --- Creative Work --- */
    .creative-content {
        padding: 24px 20px;
    }

    /* --- Certifications --- */
    .certifications {
        padding: 20px;
    }
    .cert-item {
        gap: 10px;
    }

    /* --- Hide custom cursor on touch devices --- */
    .custom-cursor,
    .cursor-follower {
        display: none;
    }

    /* --- Chatbot --- */
    .chatbot-container {
        bottom: 16px;
        right: 16px;
    }
    .chatbot-window {
        width: calc(100vw - 32px);
        right: 0;
        bottom: 75px;
        height: calc(100dvh - 120px);
        max-height: 560px;
    }
    .chatbot-suggestions {
        padding: 10px 14px;
        gap: 6px;
    }
    .suggestion-btn {
        font-size: 11px;
        padding: 6px 11px;
    }
    .chatbot-input {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 50px;
    }

    /* --- Hero --- */
    .hero {
        padding: 75px 12px 30px;
    }
    .hero-greeting {
        font-size: 15px;
    }
    .hero-name {
        font-size: 38px;
        line-height: 1.1;
    }
    .hero-title {
        font-size: 18px;
    }
    .hero-description {
        font-size: 15px;
        max-width: none;
    }
    .hero-image {
        max-width: 220px;
    }
    .image-frame {
        width: 220px !important;
        height: 220px !important;
    }
    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    .hero-socials {
        gap: 8px;
    }
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    /* --- Section headers --- */
    .section-title {
        font-size: 28px;
    }
    .section-number {
        font-size: 14px;
    }
    .section-header {
        margin-bottom: 30px;
    }

    /* --- About Stats: single column on very small screens --- */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-number {
        font-size: 28px;
    }

    /* --- Projects --- */
    .project-content {
        padding: 18px 16px;
    }
    .project-title {
        font-size: 18px;
    }
    .project-tags {
        gap: 5px;
    }
    .project-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
    .project-features li {
        font-size: 13px;
    }

    /* --- Skills --- */
    .skill-tags {
        gap: 5px;
    }
    .skill-tag {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* --- Timeline --- */
    .timeline-content h3 {
        font-size: 15px;
    }
    .timeline-content p {
        font-size: 13px;
    }
    .achievement-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
    .timeline-date {
        font-size: 12px;
    }

    /* --- Contact --- */
    .contact-form {
        padding: 24px 16px;
    }
    .contact-info h3 {
        font-size: 22px;
    }

    /* --- Chatbot full-screen feel on mobile --- */
    .chatbot-window {
        width: 100vw;
        right: -16px;
        border-radius: 16px 16px 0 0;
        bottom: 70px;
    }

    /* --- Footer --- */
    .footer-content p {
        font-size: 12px;
    }

    /* --- Nav brand smaller --- */
    .nav-brand {
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    .hero-name {
        font-size: 32px;
    }
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    .btn {
        font-size: 13px;
        padding: 10px 16px;
    }
    .section-title {
        font-size: 24px;
    }
}