/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #FDF5E6;
    color: #1a1a1a;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 245, 230, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    padding: 0.5rem 0;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.nav-btn:hover,
.nav-btn.active {
    color: #000;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

.nav-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    width: 100px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #000;
    transition: width 0.5s ease;
}

.section-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    min-width: 24px;
}

/* Main Container */
.content-container {
    width: 100%;
    padding-top: 80px;
}

.panel {
    width: 100%;
    min-height: calc(100vh - 80px);
    display: none !important;
    padding: 2rem 4rem;
    position: relative;
}

.panel.active {
    display: block !important;
}

#tools {
    padding: 1rem 4rem 2rem;
}

.panel-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Home Section */
.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: calc(100vh - 160px);
    padding: 2rem 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-greeting {
    display: block;
    font-size: 1.5rem;
    color: #666;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.hero-name {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: #000;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 0.025em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.hero-bio {
    margin-bottom: 3rem;
}

.hero-bio p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #444;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #000;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.hero-visual {
    position: relative;
    flex-shrink: 0;
}

.profile-image {
    width: 500px;
    height: 500px;
    border-radius: 8px;
    background: #ffffff;
    border: 2px solid #E08F71;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(224, 143, 113, 0.2);
}

.image-placeholder {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: all;
    position: relative;
    z-index: 10;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.element {
    position: absolute;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 2px;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: -20px;
    animation-delay: 0s;
}

.element-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: -10px;
    animation-delay: 2s;
}

.element-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: -30px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

#tools .section-header {
    margin-bottom: 1.5rem;
}

#cv .section-header {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #000;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Research Section */
.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
    min-height: 350px;
    align-items: stretch;
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
}

