/* ===========================
   Google Fonts Import
   =========================== */

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

/* ===========================
   CSS Variables & Theme Colors
   =========================== */

:root {
    /* Light Mode Colors */
    --primary: #ff4444;
    --primary-hover: #ff6666;
    --secondary: #333333;
    --accent: #ff4444;

    --bg-main: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-code: #f0f0f0;

    --text-primary: #000000;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --text-inverse: #ffffff;

    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --glow: rgba(255, 68, 68, 0.1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fonts */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
}

[data-theme="dark"] {
    --primary: #ff4444;
    --primary-hover: #ff6666;
    --secondary: #cccccc;
    --accent: #ff4444;

    --bg-main: #000000;
    --bg-secondary: #1a1a1a;
    --bg-card: #1a1a1a;
    --bg-code: #2a2a2a;

    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #999999;
    --text-inverse: #000000;

    --border: #333333;
    --shadow: rgba(0, 0, 0, 0.5);
    --glow: rgba(255, 68, 68, 0.2);
}

/* ===========================
   Reset & Base Styles
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ===========================
   Navigation
   =========================== */

nav {
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

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

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    overflow: hidden;
    flex-shrink: 0;
}

.nav-logo img {
    max-height: 30px;
    max-width: 30px;
    height: auto;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    flex-shrink: 0;
}

/* Default: Dark mode - show dark logo, hide light logo */
.nav-logo .logo-light {
    display: none !important;
}

.nav-logo .logo-dark {
    display: inline-block !important;
}

/* Light mode - show light logo, hide dark logo */
[data-theme="light"] .nav-logo .logo-dark {
    display: none !important;
}

[data-theme="light"] .nav-logo .logo-light {
    display: inline-block !important;
}

.nav-logo:hover img {
    opacity: 0.8;
}

.nav-home-text {
    margin-left: 0.50rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    letter-spacing: -0.01em;
}

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

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dark Mode Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.theme-toggle:hover {
    border-color: var(--primary);
}

/* Theme icon images */
.theme-icon {
    width: 45px;
    height: 20px;
    object-fit: cover;
    transition: var(--transition);
    margin: 0;
    padding: 0;
    display: block;
}

/* Default: Dark mode - show moon, hide sun */
.theme-icon-light {
    display: none !important;
}

.theme-icon-dark {
    display: inline-block !important;
}

/* Light mode - show sun, hide moon */
[data-theme="light"] .theme-icon-dark {
    display: none !important;
}

[data-theme="light"] .theme-icon-light {
    display: inline-block !important;
}

.hashtag-btn {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    letter-spacing: 0.5px;
    box-shadow: none;
}

.hashtag-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(255, 68, 68, 0.2);
}

.hashtag-btn.active {
    background: transparent !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 12px rgba(255, 68, 68, 0.3) !important;
}

/* ===========================
   Hero Section
   =========================== */

.hero-section {
    background: #000000;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .hero-section {
    background: #ffffff;
    color: #000000;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.hero-location {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 1.5rem;
}

.tagline {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-location {
        font-size: 0.9rem;
    }

    .tagline {
        font-size: 1.1rem;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.03) 50%, transparent 70%);
    animation: shimmer 4s infinite;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-section .subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: -0.01em;
}

.hero-section .tagline {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Credly Badges */
.credly-badges {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.credly-badges a {
    display: block;
    transition: var(--transition);
}

.credly-badges img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px var(--shadow);
    transition: var(--transition);
}

.credly-badges a:hover img {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px var(--shadow), 0 0 20px var(--glow);
}

@media (max-width: 768px) {
    .credly-badges img {
        width: 35px;
        height: 35px;
    }
}

/* ===========================
   Hero Section (Horizontal Scrolling SVG Icons)
   =========================== */

.sj-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #1a1a1a 100%);
    padding: 0.5rem 0.5rem;
}

[data-theme="light"] .sj-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #ffffff 100%);
}

.sj-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4.4rem;
    padding: 5rem 0;
}

.sj-icon-row {
    display: flex;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.sj-icon-track {
    display: inline-flex;
    gap: 80px;
    align-items: center;
}

/* Row 1 - Scroll Left */
.sj-row-1 {
    animation: sj-scroll-left 60s linear infinite;
}

/* Row 2 - Scroll Right */
.sj-row-2 {
    animation: sj-scroll-right 55s linear infinite;
}

/* Row 3 - Scroll Left (slower) */
.sj-row-3 {
    animation: sj-scroll-left 65s linear infinite;
}

.sj-tech-icon {
    width: 60px;
    height: 60px;
    color: #ff4444;
    opacity: 0.3;
    filter: drop-shadow(0 4px 8px rgba(255, 68, 68, 0.3));
    flex-shrink: 0;
}

[data-theme="light"] .sj-tech-icon {
    color: #ff4444;
    opacity: 0.15;
    filter: drop-shadow(0 2px 4px rgba(255, 68, 68, 0.2));
}

.sj-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0.5rem;
    color: white;
}

