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

:root {
    /* Bitcoin Orange Color Palette */
    --primary: #f7931a;
    --primary-dark: #e8820e;
    --secondary: #64748b;
    --accent: #ff9500;
    --success: #10b981;
    --warning: #f59e0b;
    
    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9F9F9;
    --gray-100: #F5F5F7;
    --gray-200: #E5E5EA;
    --gray-300: #D1D1D6;
    --gray-400: #C7C7CC;
    --gray-500: #AEAEB2;
    --gray-600: #8E8E93;
    --gray-700: #6D6D70;
    --gray-800: #48484A;
    --gray-900: #1D1D1F;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-heavy: 800;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}


/* Passcode Protection Styles */
.passcode-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.passcode-container {
    background: var(--white);
    padding: var(--spacing-3xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.passcode-header h1 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.passcode-header h2 {
    font-size: 1.2rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

.passcode-instruction {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
}

.passcode-hint {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.passcode-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1.2rem;
    text-align: center;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-lg);
    transition: border-color 0.3s ease;
}

.passcode-input:focus {
    outline: none;
    border-color: var(--primary);
}

.passcode-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.passcode-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.passcode-error {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: #dc2626;
    font-size: 0.9rem;
}

/* Matrix Terminal Styles */
.matrix-terminal {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 300px;
    height: 200px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    color: var(--primary);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.terminal-content {
    white-space: pre-wrap;
    line-height: 1.3;
    letter-spacing: 0.5px;
    height: 100%;
    overflow: hidden;
}

.matrix-cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

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

.matrix-orange {
    color: var(--primary);
    font-weight: bold;
}

.main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-content.visible {
    opacity: 1;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: var(--font-weight-medium);
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--gray-900);
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.hero-introduction {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-600);
    margin-bottom: var(--spacing-sm);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: var(--font-weight-heavy);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

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

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.genesis-quote {
    margin: var(--spacing-lg) auto var(--spacing-xl) auto;
    padding: var(--spacing-xl);
    background: rgba(247, 147, 26, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    max-width: 800px;
    width: 100%;
}

.genesis-terminal {
    font-family: 'Courier Prime', monospace;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--gray-900);
    background: rgba(0, 0, 0, 0.02);
    padding: var(--spacing-lg);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(247, 147, 26, 0.2);
    white-space: pre-wrap;
    letter-spacing: 0.3px;
    height: 160px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0 auto;
}

.genesis-cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

.genesis-orange {
    color: var(--primary);
    font-weight: bold;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-900);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    width: 300px;
    height: 400px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
}

.floating-card::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    top: 100px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(8px) rotate(-1deg); }
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes subtleGlow {
    0%, 100% { box-shadow: var(--shadow-lg); }
    50% { box-shadow: var(--shadow-xl), 0 0 30px rgba(247, 147, 26, 0.15); }
}

/* Section Styles */
section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    font-weight: var(--font-weight-medium);
}

/* About Section */
.about {
    background: var(--gray-50);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: var(--spacing-md);
}

.about-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.stat p {
    color: var(--gray-600);
    font-weight: var(--font-weight-medium);
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--primary);
    transition: all 0.3s ease;
    position: relative;
    animation: gentleFloat 4s ease-in-out infinite;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-dark);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* Education Section Styles */
.education {
    background: var(--white);
}

/* Research Section Styles */
.research {
    background: var(--gray-50);
}

/* Teaching Section Styles */
.teaching {
    background: var(--white);
}

/* Research project placeholders */
.research-blockchain::after {
    content: '🔗';
}

.research-philanthropy::after {
    content: '💝';
}

.research-vr::after {
    content: '🥽';
}

.research-defi::after {
    content: '💰';
}

.research-ai-ethics::after {
    content: '🤖';
}

.research-metaverse::after {
    content: '🌐';
}


