@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;600;700&family=Caveat:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #662c87;
    --secondary-color: #92278f;
    --accent-color: #00aeef;
    --text-color: #2c3e50;
    --background-color: #fafafa;
    --nav-background: #ffffff;
    --heading-font: 'Cascadia Code', monospace;
    --body-font: 'Cascadia Code', monospace;
    --mono-font: 'Cascadia Code', monospace;
    --handwriting-font: 'Caveat', cursive;
    /* Matrix animation colors - brighter for 80s terminal */
    --matrix-primary: #8a2be2;
    --matrix-secondary: #ba55d3;
    --matrix-accent: #da70d6;
    --matrix-bg: rgba(250, 250, 250, 0.95);
}

[data-theme="dark"] {
    --primary-color: #92278f;
    --secondary-color: #1c75bc;
    --accent-color: #00aeef;
    --text-color: #e0e0e0;
    --background-color: #23232b;
    --nav-background: #2d2d3a;
    /* Matrix animation colors - bright phosphor purple for 80s terminal */
    --matrix-primary: #9932cc;
    --matrix-secondary: #ba55d3;
    --matrix-accent: #dda0dd;
    --matrix-bg: rgba(35, 35, 43, 0.95);
}

[data-theme="dark"] h1 {
    color: var(--primary-color); /* #92278f in dark mode */
}

[data-theme="dark"] h2 {
    color: var(--matrix-accent); /* #c792ea - lighter purple in dark mode */
}

/* Dark mode Glass styling */
[data-theme="dark"] .hero-main-card {
    background: rgba(25, 25, 35, 0.25);
    backdrop-filter: blur(40px) saturate(200%) brightness(1.1);
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 40%),
        radial-gradient(circle at 20% 80%, rgba(199, 146, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 174, 239, 0.15) 0%, transparent 50%);
}

[data-theme="dark"] .hero-main-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .hero-main-card h1 {
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .hero-main-card p {
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.9;
}

/* Dark mode chat styles - Enhanced glassmorphism */
[data-theme="dark"] .hero-chat-window {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
}

[data-theme="dark"] .hero-chat-window::before {
    background: linear-gradient(
        135deg,
        rgba(199, 146, 234, 0.3) 0%,
        rgba(199, 146, 234, 0.1) 30%,
        rgba(0, 174, 239, 0.05) 60%,
        rgba(0, 174, 239, 0.2) 100%
    );
}

[data-theme="dark"] .chat-header {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .chat-header::after,
[data-theme="dark"] .chat-input-area::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(199, 146, 234, 0.2) 20%,
        rgba(199, 146, 234, 0.2) 80%,
        transparent 100%
    );
}

