/* ==========================================================================
   Obsidian & Gold Glassmorphism Styling Sheet
   ========================================================================== */

/* Design Tokens & Theme Setup */
:root {
    /* Color Palette */
    --color-bg-base: #060608;
    --color-bg-card: rgba(14, 14, 18, 0.6);
    --color-bg-card-hover: rgba(22, 22, 28, 0.85);
    --color-bg-nav: rgba(6, 6, 8, 0.75);
    
    --color-gold-primary: #d4af37;
    --color-gold-secondary: #c5a059;
    --color-gold-glow: rgba(212, 175, 55, 0.25);
    --color-gold-glow-weak: rgba(212, 175, 55, 0.1);
    --color-gold-dark: #8c7853;
    --color-gold-light: #fce484;
    
    --color-text-primary: #f5f5f7;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    
    --color-error: #ef4444;
    --color-success: #10b981;

    /* Border & Glow */
    --border-glass: 1px solid rgba(212, 175, 55, 0.18);
    --border-glass-hover: 1px solid rgba(252, 228, 132, 0.4);
    --border-dark: 1px solid rgba(255, 255, 255, 0.05);
    
    --shadow-gold: 0 0 25px var(--color-gold-glow-weak);
    --shadow-gold-hover: 0 0 35px var(--color-gold-glow);
    --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.6);
    
    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Timing */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.gold-gradient-text {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold-primary) 50%, var(--color-gold-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout Utilities */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

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

.section-subtitle {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold-primary);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

.gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
    margin: 0 auto;
}

/* Scroll Animation Hooks */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphic Components */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--border-glass);
    box-shadow: var(--shadow-card), var(--shadow-gold);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-8px);
    background: var(--color-bg-card-hover);
    border: var(--border-glass-hover);
    box-shadow: var(--shadow-card), var(--shadow-gold-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-primary) 0%, var(--color-gold-secondary) 100%);
    color: #060608;
    border: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold-primary) 100%);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-primary);
    border: var(--border-glass);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.08);
    border: var(--border-glass-hover);
    transform: translateY(-2px);
}

.btn-full-width {
    width: 100%;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--color-bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-dark);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(6, 6, 8, 0.9);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-gold-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-item:hover, .nav-item.active {
    color: var(--color-gold-light);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold-primary);
    transition: var(--transition-fast);
}

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

.contact-btn-nav {
    border: var(--border-glass);
    padding: 8px 20px !format;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.05);
}

.contact-btn-nav:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--color-gold-primary);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
    width: 100%;
}

.badge-container {
    margin-bottom: 24px;
}

.gold-badge {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    color: var(--color-gold-light);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-gold);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    height: 2.7rem;
}

.cursor {
    animation: blink 0.8s infinite;
    color: var(--color-gold-primary);
    font-weight: 700;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 580px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glass-avatar-card {
    position: relative;
    border-radius: 30px;
    padding: 10px;
    background: rgba(20, 20, 25, 0.4);
    backdrop-filter: blur(12px);
    border: var(--border-glass);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.glass-avatar-card:hover {
    transform: translateY(-5px) rotate(1deg);
    border-color: rgba(252, 228, 132, 0.5);
    box-shadow: var(--shadow-card), 0 0 40px rgba(212, 175, 55, 0.15);
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-gold-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(20px);
}

.avatar-img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    background-color: #0c0c0e;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 5;
}

.mouse-wheel {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-gold-primary);
    border-radius: 2px;
    animation: scroll-mouse 1.5s infinite;
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* About / Resume Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.about-text-card h3, .about-timeline-card h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.about-text-card p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(to bottom, var(--color-gold-primary) 0%, rgba(255,255,255,0.05) 100%);
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #060608;
    border: 2px solid var(--color-gold-primary);
    box-shadow: 0 0 8px var(--color-gold-primary);
}

.timeline-date {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gold-secondary);
    display: block;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 1.15rem;
    color: var(--color-text-primary);
}

.timeline-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skills-card .skills-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    height: 50px;
    display: flex;
    align-items: center;
}

.skills-card h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-progress-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-name-percent {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.progress-track {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold-secondary), var(--color-gold-primary));
    border-radius: 10px;
    width: 0; /* Animated dynamically */
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-dark);
    color: var(--color-text-secondary);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-display);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    color: #060608;
    background: linear-gradient(135deg, var(--color-gold-primary) 0%, var(--color-gold-secondary) 100%);
    border: none;
    box-shadow: var(--shadow-gold);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-bottom: var(--border-glass);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
    background-color: #0e0e12;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 8, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: var(--border-glass);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.project-link-icon:hover {
    background: var(--color-gold-primary);
    color: #060608;
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--color-gold-primary);
}

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

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