[data-theme="light"] .sj-hero-content {
    color: #000000;
}

.sj-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 68, 68, 0.1);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

[data-theme="light"] .sj-status {
    background: rgba(255, 68, 68, 0.08);
    color: #000000;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.sj-status-dot {
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    animation: sj-status-pulse 2s ease-in-out infinite;
}

.sj-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 12px rgba(255, 68, 68, 0.3);
    letter-spacing: -0.03em;
}

[data-theme="light"] .sj-hero-title {
    text-shadow: 0 2px 8px rgba(255, 68, 68, 0.2);
}

.sj-hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

/* ===========================
   Shared Page Hero Styles
   =========================== */

.page-hero {
    background: var(--bg-main);
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ff4444;
    letter-spacing: -0.02em;
}

.page-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 2rem 1.5rem 1.5rem;
    }

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

    .page-hero p {
        font-size: 1rem;
    }
}

[data-theme="light"] .sj-hero-subtitle {
    opacity: 0.8;
}

.sj-gradient-text {
    background: linear-gradient(135deg, #ff6666, #ff4444, #ff2222);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

[data-theme="light"] .sj-gradient-text {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sj-hero-cta {
    margin-top: 2rem;
}

.sj-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* background: #ff4444; */
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    border: 2px solid #ff4444;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 20px rgba(255, 68, 68, 0.4);
}

.sj-cta-button:hover {
    background: #ff6666;
    border-color: #ff6666;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
    box-shadow: 0 8px 30px rgba(255, 68, 68, 0.6);
}

.sj-cta-button:focus {
    outline: 2px solid #ff4444;
    outline-offset: 2px;
}

[data-theme="light"] .sj-cta-button {
    background: #ff4444;
    color: white;
    border-color: #ff4444;
}

[data-theme="light"] .sj-cta-button:hover {
    background: #ff6666;
    border-color: #ff6666;
    color: white;
}

/* Animations */
@keyframes sj-scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes sj-scroll-right {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes sj-status-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Accessibility - Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .sj-status-dot {
        animation: none;
    }

    .sj-cta-button {
        transition: none;
    }

    .sj-cta-button:hover {
        transform: none;
    }
}

/* Responsive adjustments for hero */
@media (max-width: 968px) {
    .sj-hero {
        min-height: 45vh;
        padding: 3rem 1.5rem;
    }

    .sj-hero-background {
        gap: 1.5rem;
    }

    .sj-icon-track {
        gap: 60px;
    }

    .sj-tech-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .sj-hero {
        min-height: 40vh;
        padding: 2.5rem 1rem;
    }

    .sj-hero-background {
        gap: 1.25rem;
    }

    .sj-icon-track {
        gap: 50px;
    }

    .sj-tech-icon {
        width: 45px;
        height: 45px;
        opacity: 0.25;
    }

    [data-theme="light"] .sj-tech-icon {
        opacity: 0.12;
    }

    .sj-hero-content {
        padding: 1.5rem;
    }

    .sj-status {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .sj-hero-subtitle {
        margin-bottom: 1.5rem;
    }

    .sj-cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* Speed up animations on mobile */
    .sj-row-1 {
        animation-duration: 30s;
    }

    .sj-row-2 {
        animation-duration: 25s;
    }

    .sj-row-3 {
        animation-duration: 35s;
    }
}

@media (max-width: 480px) {
    .sj-hero {
        min-height: 35vh;
        padding: 2rem 1rem;
    }

    .sj-hero-background {
        gap: 1rem;
    }

    .sj-icon-track {
        gap: 40px;
    }

    .sj-tech-icon {
        width: 35px;
        height: 35px;
        opacity: 0.2;
    }

    [data-theme="light"] .sj-tech-icon {
        opacity: 0.1;
    }

    .sj-cta-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    /* Further speed up on small screens */
    .sj-row-1 {
        animation-duration: 25s;
    }

    .sj-row-2 {
        animation-duration: 20s;
    }

    .sj-row-3 {
        animation-duration: 30s;
    }
}

/* ===========================
   Buttons
   =========================== */

.btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-block;
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 12px rgba(255, 68, 68, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.4), 0 10px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 68, 68, 0.05);
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--glow);
}

/* ===========================
   Container & Sections
   =========================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--spacing-1xl) var(--spacing-lg);
}

.section {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 700px;
    font-weight: 500;
    line-height: 1.6;
}

/* ===========================
   About Section
   =========================== */

.about-section {
    padding: var(--spacing-2xl) 0;
}

.about-section .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0.2rem;
    align-items: flex-start;
}

.about-text {
    order: 1;
}

.about-image {
    order: 2;
    position: sticky;
    top: 2rem;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px var(--shadow);
}

.about-content {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    margin-bottom: 0;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

.about-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        order: 1;
    }

    .about-image {
        order: 2;
    }

    .about-image img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .about-grid {
        gap: 1.5rem;
    }

    .about-image img {
        max-width: 250px;
    }

    .about-content p {
        font-size: 0.95rem;
    }
}