/* Skills Gallery Styles */
.skills-gallery {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.skills-gallery .gallery-container {
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: var(--spacing-xl);
    padding: var(--spacing-sm) 0;
}

.skills-gallery .skill-card {
    width: 350px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.skills-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.skills-dots {
    display: flex;
    gap: var(--spacing-sm);
}

/* Skills grid with 4 columns for better layout */
@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Detail Pages Styles */
.research-detail, .course-detail {
    padding: var(--spacing-3xl) 0;
    min-height: 100vh;
}

.research-header, .course-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    padding-top: var(--spacing-xl);
}

.research-header h1, .course-header h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.research-header h2, .course-header h2 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

.research-meta, .course-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.meta-item {
    background: var(--gray-100);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
}

.research-content, .course-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.content-section {
    margin-bottom: var(--spacing-3xl);
}

.content-section h3 {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary);
    padding-bottom: var(--spacing-xs);
    display: inline-block;
}

.content-section p {
    font-size: 1.1rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.research-list, .course-list {
    list-style: none;
    padding-left: 0;
}

.research-list li, .course-list li {
    position: relative;
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--gray-700);
    font-size: 1.1rem;
    line-height: 1.6;
}

.research-list li::before, .course-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

.findings-grid, .focus-grid, .methodology-grid, .topics-grid, .modules-grid, .applications-grid, .approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.finding-card, .focus-card, .method-card, .topic-card, .module-card, .application-card, .approach-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.finding-card:hover, .focus-card:hover, .method-card:hover, .topic-card:hover, .module-card:hover, .application-card:hover, .approach-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.finding-card h4, .focus-card h4, .method-card h4, .topic-card h4, .module-card h4, .application-card h4, .approach-card h4 {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.finding-card p, .focus-card p, .method-card p, .application-card p, .approach-card p {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.5;
}

.topic-card ul, .module-card ul {
    list-style: none;
    padding-left: 0;
}

.topic-card li, .module-card li {
    padding: var(--spacing-xs) 0;
    color: var(--gray-700);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-200);
}

.topic-card li:last-child, .module-card li:last-child {
    border-bottom: none;
}

.tech-stack, .publications, .materials {
    background: var(--gray-50);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
}

