/* ============================================
   MODERN VIBRANT - CREATIVE PERSONAL WEBSITE
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Creative Vibrant Sunset Palette */
    --bg-primary: #fafafa;
    --bg-secondary: #fff5f7;
    --bg-accent: #f0f4ff;
    --bg-gradient: linear-gradient(135deg, #fef3f8 0%, #f0f9ff 100%);

    /* Vibrant accent colors - Sunset inspired */
    --primary-accent: #FF6B9D;        /* Coral Pink */
    --primary-accent-dark: #E63980;
    --primary-accent-light: #FFB3D1;
    --secondary-accent: #06D6A0;      /* Vibrant Teal */
    --secondary-accent-dark: #05B887;
    --secondary-accent-light: #6FEDD6;
    --tertiary-accent: #8B5CF6;       /* Rich Purple */
    --tertiary-accent-dark: #7C3AED;
    --tertiary-accent-light: #A78BFA;
    --quaternary-accent: #F59E0B;     /* Warm Amber */
    --quaternary-accent-dark: #D97706;
    --quaternary-accent-light: #FBBF24;

    /* Neutral palette */
    --charcoal: #1a1625;
    --slate: #3d3451;
    --slate-light: #6b5f7b;

    /* Text Colors */
    --text-primary: #1a1625;
    --text-secondary: #3d3451;
    --text-muted: #6b5f7b;

    /* Borders and lines */
    --border-color: #f0d9e1;
    --border-accent: #e4c1d4;

    /* Gradient combinations */
    --gradient-primary: linear-gradient(135deg, #FF6B9D 0%, #8B5CF6 100%);
    --gradient-secondary: linear-gradient(135deg, #06D6A0 0%, #8B5CF6 100%);
    --gradient-tertiary: linear-gradient(135deg, #F59E0B 0%, #FF6B9D 100%);
    --gradient-vibrant: linear-gradient(135deg, #06D6A0 0%, #FF6B9D 50%, #8B5CF6 100%);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(160deg,
        #fef5f9 0%,
        #f5f3ff 40%,
        #f0f9ff 70%,
        #faf5ff 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Professional Typography - Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Sparks Cursor Trail Effect */
.trail-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: transform, opacity;
    box-shadow: 0 0 3px currentColor, 0 0 5px currentColor;
    filter: blur(0.5px);
    opacity: 0.6;
}

.trail-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.2;
    filter: blur(2px);
}



/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px 80px;
    background: transparent;
    overflow: hidden;
}

/* Modern geometric shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-shape 15s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 214, 160, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-shape-reverse 20s infinite ease-in-out;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -30px) scale(1.1); }
}

@keyframes float-shape-reverse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 40px) scale(1.15); }
}

.hero-ornament {
    position: absolute;
    opacity: 0.15;
}

.hero-ornament.top-left {
    top: 120px;
    left: 60px;
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s infinite ease-in-out;
}

.hero-ornament.bottom-right {
    bottom: 60px;
    right: 60px;
    width: 100px;
    height: 100px;
    background: var(--gradient-secondary);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation: morph 10s infinite ease-in-out reverse;
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(180deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.hero-greeting {
    font-size: 0.9rem;
    background: var(--gradient-tertiary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Playfair Display', 'Crimson Pro', Georgia, serif;
    background: linear-gradient(135deg, #FF6B9D 0%, #8B5CF6 50%, #06D6A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% auto;
}

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

.hero-subtitle {
    font-size: 2.8rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 60px;
    font-family: 'Crimson Pro', Georgia, serif;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Typing cursor effect */
.typing-cursor {
    display: inline-block;
    margin-left: 8px;
    background: linear-gradient(135deg, #FF6B9D 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 3.2rem;
    animation: blink 1s step-end infinite;
}

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

#typed-text {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B9D 0%, #8B5CF6 50%, #06D6A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 3.2rem;
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
    min-width: 2px;
    letter-spacing: 0.05em;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.decorative-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-vibrant);
    margin: 48px auto;
    border-radius: 2px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons with Creative Effects */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.02em;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-accent-dark) 0%, var(--tertiary-accent-dark) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--tertiary-accent);
    border-color: var(--tertiary-accent);
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-secondary);
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: 8px;
}