.project-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tag {
    font-size: 0.75rem;
    font-family: var(--font-display);
    color: var(--color-gold-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    font-weight: 600;
    display: block;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.project-info p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Contact / Connect Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 32px;
    align-items: start;
}

.contact-info-card {
    height: 100%;
}

.contact-info-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.contact-info-card p {
    color: var(--color-text-secondary);
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-detail-item .icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.06);
    border: var(--border-glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-detail-item span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}

.contact-detail-item a, .contact-detail-item p {
    font-weight: 500;
    font-size: 1.05rem;
}

.contact-detail-item a:hover {
    color: var(--color-gold-light);
}

.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold-primary);
    transition: var(--transition-fast);
}

.hover-underline:hover::after {
    width: 100%;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--color-gold-primary);
    color: var(--color-gold-light);
    transform: translateY(-3px);
}

/* Contact Form Card */
.contact-form-card {
    padding: 40px;
}

.connect-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-group label .required {
    color: var(--color-gold-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    background: rgba(6, 6, 8, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 16px 12px 44px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-wrapper select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) center;
}

/* styling select dropdown options */
.input-wrapper select option {
    background: #0f0f13;
    color: var(--color-text-primary);
}

.text-area-wrapper {
    align-items: flex-start;
}

.text-area-wrapper .input-icon {
    top: 14px;
}

.input-wrapper textarea {
    padding-top: 12px;
    resize: none;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--color-gold-primary);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
    background: rgba(6, 6, 8, 0.8);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper select:focus + .input-icon,
.input-wrapper textarea:focus + .input-icon {
    color: var(--color-gold-primary);
}

.btn-spinner {
    display: inline-block;
    margin-left: 8px;
}

.hidden {
    display: none !important;
}

/* Success/Error Toast Message */
.form-status-msg {
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.form-status-msg.success {
    display: flex;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-success);
}

.form-status-msg.error {
    display: flex;
    background: rgba(239, 68, 110, 0.1);
    border: 1px solid rgba(239, 68, 110, 0.2);
    color: var(--color-error);
}

.resume-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resume-list li {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.resume-list li i {
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Activity & Stats Section */
.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.github-card {
    grid-column: span 2;
}

.medium-posts-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.medium-post-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-fast);
}

.medium-post-item:hover {
    background: rgba(212, 175, 55, 0.04);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.post-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.post-date i {
    margin-right: 4px;
}

.post-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.post-title a {
    color: var(--color-text-primary);
    transition: var(--transition-fast);
}

.post-title a:hover {
    color: var(--color-gold-light);
}

.post-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-read-more {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gold-primary);
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
    margin-top: 4px;
}

.post-read-more i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.post-read-more:hover {
    color: var(--color-gold-light);
}

.post-read-more:hover i {
    transform: translateX(4px);
}

.loading-posts {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    gap: 10px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.activity-card {
    display: flex;
    flex-direction: column;
}

.card-header-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.card-header-icon i {
    font-size: 1.8rem;
}

.card-header-icon h3 {
    font-size: 1.4rem;
}

.activity-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.github-calendar-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
}

.github-chart-img {
    width: 100%;
    min-width: 600px;
    max-height: 120px;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.15));
}

.leetcode-calendar-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.leetcode-chart-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.15));
}

.calendar-footer {
    margin-top: auto;
    padding-top: 20px;
    font-size: 0.9rem;
}

.gold-text {
    color: var(--color-gold-primary);
}

.gold-text:hover {
    color: var(--color-gold-light);
    text-decoration: underline;
}

/* Footer Styling */
.main-footer {
    background-color: #030304;
    border-top: var(--border-dark);
    padding: 40px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.footer-bottom-links a:hover {
    color: var(--color-gold-light);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes blink {
    50% { opacity: 0; }
}

@keyframes scroll-mouse {
    0% { opacity: 0; transform: translate(-50%, 0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* Responsive Grid Rules */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
    .activity-grid {
        grid-template-columns: 1fr;
    }
    .github-card {
        grid-column: span 1;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .avatar-img {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 60px 20px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    .hero-description {
        margin: 0 auto 30px auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image-wrapper {
        order: -1;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: rgba(6, 6, 8, 0.98);
        border-bottom: var(--border-dark);
        flex-direction: column;
        padding: 30px 0;
        gap: 24px;
        z-index: 99;
        backdrop-filter: blur(10px);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .stat-number {
        font-size: 2rem;
    }
}