.tech-stack h4, .materials h4 {
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.tech-list, .materials-list {
    list-style: none;
    padding-left: 0;
}

.tech-list li, .materials-list li {
    padding: var(--spacing-xs) 0;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.course-levels, .case-studies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.level-card, .case-card {
    background: var(--gray-50);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
}

.level-card h4, .case-card h4 {
    color: var(--primary);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

.tools-grid, .tool-category {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.tool-category h4 {
    color: var(--gray-900);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}

.tool-category ul {
    list-style: none;
    padding-left: 0;
}

.tool-category li {
    background: var(--gray-100);
    padding: var(--spacing-xs) var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.research-contact, .course-contact {
    text-align: center;
    background: var(--gray-50);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin: var(--spacing-3xl) 0;
}

.research-contact h3, .course-contact h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.research-contact p, .course-contact p {
    color: var(--gray-700);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

/* Responsive adjustments for detail pages */
@media (max-width: 768px) {
    .research-meta, .course-meta {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .findings-grid, .focus-grid, .methodology-grid, .topics-grid, .modules-grid, .applications-grid, .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .course-levels, .case-studies {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid,
    .social-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .social-card {
        padding: var(--spacing-lg);
    }
    
    .social-card-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .social-logo {
        width: 80px;
        height: 80px;
        padding: 12px;
    }
}

/* Additional styles for session list */
.session-list {
    margin-top: var(--spacing-md);
}

.session-item {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary);
    margin-bottom: var(--spacing-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.session-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.session-item h4 {
    color: var(--gray-900);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.session-item p {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Experience Section */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gray-300);
    top: 0;
}

.timeline-item {
    display: flex;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: 150px;
    text-align: center;
    padding: var(--spacing-sm);
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    align-self: flex-start;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 0 var(--spacing-lg);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.timeline-content h3 small {
    font-size: 1rem;
    font-weight: var(--font-weight-regular);
    color: var(--gray-600);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
}

.timeline-content p {
    color: var(--gray-700);
    margin-bottom: var(--spacing-md);
}

.timeline-achievements {
    list-style: none;
    padding-left: 0;
}

.timeline-achievements li {
    position: relative;
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    color: var(--gray-700);
}

.timeline-achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.timeline-links {
    margin-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.timeline-link {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
}

.timeline-link:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Skills Section */
.skills {
    background: var(--gray-50);
}

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

.skill-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.skill-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.skill-card h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.skill-tag {
    background: var(--gray-100);
    color: var(--gray-800);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
}

/* Projects Gallery Section */
.projects-gallery {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-container {
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: var(--spacing-xl);
    padding: var(--spacing-sm) 0;
}

.projects-gallery .project-card {
    width: 350px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.gallery-btn {
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gallery-btn:disabled:hover {
    background: var(--white);
    color: var(--primary);
    box-shadow: none;
}

.gallery-dots {
    display: flex;
    gap: var(--spacing-sm);
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.gallery-dot:hover {
    background: var(--primary-dark);
}

/* Projects Grid (fallback for non-JS) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

.project-placeholder::after {
    content: '🚀';
}

.project-content {
    padding: var(--spacing-lg);
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.project-content p {
    color: var(--gray-700);
    margin-bottom: var(--spacing-md);
}

.project-tags {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.tag {
    background: var(--gray-100);
    color: var(--gray-800);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
}

.project-links {
    display: flex;
    gap: var(--spacing-sm);
}

.project-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background: var(--gray-100);
}

/* Social Media Section */
.social-section {
    background: var(--white);
    padding: var(--spacing-3xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1100px;
    margin: 0 auto var(--spacing-3xl) auto;
}

.socials-header {
    text-align: center;
    margin: var(--spacing-3xl) 0 var(--spacing-xl) 0;
}

.socials-header h3 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.socials-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1100px;
    margin: 0 auto;
}

.social-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.social-card:hover::before {
    opacity: 1;
}

.social-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.social-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-card:hover .social-logo {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}


.contact-card {
    border-left: 4px solid var(--primary);
}

.social-info h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.social-handle {
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    margin: 0;
}

.social-description {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

.social-link-btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
}

.social-link-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.orange-btn {
    background: linear-gradient(135deg, #ff9500 0%, var(--primary) 100%);
}

.orange-btn:hover {
    background: linear-gradient(135deg, #e8820e 0%, var(--primary-dark) 100%);
}

.disabled-btn {
    background: var(--gray-300);
    color: var(--gray-600);
    cursor: not-allowed;
}

.disabled-btn:hover {
    background: var(--gray-300);
    transform: none;
}

/* Contact Section */
.contact {
    background: var(--gray-50);
}

.contact-content-centered {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info-centered h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.contact-info-centered p {
    color: var(--gray-700);
    margin-bottom: var(--spacing-lg);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.contact-icon {
    font-size: 1.2rem;
    width: 40px;
}

.contact-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    margin-right: 16px;
}

.contact-icon-img:hover {
    filter: grayscale(0%) sepia(100%) saturate(200%) hue-rotate(25deg) brightness(1.1);
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--spacing-xl) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    flex: 1;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-center p {
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
    text-shadow: 0 0 8px var(--primary);
    font-size: 1rem;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.footer-right .social-links {
    justify-content: flex-end;
}

/* Privacy Notice */
.privacy-notice {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: var(--spacing-md) 0;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-align: center;
}

.privacy-notice a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    color: var(--white);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color 0.3s ease;
}

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

.social-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 8px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    vertical-align: middle;
}

.social-link:hover .social-icon {
    filter: brightness(0) invert(1) sepia(100%) saturate(200%) hue-rotate(25deg) brightness(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        padding-left: 50px;
    }
    
    .timeline-date {
        width: auto;
        margin-bottom: var(--spacing-sm);
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    /* Mobile gallery adjustments */
    .projects-gallery .project-card {
        width: 300px;
    }
    
    .skills-gallery .skill-card {
        width: 300px;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-controls {
        gap: var(--spacing-md);
    }
}