.btn-secondary:hover {
    color: white;
    border-color: var(--secondary-accent);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(6, 214, 160, 0.4);
}

.btn-secondary:hover::after {
    width: 100%;
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 3px 10px rgba(6, 214, 160, 0.3);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 40px;
}

/* Section Styles */
section {
    margin-bottom: 80px;
    position: relative;
}

/* Diagonal Section Backgrounds */
section#about {
    padding: 80px 0;
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 40px;
    padding-right: 40px;
}

section#education {
    position: relative;
    padding: 80px 0;
    background: transparent;
}

section#experience {
    padding: 80px 0;
}

section#projects {
    position: relative;
    padding: 80px 0;
    background: transparent;
    overflow: visible;
}

section#skills {
    position: relative;
    padding: 80px 0;
    background: transparent;
    overflow: visible;
}

section#skills .section-header {
    position: relative;
    z-index: 1;
}

.skills-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Bulletin Boards Container - Grid Layout */
.bulletin-boards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px 0;
}

/* First bulletin board spans full width */
.bulletin-board:first-child {
    grid-column: 1 / -1;
}

/* Individual Bulletin Board */
.bulletin-board {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 252, 253, 0.85) 0%, rgba(252, 250, 255, 0.85) 100%);
    border: 2px solid rgba(255, 107, 157, 0.12);
    border-radius: 20px;
    padding: 40px 30px 35px;
    box-shadow:
        0 8px 24px rgba(139, 92, 246, 0.06),
        inset 0 0 80px rgba(255, 255, 255, 0.7);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.bulletin-board:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 32px rgba(139, 92, 246, 0.1),
        inset 0 0 80px rgba(255, 255, 255, 0.8);
    border-color: rgba(139, 92, 246, 0.2);
}

.board-title {
    position: relative;
    color: var(--charcoal);
    margin-bottom: 30px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

section#contact {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-ornament {
    width: 60px;
    height: 4px;
    background: var(--gradient-vibrant);
    margin: 0 auto;
    border-radius: 2px;
}

/* Reveal Animation */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Decorative Accents */
section#about::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    opacity: 0.08;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 10s infinite ease-in-out;
    z-index: 0;
}

section#experience::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 8%;
    width: 60px;
    height: 60px;
    background: var(--gradient-tertiary);
    opacity: 0.08;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation: morph 12s infinite ease-in-out reverse;
    z-index: 0;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.15rem;
    line-height: 1.9;
}

.highlight-text {
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.8;
}

.bulletin-board .skills-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.skill-tag {
    position: relative;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    animation: fadeInUp 0.6s ease-out backwards;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.08);
    backdrop-filter: blur(10px);
}

/* Subtle varied styles for different skill types */
/* Style 1: Soft rounded pill - Pink accent */
.skill-tag:nth-child(5n+1) {
    background: linear-gradient(135deg, rgba(255, 235, 243, 0.9) 0%, rgba(255, 245, 250, 0.85) 100%);
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.1);
}

/* Style 2: Rounded square - Purple accent */
.skill-tag:nth-child(5n+2) {
    background: linear-gradient(135deg, rgba(237, 233, 254, 0.9) 0%, rgba(245, 243, 255, 0.85) 100%);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.1);
}

/* Style 3: Semi-rounded - Teal accent */
.skill-tag:nth-child(5n+3) {
    background: linear-gradient(135deg, rgba(224, 252, 245, 0.9) 0%, rgba(237, 254, 250, 0.85) 100%);
    border: 2px solid rgba(6, 214, 160, 0.2);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(6, 214, 160, 0.1);
}

/* Style 4: Capsule shape - Amber accent */
.skill-tag:nth-child(5n+4) {
    background: linear-gradient(135deg, rgba(254, 249, 231, 0.9) 0%, rgba(255, 252, 242, 0.85) 100%);
    border: 2px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.1);
}