[data-theme="dark"] .chat-title {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .chat-status-dot {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    box-shadow:
        0 0 0 2px rgba(81, 207, 102, 0.2),
        0 0 16px rgba(81, 207, 102, 0.7),
        inset 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Dark mode window controls with better contrast */
[data-theme="dark"] .chat-close {
    background: linear-gradient(135deg, #ff6b6b 0%, #fa5252 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .chat-minimize {
    background: linear-gradient(135deg, #ffd43b 0%, #fcc419 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .chat-maximize {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .chat-messages {
    background:
        radial-gradient(circle at 20% 50%, rgba(199, 146, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 174, 239, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.01) 100%);
}

[data-theme="dark"] .message-bubble {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .user-message .message-bubble {
    background: linear-gradient(135deg,
        rgba(199, 146, 234, 0.15) 0%,
        rgba(168, 85, 247, 0.1) 100%
    );
    border-color: rgba(199, 146, 234, 0.25);
    box-shadow:
        0 2px 12px rgba(199, 146, 234, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .ai-message .message-bubble {
    background: linear-gradient(135deg,
        rgba(0, 174, 239, 0.12) 0%,
        rgba(14, 165, 233, 0.08) 100%
    );
    border-color: rgba(0, 174, 239, 0.2);
    box-shadow:
        0 2px 12px rgba(0, 174, 239, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .chat-input {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

[data-theme="dark"] .chat-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(199, 146, 234, 0.3);
    box-shadow:
        0 0 0 2px rgba(199, 146, 234, 0.15),
        inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .chat-input-area {
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .chat-send-btn {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    box-shadow:
        0 2px 12px rgba(168, 85, 247, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .hero-description {
    opacity: 0.7;
}

[data-theme="dark"] .hero-typewriter {
    background: linear-gradient(to right,
        rgba(199, 146, 234, 0.25),
        rgba(199, 146, 234, 0.15));
    color: var(--matrix-accent);
}

[data-theme="dark"] .hero-cursor {
    color: var(--text-color);
}

/* Dark mode About page styling */
[data-theme="dark"] .about-notepad-card {
    background: rgba(60, 50, 80, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(199, 146, 234, 0.3);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(199, 146, 234, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    background-image:
        linear-gradient(135deg, rgba(199, 146, 234, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(199, 146, 234, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(0, 174, 239, 0.1) 0%, transparent 50%);
}

[data-theme="dark"] .about-notepad-card::before {
    background: rgba(199, 146, 234, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(199, 146, 234, 0.2);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(199, 146, 234, 0.2);
}

[data-theme="dark"] .about-notepad-card::after {
    background: linear-gradient(135deg, transparent 50%, rgba(199, 146, 234, 0.3) 50%);
}

[data-theme="dark"] .about-title,
[data-theme="dark"] .section-title {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .about-intro,
[data-theme="dark"] .about-notepad-card p,
[data-theme="dark"] .expertise-list {
    color: #e0e0e0;
}

[data-theme="dark"] .social-link {
    background: linear-gradient(135deg,
        rgba(199, 146, 234, 0.3),
        rgba(199, 146, 234, 0.2));
    color: #fff;
    border-color: rgba(199, 146, 234, 0.4);
}

[data-theme="dark"] .social-link:hover {
    background: linear-gradient(135deg,
        rgba(199, 146, 234, 0.4),
        rgba(199, 146, 234, 0.3));
    color: #fff;
    border-color: rgba(199, 146, 234, 0.6);
    box-shadow: 0 4px 12px rgba(199, 146, 234, 0.3);
}

[data-theme="dark"] .section-title {
    border-top-color: rgba(199, 146, 234, 0.2);
}


[data-theme="dark"] h3 {
    color: var(--primary-color); /* #92278f in dark mode */
}

/* Dark mode card backgrounds */
[data-theme="dark"] .skill-card,
[data-theme="dark"] .contact-form {
    background: var(--nav-background);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

html, body {
    height: 100%;
    overflow-x: hidden;
}

/* Base heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    line-height: 1.3;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

body.homepage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.homepage .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(45, 45, 58, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Playwrite DK Loopet', cursive;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    height: 36px;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 100%;
    width: auto;
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.25rem;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .nav-menu {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.nav-item a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: block;
    position: relative;
    font-size: 0.9rem;
}

.nav-item a:hover {
    background: rgba(146, 39, 143, 0.1);
    color: var(--primary-color);
}

.nav-item a:active,
.nav-item a.active {
    background: rgba(146, 39, 143, 0.15);
    color: var(--primary-color);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav-item a:hover {
    background: rgba(199, 146, 234, 0.15);
    color: var(--matrix-accent);
}

[data-theme="dark"] .nav-item a:active,
[data-theme="dark"] .nav-item a.active {
    background: rgba(199, 146, 234, 0.2);
    color: var(--matrix-accent);
}

.hamburger {
    background: none;
    border: none;
    box-shadow: none;
    outline: none;
    padding: 0;
    min-height: 32px;
    min-width: 32px;
    height: 32px;
    width: 32px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 9999;
    margin-left: auto;
}
.hamburger:focus {
    outline: 2px solid #92278f;
    outline-offset: 2px;
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}
.hamburger span {
    flex: none;
    display: block;
    height: 3px;
    width: 20px;
    background: #662c87;
    border-radius: 2px;
    margin: 3px 0;
    opacity: 1;
    position: relative;
    z-index: 9999;
    border: none;
}
[data-theme="dark"] .hamburger span {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.hamburger span:last-child {
    margin-bottom: 0;
}

/* Theme toggle button with glassy effect */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 1rem;
    padding: 0.6rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-color);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.theme-toggle-btn:hover {
    background: rgba(146, 39, 143, 0.1);
    transform: translateY(-1px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.theme-toggle-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

[data-theme="dark"] .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-color);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(199, 146, 234, 0.15);
}

.theme-icon {
    font-size: 1.4rem;
    line-height: 1;
    display: block;
}

.main-content {
    flex: 1 0 auto;
    padding-bottom: 0;
}

.hero {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    align-items: center;      /* vertical centering of content */
    justify-content: center;  /* horizontal centering of content */
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--background-color);
}

/* Hero overlay removed - no background overlay needed */

/* Matrix Canvas Background - 80s Terminal Style */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    /* CRT monitor glow effect */
    filter: contrast(1.1) brightness(1.05);
}

/* Optional: Add scanline effect for more authenticity */
#matrix-canvas::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 50%,
        transparent 50%
    );
    background-size: 100% 2px;
    pointer-events: none;
    z-index: 2;
}


.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 3rem;
    background-color: transparent;
    border-radius: 12px;
    box-shadow: none;
    backdrop-filter: none;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    overflow-wrap: break-word;
    word-break: break-word;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-family: var(--heading-font);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-color);
    line-height: 1.8;
    font-family: var(--body-font);
}

.skills {
    padding: 4rem 0;
    text-align: center;
}

.skills h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: var(--heading-font);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.about-section {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 4rem;
    position: relative;
}

.blog-list-section {
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 4rem;
}

.about-content {
    padding: 0 1rem;
}

.about-text h2 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
    font-family: var(--heading-font);
}

.about-section ul {
    list-style: disc inside;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.about-section li {
    margin-bottom: 0.5rem;
}

.contact-section {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-methods ul {
    list-style: none;
    margin-top: 1rem;
}

.contact-methods li {
    margin-bottom: 0.5rem;
}

.contact-methods a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-methods a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-links a:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.social-links i {
    font-size: 1.25rem;
}

.social-links a[href*="linkedin"] {
    color: #0077b5;
}

.social-links a[href*="github"] {
    color: #333;
}

.social-links a[href*="x.com"] {
    color: #000;
}

.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
}

.flash-message {
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.flash-message.success {
    background-color: #4caf50;
}

.flash-message.error {
    background-color: #f44336;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (min-width: 769px) {
    .nav-container {
        justify-content: flex-start;
    }

    .nav-menu {
        margin-left: auto;
        margin-right: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: relative;
        z-index: 2001;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 1rem;
        right: 1rem;
        width: auto;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 16px;
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        z-index: 2000;
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.12),
            0 2px 8px rgba(0, 0, 0, 0.04);
        transition: all 0.3s ease;
        margin-left: 0;
        margin-right: 0;
        gap: 0.5rem;
    }

    [data-theme="dark"] .nav-menu {
        background: rgba(45, 45, 58, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-menu .nav-item a {
        text-align: center;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero {
        background: linear-gradient(135deg, #ffeef8 0%, #ffe0f0 25%, #fbcfe8 50%, #fbbccc 75%, #fca5a5 100%);
        margin-top: 80px;
    }
    .hero::before {
        background: none;
        opacity: 0;
    }
    .hero-content {
        padding: 2.5rem 1rem;
        background-color: rgba(255, 255, 255, 0.90);
    }
    .hero h1 {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 700px) {
    .hero-content {
        padding: 1.5rem;
    }

    .hero-main-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }

    .hero-main-card h1 {
        font-size: 2rem;
    }

    .hero-typing {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-top: 1rem;
    }


    /* About page mobile styles */
    .about-section {
        padding: 70px 15px 30px;
    }

    .about-notepad-card {
        padding: 30px 20px;
    }

    .about-notepad-card::before {
        font-size: 11px;
        top: 10px;
        left: 15px;
    }

    .about-notepad-card::after {
        top: 10px;
        right: 15px;
        font-size: 16px;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-intro,
    .about-notepad-card p {
        font-size: 15px;
    }

    .expertise-list {
        font-size: 15px;
        padding-left: 20px;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    .hero {
        flex: 1 0 auto;
        min-height: 0;
        height: 100%;
        padding-top: 83.5px;
        width: 100%;
        background-size: 120% 120%;
        background-position: center center;
        background-attachment: scroll;
        position: static;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 0;
    }
    .hero-main-card {
        margin-bottom: 0 !important;
        padding-bottom: 1.5rem !important;
    }
    .hero-main-card {
        font-size: 1.1rem;
    }
}

.contact-section h1 {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-weight: 700;
}

.about-section h1 {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-weight: 700;
}

.blog-list-section {
    margin-top: 5rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.blog-post-section {
    margin-top: 5rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.blog-post-date {
    margin-bottom: 1.5rem;
}

.affirmations-dropdown {
    background: #fff;
    border: 1.5px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(106, 27, 154, 0.07);
    padding: 1.2em 1.5em 1em 1.5em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.affirmations-dropdown[open] {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(106, 27, 154, 0.13);
}
.affirmations-dropdown summary {
    outline: none;
    color: var(--primary-color);
    font-family: var(--heading-font);
    transition: color 0.2s;
}
.affirmations-dropdown summary:hover {
    color: var(--secondary-color);
}
.affirmations-content p {
    margin-bottom: 1em;
    font-size: 1.08em;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.affirmations-content b {
    color: var(--secondary-color);
    margin-right: 0.3em;
}

.github-contributions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 2rem 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1.5em;
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .github-contributions {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.03);
}

.github-contributions h2 {
    margin-top: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    box-shadow: none;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Glass shimmer effect for hero card */
@keyframes glass-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero-main-card {
    animation: glass-shimmer 8s ease-in-out infinite;
    background-size: 200% 100%, 100% 100%, 100% 100%, 100% 100%;
}

/* Chat Window Styles - Modern Graphic App Design */
.hero-chat-window {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    min-height: 550px;
    /* Enhanced glass morphism with gradient borders */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    position: relative;
}

/* Add subtle gradient border effect */
.hero-chat-window::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0.05) 60%,
        rgba(255, 255, 255, 0.2) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    display: block !important;
}

/* Chat Header - Modern toolbar style */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 100%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    min-height: 56px;
    position: relative;
}

/* Add subtle inner shadow for depth */
.chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent 100%
    );
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-radius: 50%;
    box-shadow:
        0 0 0 2px rgba(74, 222, 128, 0.2),
        0 0 12px rgba(74, 222, 128, 0.6),
        inset 0 0 2px rgba(255, 255, 255, 0.4);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow:
            0 0 0 2px rgba(74, 222, 128, 0.2),
            0 0 12px rgba(74, 222, 128, 0.6),
            inset 0 0 2px rgba(255, 255, 255, 0.4);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
        box-shadow:
            0 0 0 3px rgba(74, 222, 128, 0.15),
            0 0 20px rgba(74, 222, 128, 0.8),
            inset 0 0 2px rgba(255, 255, 255, 0.6);
    }
}

.chat-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.85;
    margin-left: 0;
    letter-spacing: 0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

.chat-header-right {
    display: flex;
    gap: 6px;
    margin-right: 0;
    align-items: center;
}

/* Modern macOS-style window controls */
.chat-minimize, .chat-maximize, .chat-close {
    cursor: pointer;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.chat-close {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-minimize {
    background: linear-gradient(135deg, #ffd43b 0%, #ffbe0b 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-maximize {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Show icons on hover with smooth transition */
.chat-header:hover .chat-minimize::before {
    content: "—";
    font-size: 10px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.chat-header:hover .chat-maximize::before {
    content: "+";
    font-size: 11px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.chat-header:hover .chat-close::before {
    content: "×";
    font-size: 13px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.chat-minimize:hover, .chat-maximize:hover, .chat-close:hover {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.chat-close:hover {
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(0, 0, 0, 0.15),
        0 2px 5px rgba(255, 0, 0, 0.2);
}

.chat-minimize:hover {
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(0, 0, 0, 0.15),
        0 2px 5px rgba(255, 200, 0, 0.2);
}

.chat-maximize:hover {
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(0, 0, 0, 0.15),
        0 2px 5px rgba(0, 200, 0, 0.2);
}

/* Chat Messages Area - Modern Canvas Style */
.chat-messages {
    flex: 1;
    padding: 32px 32px;
    overflow-y: auto;
    min-height: 380px;
    /* Subtle canvas texture */
    background:
        radial-gradient(circle at 20% 50%, rgba(146, 39, 143, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 174, 239, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
    position: relative;
}

/* Custom scrollbar for modern look */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: background 0.2s;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-message {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    animation: message-appear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    display: flex;
    justify-content: flex-end;
}

@keyframes message-appear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-avatar:hover {
    transform: scale(1.05);
}

.user-avatar {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow:
        0 2px 8px rgba(139, 92, 246, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.ai-avatar {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow:
        0 2px 8px rgba(59, 130, 246, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Add subtle animation to avatars */
.ai-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.message-content {
    flex: 1;
}

.message-bubble {
    display: inline-block;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 85%;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-color);
}

.user-message .message-bubble {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.12) 0%,
        rgba(124, 58, 237, 0.08) 100%
    );
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-left: auto;
    text-align: right;
    box-shadow:
        0 2px 12px rgba(139, 92, 246, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.user-message .message-bubble:hover {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.15) 0%,
        rgba(124, 58, 237, 0.1) 100%
    );
    transform: translateY(-1px);
    box-shadow:
        0 4px 16px rgba(139, 92, 246, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.ai-message .message-bubble {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.08) 0%,
        rgba(37, 99, 235, 0.05) 100%
    );
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow:
        0 2px 12px rgba(59, 130, 246, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.ai-message .message-bubble:hover {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(37, 99, 235, 0.07) 100%
    );
    transform: translateY(-1px);
    box-shadow:
        0 4px 16px rgba(59, 130, 246, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

/* Chat messages text styles */
.chat-messages .hero-typing {
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
}

.chat-messages .hero-description {
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 0;
    padding: 0;
    opacity: 0.9;
}

/* AI message animation */
.ai-message {
    animation-delay: 0.8s;
}

.ai-message .message-bubble {
    position: relative;
}

/* Typing indicator effect */
.ai-message .message-bubble::before {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 40px;
    height: 10px;
    opacity: 0;
    animation: typing-dots 1.4s infinite;
}

@keyframes typing-dots {
    0%, 60%, 100% { opacity: 0; }
    30% { opacity: 1; }
}

/* Chat Input Area - Modern Toolbar Style */
.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Add subtle top highlight */
.chat-input-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.15) 80%,
        transparent 100%
    );
}

.chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 10px 18px;
    color: var(--text-color);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.chat-input:focus {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow:
        0 0 0 2px rgba(139, 92, 246, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-input::placeholder {
    color: var(--text-color);
    opacity: 0.4;
    font-weight: 400;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(139, 92, 246, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.chat-send-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.chat-send-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow:
        0 4px 16px rgba(139, 92, 246, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.chat-send-btn:hover:not(:disabled)::before {
    transform: translateX(100%);
}

.chat-send-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.3);
}


/* Hero description styling */
.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.75;
    margin-top: 20px;
    padding: 0 40px 40px 40px !important;
    font-weight: 400;
    font-family: var(--body-font);
    text-align: left;
    transform: none;
}

/* About Page Styles */
.about-section {
    min-height: 100vh;
    padding: 80px 20px 40px;
    position: relative;
    background: var(--background-color);
}

/* About overlay for light/dark mode */
.about-overlay {
    pointer-events: none;
}

[data-theme="dark"] .about-overlay {
    background: rgba(35, 35, 43, 0.85) !important;
}

.about-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* About notepad cards - glassy sticky note style */
.about-notepad-card {
    background: rgba(255, 251, 150, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 235, 59, 0.3);
    border-radius: 12px;
    box-shadow:
        0 20px 50px rgba(146, 39, 143, 0.15),
        0 10px 20px rgba(146, 39, 143, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.7),
        inset 0 -2px 4px rgba(255, 235, 59, 0.2);
    padding: 40px;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(255, 235, 59, 0.2) 0%, transparent 50%);
    transform: rotate(-1deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 600px;
}

.about-notepad-card:hover {
    transform: rotate(-0.5deg) translateY(-2px);
    box-shadow:
        0 25px 60px rgba(146, 39, 143, 0.2),
        0 15px 30px rgba(146, 39, 143, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.7),
        inset 0 -2px 4px rgba(255, 235, 59, 0.2);
}

/* Sticky tape effect */
.about-notepad-card::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 120px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Folded corner effect */
.about-notepad-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 235, 59, 0.5) 50%);
    background-size: 100% 100%;
    border-radius: 0 0 12px 0;
    transform-origin: bottom right;
    transition: all 0.3s ease;
}

/* Typography for about page */
.about-title {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    transform: none;
    text-align: center;
    letter-spacing: 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.about-intro {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: #444444;
    opacity: 0.9;
    transform: none;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    transform: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.section-title:first-of-type {
    border-top: none;
    margin-top: 1.5rem;
    padding-top: 0;
}

.section-emoji {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.about-notepad-card p {
    font-family: var(--body-font);
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 1rem;
}

.expertise-list {
    font-family: var(--body-font);
    font-size: 15px;
    line-height: 1.8;
    color: #444444;
    padding-left: 30px;
    margin: 1rem 0;
}

.expertise-list li {
    position: relative;
    list-style: none;
    padding-left: 20px;
}

.expertise-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.expertise-summary {
    margin-top: 1.5rem;
    font-style: normal;
    transform: none;
    opacity: 0.8;
}

/* GitHub card */
.github-chart {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    display: block;
}

/* Social links */
.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-link {
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(146, 39, 143, 0.08);
    border: 1px solid rgba(146, 39, 143, 0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(146, 39, 143, 0.15);
    background: rgba(146, 39, 143, 0.12);
    border-color: rgba(146, 39, 143, 0.3);
}

.social-link i {
    font-size: 16px;
}

/* Specific icon colors for better visibility */
.social-link[href*="linkedin"] i {
    color: #0077b5;
}

.social-link[href*="github"] i {
    color: #333;
}

.social-link[href*="buymeacoffee"] i {
    color: #FFDD00;
}

/* Dark mode icon colors */
[data-theme="dark"] .social-link[href*="linkedin"] i {
    color: #66b3ff;
}

[data-theme="dark"] .social-link[href*="github"] i {
    color: #fff;
}

[data-theme="dark"] .social-link[href*="buymeacoffee"] i {
    color: #FFDD00;
}

.hero-main-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.15),
        0 20px 40px rgba(31, 38, 135, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    padding: 3rem 4rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 40%),
        radial-gradient(circle at 20% 80%, rgba(146, 39, 143, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 174, 239, 0.08) 0%, transparent 50%);
    transition: all 0.3s ease;
}

.hero-main-card:hover {
    backdrop-filter: blur(50px) saturate(250%);
    -webkit-backdrop-filter: blur(50px) saturate(250%);
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(31, 38, 135, 0.2),
        0 25px 50px rgba(31, 38, 135, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.6);
}

.hero-main-card h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-main-card p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-top: 1rem;
    font-family: var(--body-font);
    opacity: 0.85;
}

/* Hero typing animation styling */
.hero-typing {
    position: relative;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: 0;
    transform: none;
}

.hero-notepad-card h1.hero-typing {
    font-size: 2.2rem;
    font-weight: 600;
    text-align: left;
    color: var(--text-color);
    text-indent: 0;
}

/* Notion-style selection highlight */
.hero-typing::selection,
.hero-typing *::selection {
    background: rgba(35, 131, 226, 0.28);
}

.hero-flo, .hero-engineer {
    color: var(--text-color);
    font-family: inherit;
}

.hero-typewriter {
    color: var(--primary-color);
    font-family: inherit;
    background: linear-gradient(to right,
        rgba(146, 39, 143, 0.15),
        rgba(146, 39, 143, 0.1));
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    transform: none;
}

.hero-cursor {
    display: none;
}


.hero-content .skill-card {
    width: 100%;
    min-width: 220px;
    max-width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 2rem 1.2rem;
    text-align: center;
    align-self: start;
}


.site-footer {
    flex-shrink: 0;
    width: 100%;
    background: var(--nav-background);
    color: var(--text-color);
    padding: 1rem 0;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    margin-top: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
}

/* Footer container to match navbar container */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    text-align: left;
    font-size: 1.1rem;
    font-family: var(--body-font);
    display: flex;
    align-items: center;
}
.footer-right {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}
.footer-right a {
    color: var(--text-color);
    font-size: 1.4rem;
    transition: color 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
}
.footer-right a:hover, .footer-right a:focus {
    color: var(--primary-color);
    transform: scale(1.18);
}
@media (max-width: 700px) {
    .site-footer {
        padding: 0.7rem 0;
    }
    .footer-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    .footer-left {
        font-size: 1rem;
    }
    .footer-right {
        gap: 1rem;
    }
    .footer-right a {
        font-size: 1.15rem;
    }
}

h1.hero-typing {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    min-height: 3.5rem;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
}
.hero-flo {
    margin-right: 1.1rem;
    color: var(--secondary-color);
    font-size: inherit;
    font-family: var(--heading-font);
    flex-shrink: 0;
}
.hero-typewriter {
    color: var(--primary-color);
    font-size: inherit;
    font-family: var(--heading-font);
    min-width: 0;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    max-width: 100vw;
    overflow-wrap: break-word;
    word-break: break-word;
}
.hero-cursor {
    display: none;
}
.hero-engineer {
    font-size: inherit;
    font-family: var(--heading-font);
    color: var(--secondary-color);
    margin-left: 0.3rem;
    font-weight: 700;
    flex-shrink: 0;
}
@media (max-width: 700px) {
    h1.hero-typing {
        font-size: 2rem;
        min-height: 2.5rem;
        margin-top: 1.2rem;
        flex-wrap: wrap;
        width: 100%;
    }
    .hero-typewriter {
        max-width: 60vw;
    }
}

/* Accessibility: Focus styles for keyboard navigation */
a:focus, button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Accessibility: Skip link styles */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: #fff;
  color: var(--primary-color);
  padding: 0.5em 1em;
  z-index: 10000;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: left 0.2s;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  font-size: 1.1em;
  outline: 2px solid var(--primary-color);
}

[data-theme="dark"] .hero {
    /* Solid gradient background for dark theme */
    background: linear-gradient(135deg, #4a0e4e 0%, #81689d 25%, #715b8e 50%, #5e4a7e 75%, #4a3a6e 100%);
    min-height: 400px;
}
[data-theme="dark"] .hero::before {
    background: none !important;
    opacity: 0 !important;
}
[data-theme="dark"] .hero-content {
    background: none;
}

[data-theme="dark"] .blog-list a {
    color: #b388ff; /* vivid purple for visibility */
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: color 0.2s;
}
[data-theme="dark"] .blog-list a:hover,
[data-theme="dark"] .blog-list a:focus {
    color: #fff176; /* bright yellow for hover/focus */
}

[data-theme="dark"] .navbar {
    background-color: var(--nav-background);
}

[data-theme="dark"] .site-footer {
    background-color: var(--nav-background);
}

#theme-toggle {
    background: #f3eafe;
    border: 2px solid #a277ff;
    border-radius: 50%;
    padding: 0.5em;
    font-size: 1.7rem;
    transition: background 0.2s, color 0.2s, border 0.2s;
    margin-left: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(106, 27, 154, 0.07);
    outline: none;
}
#theme-toggle:hover, #theme-toggle:focus {
    background: #e0d7ff;
    border-color: #c792ea;
}
[data-theme="dark"] #theme-toggle {
    background: #23232b;
    border: 2px solid #c792ea;
}
#theme-toggle i,
#theme-toggle:active i,
#theme-toggle:focus i {
    color: #6a1b9a;
}

[data-theme="dark"] #theme-toggle:hover i,
[data-theme="dark"] #theme-toggle:hover:focus i {
    color: #fff176;
}

[data-theme="dark"] .contact-form {
    background: #504e7a;
    color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(162, 119, 255, 0.10);
}
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: #6866a3;
    color: #e0e0e0;
    border: 1px solid #a277ff;
}
[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
    color: #aaa;
}

/* Undo previous dark mode overrides for radius slider label and value */
[data-theme="dark"] label[for="radius-slider"] {
    color: #3a5a40 !important;
}
[data-theme="dark"] #radius-value {
    color: inherit !important;
}
label[for="radius-slider"] {
    color: #3a5a40;
}

.hero, .hero-content, .hero-main-card {
  position: relative;
  z-index: 1;
}

.hero {
  /* Solid gradient background without image */
  background: linear-gradient(135deg, #ffeef8 0%, #ffe0f0 25%, #fbcfe8 50%, #fbbccc 75%, #fca5a5 100%);
  min-height: 400px;
  position: relative;
}

.hero::before,
[data-theme="dark"] .hero::before {
  background: none !important;
  opacity: 0 !important;
}

/* About page space background */
.about-space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-top: 80px;
    margin-top: 0;
    max-width: none;
    background: #000;
}

#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 10, 0.2);
    z-index: 1;
    pointer-events: none;
}

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

/* Fix dark mode hero background - make it much darker */
[data-theme="dark"] .hero {
    background: #0a0a0f;
}

[data-theme="dark"] #matrix-canvas {
    opacity: 0.7;
}

/* Ensure matrix fade uses darker background in dark mode */
[data-theme="dark"] .hero #matrix-canvas {
    /* This will be handled by the JS but ensure the base is dark */
    background-color: #0a0a0f;
}