.explore-more p {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

.scholar-link {
    color: #E08F71;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.scholar-link:hover {
    color: #CC7A5C;
}

.profile-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.profile-links .btn-secondary {
    text-decoration: none;
    display: inline-block;
    background: #E08F71 !important;
    color: #1a1a1a !important;
    border: 2px solid #CC7A5C !important;
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(224, 143, 113, 0.3) !important;
    text-transform: uppercase !important;
}

.profile-links .btn-secondary:hover {
    background: #CC7A5C !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(224, 143, 113, 0.4) !important;
    border-color: #8BC34A !important;
    color: #1a1a1a !important;
}

.research-card {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.research-card:hover {
    transform: translateY(-5px);
    background: #f5f5f5;
    border-color: #ccc;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.research-card.featured {
    border-color: #000;
    background: #f8f8f8;
}

.research-card.featured::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-tag {
    background: linear-gradient(90deg, #E08F71, #CC7A5C);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-year {
    color: #888;
    font-size: 0.9rem;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.1rem;
}

.card-description {
    color: #666;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-metrics {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.7rem;
    color: #888;
    flex-wrap: wrap;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.publication-link {
    color: #E08F71;
    text-decoration: underline;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.publication-link:hover {
    color: #CC7A5C;
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    /* Removed hover animation */
}

.tool-card.highlight {
    border-color: rgba(230, 81, 0, 0.5);
    background: rgba(230, 81, 0, 0.1);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.tool-description {
    color: #666;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.9rem;
    flex: 1;
}

.tool-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.tool-tech {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.tool-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

/* Featured (first) post: spans the full row with a side image */
.blog-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
}

.blog-card.featured .blog-thumb {
    flex: 0 0 240px;
}

.blog-card.featured .blog-card-content {
    padding: 1.6rem 1.8rem;
}

@media (max-width: 700px) {
    .blog-card.featured { flex-direction: column; }
    .blog-card.featured .blog-thumb { flex-basis: 180px; width: 100%; }
    .blog-card.featured .blog-card-content { padding: 1.4rem; }
}

/* Thumbnail block (featured side image, or top image on standard cards) */
.blog-thumb {
    background: #EAD9B8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B23F00;
    font-size: 1.8rem;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    border: none;
    border-radius: 0;
}

.blog-card > .blog-thumb {
    height: 150px;
    margin: -1.4rem -1.4rem 1.1rem;
}

/* Badge on the featured card */
.blog-badge {
    background: #E65100;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.blog-post {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(230, 81, 0, 0.3);
}

.featured-post {
    border-color: rgba(230, 81, 0, 0.5);
    background: rgba(230, 81, 0, 0.1);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.post-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.post-excerpt {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.post-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}

/* Blog Card Styles */
.blog-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(120, 90, 40, 0.06);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 81, 0, 0.35);
    box-shadow: 0 16px 34px rgba(120, 90, 40, 0.14);
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.blog-date {
    color: #9a8f7d;
    font-size: 0.8rem;
    white-space: nowrap;
}

.blog-card-content > .blog-date {
    display: block;
    margin-bottom: 0.5rem;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.blog-tag {
    background: rgba(230, 81, 0, 0.10);
    color: #B23F00;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.blog-card.featured .blog-title {
    font-size: 1.45rem;
}

.blog-excerpt {
    color: #6b6b6b;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.85rem;
}

.blog-read-more {
    align-self: flex-start;
    margin-top: auto;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #E65100;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: inherit;
    transition: color 0.2s ease;
}

.blog-read-more:hover {
    color: #B23F00;
    text-decoration: underline;
}

/* Blog Post Image Styling */
.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    display: block;
}

.blog-post-content img + em {
    display: block;
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

/* Responsive images in blog cards */
.blog-card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Featured images in blog previews */
.blog-featured-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Image gallery styles for multiple images */
.blog-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.blog-image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-image-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* CV Section */
.cv-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 200px);
    max-width: 1000px;
    margin: 0 auto;
}

.cv-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cv-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cv-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #E08F71;
    box-shadow: 0 8px 20px rgba(224, 143, 113, 0.2);
}

.cv-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 3rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.cv-download-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    text-decoration: none;
    display: inline-block;
}

.cv-section {
    margin-bottom: 3rem;
}

.cv-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #fff;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.cv-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cv-date {
    color: #888;
    font-weight: 500;
}

.cv-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.cv-details p {
    color: #ccc;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.cv-description {
    color: #888 !important;
    font-style: italic;
}

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

.award-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.award-year {
    color: #E08F71;
    font-weight: 600;
    font-size: 1.1rem;
}

.award-name {
    color: #ccc;
    margin-top: 0.5rem;
}

.btn-download {
    background: linear-gradient(90deg, #E08F71, #CC7A5C);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 81, 0, 0.3);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.contact-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #E08F71;
    box-shadow: 0 8px 20px rgba(224, 143, 113, 0.2);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.contact-details p {
    color: #ccc;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    color: #E08F71;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #CC7A5C;
}

.contact-form {
    background: #ffffff;
    border: 2px solid #E08F71;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(224, 143, 113, 0.15);
}

.form-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E08F71;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(224, 143, 113, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, #E08F71, #CC7A5C);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 81, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Scroll Indicators */
.scroll-indicators {
    display: none;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.scroll-arrow:hover {
    background: rgba(230, 81, 0, 0.2);
    border-color: rgba(230, 81, 0, 0.5);
    transform: scale(1.1);
}

.scroll-arrow span {
    font-size: 1.2rem;
    color: #fff;
}

.scroll-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.scroll-arrow.disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .panel {
        padding: 0 2rem;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem;
}

.mobile-nav-menu.active {
    display: block;
}

.mobile-nav-menu .nav-btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    font-size: 1rem;
}

@media (max-width: 968px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .content-container {
        padding-top: 0;
    }

    .panel {
        width: 100%;
        min-height: 100vh;
        padding: 1.5rem 1rem;
        box-sizing: border-box;
        padding-top: 80px;
    }
    
    .navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1001;
        padding: 1rem;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        min-height: auto;
        padding-top: 2rem;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .hero-name {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .research-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 1.5rem;
        min-height: auto;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .research-card,
    .tool-card,
    .blog-card {
        padding: 1.2rem;
        min-height: auto;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .cv-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    .cv-image {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .cv-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .scroll-indicators {
        display: none;
    }
    
    .nav-progress {
        display: none;
    }
    
    .progress-bar {
        height: 3px;
    }
    
    /* Better spacing for mobile */
    .panel-content {
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 640px) {
    .navigation {
        padding: 0.8rem 1rem;
    }
    
    .panel {
        padding: 1rem 0.8rem;
        min-height: calc(100vh - 60px);
    }
    
    .hero-name {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .research-card,
    .tool-card,
    .blog-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .card-title, .tool-title, .blog-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .card-description, .tool-description, .blog-excerpt {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* GeoCities Retro Theme */
body.geocities-mode {
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff00ff) !important;
    background-size: 400% 400% !important;
    animation: rainbow-bg 3s ease-in-out infinite !important;
    font-family: "Comic Sans MS", cursive !important;
    overflow-x: visible !important;
}

/* Flame Banner CSS Art */
body.geocities-mode::after {
    content: "";
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    height: 60px;
    background: 
        radial-gradient(ellipse at 10% 50%, #ff4500 0%, transparent 50%),
        radial-gradient(ellipse at 20% 30%, #ff6347 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, #ff0000 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, #ff4500 0%, transparent 50%),
        radial-gradient(ellipse at 50% 60%, #ffa500 0%, transparent 50%),
        radial-gradient(ellipse at 60% 25%, #ff6347 0%, transparent 50%),
        radial-gradient(ellipse at 70% 75%, #ff0000 0%, transparent 50%),
        radial-gradient(ellipse at 80% 35%, #ff4500 0%, transparent 50%),
        radial-gradient(ellipse at 90% 65%, #ffa500 0%, transparent 50%),
        linear-gradient(90deg, transparent 0%, #ff4500 50%, transparent 100%);
    animation: flame-flicker 1s ease-in-out infinite alternate;
    z-index: 9998;
    pointer-events: none;
    border-bottom: 3px solid #ff0000;
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.8);
}

@keyframes rainbow-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes flame-flicker {
    0% { 
        transform: scaleY(1) scaleX(1);
        opacity: 0.9;
    }
    100% { 
        transform: scaleY(1.1) scaleX(0.95);
        opacity: 1;
    }
}

body.geocities-mode .navigation {
    background: linear-gradient(90deg, #ff1493, #00bfff, #32cd32) !important;
    border-bottom: 3px solid #ff0000 !important;
    box-shadow: 0 0 20px #ff00ff !important;
}

body.geocities-mode .nav-btn {
    background: linear-gradient(45deg, #ffff00, #ff69b4) !important;
    color: #000 !important;
    border: 2px outset #808080 !important;
    padding: 0.5rem 1rem !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 0 #fff !important;
    border-radius: 0 !important;
}

body.geocities-mode .nav-btn:hover {
    background: linear-gradient(45deg, #ff69b4, #ffff00) !important;
    transform: scale(1.1) !important;
}

body.geocities-mode .hero-name {
    background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ff0000) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: rainbow-text 2s linear infinite !important;
    text-shadow: 2px 2px 4px #000 !important;
    filter: drop-shadow(0 0 10px #ff00ff) !important;
}

@keyframes rainbow-text {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.geocities-mode .hero-greeting {
    color: #ff0000 !important;
    text-shadow: 2px 2px 0 #ffff00, 4px 4px 0 #00ff00 !important;
    animation: blink 1s linear infinite !important;
}

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

body.geocities-mode .hero-subtitle {
    background: #ffff00 !important;
    color: #ff00ff !important;
    padding: 10px !important;
    border: 3px dashed #ff0000 !important;
    animation: marquee-scroll 5s linear infinite !important;
    transform: rotate(-2deg) !important;
}

body.geocities-mode .hero-bio {
    background: linear-gradient(45deg, #ffff00, #ff69b4, #00ffff) !important;
    border: 5px ridge #ff0000 !important;
    padding: 20px !important;
    margin-bottom: 3rem !important;
    transform: rotate(1deg) !important;
    box-shadow: 10px 10px 0 #000, 15px 15px 0 #ff00ff !important;
    animation: bio-wiggle 4s ease-in-out infinite !important;
}

@keyframes bio-wiggle {
    0%, 100% { transform: rotate(1deg) translateX(0px); }
    25% { transform: rotate(-1deg) translateX(2px); }
    50% { transform: rotate(1deg) translateX(-2px); }
    75% { transform: rotate(-0.5deg) translateX(1px); }
}

body.geocities-mode .hero-stats {
    background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00) !important;
    border: 3px outset #808080 !important;
    padding: 15px !important;
    transform: rotate(-1deg) !important;
    animation: stats-pulse 2s ease-in-out infinite !important;
}

@keyframes stats-pulse {
    0%, 100% { transform: rotate(-1deg) scale(1); }
    50% { transform: rotate(1deg) scale(1.05); }
}

body.geocities-mode .stat-number {
    color: #ff00ff !important;
    text-shadow: 2px 2px 0 #ffff00, 4px 4px 0 #000 !important;
    animation: number-bounce 1.5s ease-in-out infinite !important;
}

@keyframes number-bounce {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

body.geocities-mode .profile-image {
    border: 5px solid #ff0000 !important;
    box-shadow: 0 0 30px #ff00ff, inset 0 0 30px #00ffff !important;
    animation: photo-spin 10s linear infinite !important;
}

@keyframes photo-spin {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

body.geocities-mode .btn-primary,
body.geocities-mode .btn-secondary {
    background: linear-gradient(45deg, #ff0000, #ffff00) !important;
    color: #000 !important;
    border: 3px outset #808080 !important;
    border-radius: 0 !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 0 #fff !important;
    box-shadow: 0 0 15px #ff00ff !important;
}

body.geocities-mode .section-title {
    background: linear-gradient(45deg, #ff1493, #00bfff) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(2px 2px 0 #ffff00) !important;
    animation: title-bounce 2s ease-in-out infinite !important;
}

@keyframes title-bounce {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

body.geocities-mode .research-card,
body.geocities-mode .tool-card,
body.geocities-mode .blog-post {
    background: linear-gradient(135deg, #ffff00, #ff69b4, #00ffff) !important;
    border: 3px solid #ff0000 !important;
    border-radius: 0 !important;
    box-shadow: 10px 10px 0 #000, 0 0 20px #ff00ff !important;
    transform: rotate(-1deg) !important;
}

body.geocities-mode .contact-form {
    background: linear-gradient(45deg, #ff00ff, #ffff00) !important;
    border: 5px ridge #ff0000 !important;
    animation: form-pulse 3s ease-in-out infinite !important;
}

@keyframes form-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

body.geocities-mode .floating-elements .element {
    background: radial-gradient(circle, #ff0000, #00ff00, #0000ff) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 20px #ff00ff !important;
}

/* Easter egg reset button */
body.geocities-mode::before {
    content: "🌈 WELCOME TO RYAN'S TOTALLY RADICAL HOMEPAGE! 🌈 Click photo again to escape the 90s!";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #ff00ff, #ff0000);
    background-size: 300% 100%;
    animation: rainbow-banner 2s linear infinite;
    color: #000;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    z-index: 10000;
    font-family: "Comic Sans MS", cursive;
    border-bottom: 3px solid #000;
}

@keyframes rainbow-banner {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Animation for smooth transitions */
@media (prefers-reduced-motion: no-preference) {
    .panel-content > * {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.8s ease forwards;
    }
    
    .panel-content > *:nth-child(1) { animation-delay: 0.1s; }
    .panel-content > *:nth-child(2) { animation-delay: 0.2s; }
    .panel-content > *:nth-child(3) { animation-delay: 0.3s; }
}

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