/* Style 5: Soft square - Gradient accent */
.skill-tag:nth-child(5n) {
    background: linear-gradient(135deg, rgba(250, 245, 255, 0.9) 0%, rgba(252, 248, 255, 0.85) 100%);
    border: 2px solid rgba(255, 107, 157, 0.15);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.08);
}

/* Animation delays */
.skill-tag:nth-child(1) { animation-delay: 0.05s; }
.skill-tag:nth-child(2) { animation-delay: 0.1s; }
.skill-tag:nth-child(3) { animation-delay: 0.15s; }
.skill-tag:nth-child(4) { animation-delay: 0.2s; }
.skill-tag:nth-child(5) { animation-delay: 0.25s; }
.skill-tag:nth-child(6) { animation-delay: 0.3s; }
.skill-tag:nth-child(7) { animation-delay: 0.35s; }
.skill-tag:nth-child(8) { animation-delay: 0.4s; }

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

/* Elegant hover effects */
.skill-tag:hover {
    transform: translateY(-6px) scale(1.05);
    z-index: 100;
    cursor: pointer;
}

/* Different hover effects for each style */
.skill-tag:nth-child(5n+1):hover {
    background: linear-gradient(135deg, rgba(255, 235, 243, 1) 0%, rgba(255, 245, 250, 0.95) 100%);
    border-color: rgba(255, 107, 157, 0.4);
    box-shadow:
        0 8px 24px rgba(255, 107, 157, 0.2),
        0 4px 12px rgba(255, 107, 157, 0.15);
}

.skill-tag:nth-child(5n+2):hover {
    background: linear-gradient(135deg, rgba(237, 233, 254, 1) 0%, rgba(245, 243, 255, 0.95) 100%);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 8px 24px rgba(139, 92, 246, 0.2),
        0 4px 12px rgba(139, 92, 246, 0.15);
}

.skill-tag:nth-child(5n+3):hover {
    background: linear-gradient(135deg, rgba(224, 252, 245, 1) 0%, rgba(237, 254, 250, 0.95) 100%);
    border-color: rgba(6, 214, 160, 0.4);
    box-shadow:
        0 8px 24px rgba(6, 214, 160, 0.2),
        0 4px 12px rgba(6, 214, 160, 0.15);
}

.skill-tag:nth-child(5n+4):hover {
    background: linear-gradient(135deg, rgba(254, 249, 231, 1) 0%, rgba(255, 252, 242, 0.95) 100%);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow:
        0 8px 24px rgba(245, 158, 11, 0.2),
        0 4px 12px rgba(245, 158, 11, 0.15);
}

.skill-tag:nth-child(5n):hover {
    background: linear-gradient(135deg, rgba(250, 245, 255, 1) 0%, rgba(252, 248, 255, 0.95) 100%);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow:
        0 8px 24px rgba(139, 92, 246, 0.18),
        0 4px 12px rgba(255, 107, 157, 0.12);
}

.skill-tag:active {
    transform: translateY(-2px) scale(1.02);
}

/* Timeline (Education) */
.timeline {
    position: relative;
    padding-left: 40px;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-color: var(--primary-accent);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.2);
    transform: translateX(8px);
}

.timeline-marker {
    position: absolute;
    left: -48px;
    top: 32px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--quaternary-accent);
    border: 4px solid var(--bg-primary);
    z-index: 1;
    box-shadow: 0 0 0 2px var(--quaternary-accent);
}

/* Entry Styles */
.entry {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.entry:hover {
    border-color: var(--primary-accent);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.15);
    transform: translateY(-3px);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0;
}

.badge {
    padding: 6px 14px;
    background: var(--gradient-tertiary);
    color: white;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.position {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.company-info {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.description {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 1.05rem;
}

ul {
    margin-left: 24px;
    margin-top: 16px;
}

li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 1.05rem;
}

li::marker {
    color: var(--primary-accent);
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    position: relative;
    z-index: 1;
}

/* Projects Grid - Horizontal Scrollable Layout */
.projects-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0 30px 0;
    position: relative;
    z-index: 1;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 0;
    width: 100%;
}

.projects-grid::-webkit-scrollbar {
    height: 8px;
}

.projects-grid::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb {
    background: var(--primary-accent);
    border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-accent-dark);
}