/* ===========================
   Achievement Cards
   =========================== */

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.achievement-card {
    background: var(--bg-card);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.achievement-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

.achievement-card:hover h3 {
    color: var(--primary);
}

.achievement-card p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin: 0;
    transition: var(--transition);
}

.achievement-card:hover p {
    color: var(--text-secondary);
}

/* ===========================
   Skills Grid
   =========================== */

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

.skill-category {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px var(--glow), 0 12px 24px var(--shadow);
    border-color: var(--primary);
}

.skill-category h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    transition: var(--transition);
    font-weight: 500;
}

.skill-category li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.skill-category li:hover {
    color: var(--text-primary);
    padding-left: 2rem;
}

/* ===========================
   Project Cards
   =========================== */

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

.project-card {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px var(--glow), 0 16px 32px var(--shadow);
    border-top-color: var(--accent);
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
}

/* ===========================
   Article Cards
   =========================== */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    width: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--primary);
}

.article-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

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

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    min-height: 1.5rem;
}

.article-tags-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    flex: 1;
    align-items: center;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.article-tags-scroll::-webkit-scrollbar {
    display: none;
}

.article-read-time {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: max-content;
}

.article-date {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    white-space: nowrap;
    color: var(--text-inverse);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    display: none;
}

/* Uncomment below to show article dates */
/* .article-date {
    display: block !important;
} */

.article-tag {
    color: var(--primary);
    font-weight: 500;
}

.article-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.article-card .article-title {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    margin-top: 0 !important;
    display: block !important;
}

.article-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* ===========================
   Blog Cards
   =========================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px var(--glow), 0 16px 32px var(--shadow);
    border-color: var(--primary);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-header {
    padding: var(--spacing-lg);
    background: var(--bg-code);
    border-bottom: 1px solid var(--border);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    align-items: center;
}

.blog-tag {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px var(--glow);
}

.blog-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.blog-card-body {
    padding: var(--spacing-lg);
}

.blog-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.read-more:hover {
    gap: 0.75rem;
    color: var(--primary-hover);
}

/* ===========================
   Footer
   =========================== */

footer {
    background: var(--text-primary);
    color: var(--text-inverse);
    padding: var(--spacing-lg) var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

[data-theme="dark"] footer {
    background: #020617;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 800px;
    margin: 0;
    text-align: left;
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0;
}

.footer-links a::after {
    content: "→";
    opacity: 0;
    transition: var(--transition);
    margin-left: -0.5rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-links a:hover::after {
    opacity: 1;
    margin-left: 0;
}

[data-theme="dark"] .footer-links a {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--text-primary);
}

.footer-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

[data-theme="dark"] .footer-content p {
    color: var(--text-tertiary);
}

/* ===========================
   Social Links
   =========================== */

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.social-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.social-links a .arrow {
    font-size: 1.5rem;
    transition: var(--transition);
    margin-left: 0.5rem;
    opacity: 1;
    color: var(--text-primary);
    transform: translate(0, 0);
}

.social-links a:hover .arrow {
    transform: translate(4px, 0);
}

[data-theme="dark"] .social-links a:hover {
    color: var(--primary);
}

/* Contact page - horizontal social links */
#contact-methods {
    margin-bottom: 0;
}

#contact-methods .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    border: none;
    padding: 1rem 0;
    margin: 0;
}

#contact-methods .social-links a {
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    padding-left: 0;
}

#contact-methods .social-links a .arrow {
    margin-left: -0.5rem;
    opacity: 0;
}

#contact-methods .social-links a:hover {
    padding-left: 0.5rem;
}

#contact-methods .social-links a:hover .arrow {
    margin-left: 0;
    opacity: 1;
}

/* Topics section - red headings */
#topics .achievement-card h3 {
    color: var(--primary);
}

/* Certifications & Achievements section - red headings */
#certifications .achievement-card h3 {
    color: var(--primary);
}

/* Community & Mentoring section - red headings */
#mentoring .achievement-card h3 {
    color: var(--primary);
}

/* ===========================
   Contact Link Cards
   =========================== */

.contact-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
    margin: 2rem auto;
    width: fit-content;
    padding: 0;
    box-sizing: border-box;
}

.contact-link-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    aspect-ratio: 1;
}

.contact-link-card:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.contact-link-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: var(--transition);
    object-fit: contain;
}

.contact-link-card:hover .contact-link-image {
    filter: drop-shadow(0 0 12px var(--primary));
}


@media (max-width: 768px) {
    .social-links {
        gap: 0.75rem;
    }

    .social-links a {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }

    #contact-methods .social-links {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    #contact-methods .social-links a {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 0;
    }
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 968px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }

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

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

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section .subtitle {
        font-size: 1.25rem;
    }

    .container {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

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

    .theme-toggle {
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===========================
   Scrollable Tags
   =========================== */

.article-tags-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    flex: 1;
    align-items: center;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.article-tags-scroll::-webkit-scrollbar {
    display: none;
}

.article-read-time {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: max-content;
}