.project-card {
    position: relative;
    background: white;
    border: 2px solid var(--border-color);
    border-left: 5px solid var(--primary-accent);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: all 0.4s ease;
}

.project-card:hover::before {
    transform: translate(30%, -30%) scale(1.5);
    opacity: 0.1;
}

.project-card:hover {
    border-left-color: var(--secondary-accent);
    border-left-width: 5px;
    box-shadow: 0 10px 30px rgba(6, 214, 160, 0.15), 0 0 0 1px rgba(6, 214, 160, 0.1);
    transform: translateY(-5px) scale(1.01);
}

.project-card:nth-child(2) {
    border-left-color: var(--tertiary-accent);
}

.project-card:nth-child(2):hover {
    border-left-color: var(--primary-accent);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.15), 0 0 0 1px rgba(255, 107, 157, 0.1);
}

.project-card:nth-child(3) {
    border-left-color: var(--quaternary-accent);
}

.project-card:nth-child(3):hover {
    border-left-color: var(--tertiary-accent);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    padding: 6px 14px;
    background: var(--bg-accent);
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 700;
}

.tag:hover {
    background: var(--tertiary-accent);
    color: white;
    border-color: var(--tertiary-accent);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.4);
}

/* Contact Section */
#contact .contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 45px 40px;
}

.contact-title {
    font-size: 2rem;
    color: var(--charcoal);
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.contact-divider {
    width: 50px;
    height: 4px;
    background: var(--gradient-vibrant);
    margin: 30px auto;
    border-radius: 2px;
}

.contact-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.contact-social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-social-link:hover {
    color: var(--primary-accent);
}

.divider-dot {
    color: var(--text-muted);
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 35px 0;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--primary-accent-dark) 0%, var(--tertiary-accent) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    section#about {
        margin-left: 0;
        margin-right: 0;
    }

    section#education {
        padding: 80px 0;
    }

    section#skills {
        padding: 60px 0;
    }

    section#skills .section-header h2 {
        font-size: 2.4rem;
    }

    .bulletin-boards-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }

    .bulletin-board:first-child {
        grid-column: 1;
    }

    section#projects {
        padding-left: 30px;
        padding-right: 30px;
    }

    .hero {
        padding: 60px 30px 60px;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 0.01em;
    }

    .hero-subtitle {
        font-size: 1.8rem;
        gap: 12px;
    }

    #typed-text {
        font-size: 2rem;
    }

    .typing-cursor {
        font-size: 2rem;
        margin-left: 6px;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .hero-ornament.top-left,
    .hero-ornament.bottom-right {
        width: 80px;
        height: 80px;
    }

    .hero-ornament.top-left {
        top: 100px;
        left: 20px;
    }

    .hero-ornament.bottom-right {
        bottom: 30px;
        right: 20px;
    }

    .container {
        padding: 40px 30px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .timeline {
        padding-left: 30px;
    }

    .skills-grid {
        gap: 10px;
    }

    .skill-tag {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .scroll-top {
        bottom: 30px;
        right: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 0;
    }

    .hero-subtitle {
        font-size: 1.4rem;
        gap: 10px;
    }

    #typed-text {
        font-size: 1.6rem;
    }

    .typing-cursor {
        font-size: 1.6rem;
        margin-left: 4px;
    }

    section#about {
        margin-left: 0;
        margin-right: 0;
    }

    .container {
        padding: 35px 20px;
    }

    .section-header h2 {
        font-size: 1.9rem;
    }

    section#skills .section-header h2 {
        font-size: 2rem;
    }

    .bulletin-boards-container {
        padding: 15px;
    }

    .bulletin-board {
        padding: 35px 20px 25px;
    }

    .board-title {
        font-size: 1.2rem;
    }

    .entry,
    .timeline-item {
        padding: 24px;
    }

    .project-card {
        min-width: 260px;
        max-width: 260px;
        padding: 20px;
    }

    #contact .contact-content {
        padding: 32px 24px;
    }

    h3 {
        font-size: 1.4rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .contact-buttons {
        flex-direction: column;
        width: 100%;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--primary-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}
