* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #40514E;
    margin: 0;
    font-family: "Merriweather", serif;
    text-align: center;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(234, 246, 246, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-brand a {
    font-family: "Sacramento", cursive;
    font-size: 1.8rem;
    color: #11999E;
    text-decoration: none;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-links a {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    color: #40514E;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0;
}

.nav-links a:hover {
    color: #11999E;
}

.nav-social {
    display: flex;
    gap: 15px;
}

.nav-social a {
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    background-color: #11999E;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 0;
}

.nav-social a:hover {
    background-color: #66BFBF;
    transform: scale(1.1);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #11999E;
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #11999E;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Mobile Navigation */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(234, 246, 246, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .nav-social {
        display: none;
    }
}

/* Hero Section Enhancements */
.tagline {
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    color: #40514E;
    margin: 10px 0 30px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #11999E;
    color: #11999E;
}

.btn-outline:hover {
    background: #11999E;
    color: #fff;
}

h1 {
    color: #66BFBF;
    font-family: "Sacramento", cursive;
    font-size: 5.625rem;
    margin: 50px auto 0 auto;
    line-height: 2;
}

h2 {
    color: #66BFBF;
    font-weight: normal;
    font-size: 2.5rem;
    padding-bottom: 10px;
}

h3 {
    color: #11999E;
}

p {
    line-height: 2;
}

hr {
    border: dotted gray 6px;
    border-bottom: none;
    width: 4%;
    margin: 100px auto;
}

a {
    color: #11999E;
    font-family: "Montserrat", sans-serif;
    margin: 10px 20px;
    text-decoration: none;
}

a:hover {
    color: saddlebrown;
}

.top-container {
    background-color: #EAF6F6;
    position: relative;
    padding-top: 150px; /* Adjusted for fixed navbar */
}

.middle-container {
    margin: 100px 0;
}

.bottom-container {
    background-color: #66BFBF;
    padding: 50px 0 20px;
}

.skill-row {
    width: 50%;
    margin: 100px auto 100px auto;
    text-align: left;
}

#data-title {
    font-family: "Delicious Handrawn", cursive;
    margin-top: 0;
    font-size: 2.5rem;
}

.data-word {
    text-decoration: underline;
}

.intro {
    width: 80%;
    max-width: 700px;
    margin: auto;
    font-size: 1.1rem;
}

/* Section Subtitle */
.section-subtitle {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    color: #666;
    margin-top: -10px;
    margin-bottom: 40px;
}

/* Projects Section */
.projects-section {
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.projects-page .projects-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 20px auto 0;
    max-width: 980px;
}

.projects-page .project-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    color: var(--muted);
}

.projects-page .project-bullets li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.projects-page .project-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.project-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(102, 191, 191, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(102, 191, 191, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 191, 191, 0.25);
}

.project-category {
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #11999E;
    background: #EAF6F6;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.project-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.project-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 20px;
}

.tag {
    font-family: "Montserrat", sans-serif;
    background: linear-gradient(135deg, #EAF6F6, #d4f0f0);
    color: #11999E;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

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

.project-link {
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    color: #11999E;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0;
}

.project-link:hover {
    color: #66BFBF;
    text-decoration: underline;
}

/* Work Experience Timeline */
.experience-section {
    padding: 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #11999E, #66BFBF);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #11999E;
    border: 3px solid #EAF6F6;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #11999E;
}

.timeline-date {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: #11999E;
    margin-bottom: 10px;
}

.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(102, 191, 191, 0.15);
    border-left: 4px solid #11999E;
}

.timeline-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.timeline-company {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    color: #666;
    margin: 0 0 15px 0;
}

.timeline-achievements {
    padding-left: 20px;
    margin: 15px 0;
}

.timeline-achievements li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 8px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

/* Publications Section */
.publications-section {
    padding: 20px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.publication-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(102, 191, 191, 0.15);
    border-top: 4px solid #11999E;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.publication-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.publication-authors {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0;
}

.publication-journal {
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    color: #11999E;
    font-style: italic;
    margin: 5px 0 15px 0;
}

.publication-abstract {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.publication-links {
    display: flex;
    gap: 20px;
    margin-top: auto;
}

.publication-link {
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    color: #11999E;
    text-decoration: none;
    margin: 0;
}

.publication-link:hover {
    color: #66BFBF;
    text-decoration: underline;
}

.publications-more {
    margin-top: 40px;
    font-family: "Montserrat", sans-serif;
}

.publications-more a {
    font-weight: bold;
}

.publications-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

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

.stat-number {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #11999E;
}

.stat-label {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
}

/* Skills Section (Restructured) */
.skills-section {
    padding: 20px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skill-category {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(102, 191, 191, 0.15);
}

.skill-category h3 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: #11999E;
    border-bottom: 2px solid #EAF6F6;
    padding-bottom: 10px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    font-family: "Montserrat", sans-serif;
    background: linear-gradient(135deg, #11999E, #66BFBF);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 153, 158, 0.3);
}

/* Education Section */
.education-section {
    padding: 20px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.education-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(102, 191, 191, 0.15);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #11999E, #66BFBF);
}

.education-degree {
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #11999E;
    background: #EAF6F6;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.education-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.education-institution {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    color: #666;
    margin: 5px 0;
}

.education-year {
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    color: #11999E;
    margin: 5px 0 15px 0;
}

.education-description {
    font-size: 0.9rem;
    color: #555;
    margin: 10px 0 0 0;
}

/* Certifications */
.certifications-header {
    margin-top: 50px;
    margin-bottom: 25px;
    text-align: center;
}

.certifications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.certification-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(102, 191, 191, 0.15);
    transition: transform 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-3px);
}

.cert-badge {
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #11999E, #66BFBF);
    padding: 4px 10px;
    border-radius: 15px;
}

.cert-name {
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    color: #40514E;
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
        line-height: 1.5;
    }

    h2 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
        padding: 0 20px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .projects-section,
    .experience-section,
    .publications-section,
    .skills-section,
    .education-section {
        padding: 20px 20px;
    }

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

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

    .timeline {
        padding-left: 30px;
    }

    .timeline-item::before {
        left: -26px;
        width: 12px;
        height: 12px;
    }

    .top-cloud,
    .bottom-cloud {
        display: none;
    }

    .profile-pic {
        width: 40%;
        max-width: 200px;
    }

    .intro {
        width: 90%;
    }

    .contact-message {
        width: 90%;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    #data-title {
        font-size: 1.8rem;
    }

    .navbar {
        padding: 15px 20px;
    }

    .nav-brand a {
        font-size: 1.4rem;
    }

    .btn {
        font-size: 16px;
        padding: 12px 24px;
    }

    .timeline-content {
        padding: 20px;
    }

    .skill-category,
    .education-card,
    .publication-card,
    .project-card {
        padding: 20px;
    }
}

.contact-message {
    width: 80%;
    max-width: 600px;
    margin: 40px auto 40px;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.footerLink {
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: background 0.3s ease;
}

.footerLink:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.copyright {
    color: #EAF6F6;
    font-size: 0.75rem;
    padding: 20px 0;
}

.profile-pic {
    width: 15%;
}

.top-cloud {
    position: absolute;
    right: 300px;
    top: 40px;
}

.bottom-cloud {
    position: absolute;
    left: 250px;
    bottom: 300px;
}

.cpu-image {
    width: 25%;
    float: left;
    margin-right: 30px;
}

.science {
    width: 25%;
    float: right;
    margin-left: 30px;
}

.main-menu {
    padding: 20px 80% 20px 20%;
    margin: 0;
    background-color: #EAF6F6;
    font-size: 1.5rem;
}

.btn {
  background: #11cdd4;
  background-image: -webkit-linear-gradient(top, #11cdd4, #11999e);
  background-image: -moz-linear-gradient(top, #11cdd4, #11999e);
  background-image: -ms-linear-gradient(top, #11cdd4, #11999e);
  background-image: -o-linear-gradient(top, #11cdd4, #11999e);
  background-image: linear-gradient(to bottom, #11cdd4, #11999e);
  /*-webkit-border-radius: 8;*/
  /*-moz-border-radius: 8;*/
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  color: #ffffff;
  font-size: 20px;
  padding: 10px 20px 10px 20px;
  text-decoration: none;
}

.btn:hover {
  background: #30e3cb;
  background-image: -webkit-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: -moz-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: -ms-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: -o-linear-gradient(top, #30e3cb, #2bc4ad);
  background-image: linear-gradient(to bottom, #30e3cb, #2bc4ad);
  text-decoration: none;
}

/* Home page redesign */
.home-page {
    --ink: #1c2b2a;
    --muted: #596362;
    --accent: #d36a2f;
    --accent-2: #2f7a74;
    --accent-3: #e2b468;
    --paper: #fff8ef;
    --sand: #f2e7d6;
    --line: rgba(28, 43, 42, 0.15);
    --shadow: 0 20px 50px rgba(20, 30, 30, 0.12);
    font-family: "Space Grotesk", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 10%, rgba(211, 106, 47, 0.2), transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(47, 122, 116, 0.2), transparent 40%),
        linear-gradient(180deg, #fffaf2 0%, #f2e7d6 55%, #fff6ea 100%);
    text-align: left;
}

.home-page a {
    color: var(--accent-2);
}

.home-page a:hover {
    color: var(--accent);
}

.home-page h1,
.home-page h2,
.home-page h3 {
    font-family: "Fraunces", serif;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.home-page h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin: 0 0 15px 0;
}

.home-page h2 {
    font-size: 2.2rem;
}

.home-page #data-title {
    font-family: "Fraunces", serif;
    font-size: 2.4rem;
    color: var(--accent-2);
    margin-top: 10px;
}

.home-page .navbar {
    background: rgba(255, 250, 242, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
}

.home-page .nav-brand a {
    font-family: "Fraunces", serif;
    font-size: 1.6rem;
    color: var(--ink);
}

.home-page .nav-links a {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    color: var(--ink);
}

.home-page .nav-links a:hover {
    color: var(--accent);
}

.home-page .nav-social a {
    background-color: var(--ink);
}

.home-page .nav-social a:hover {
    background-color: var(--accent-2);
    color: #fff;
}

.home-page .hamburger,
.home-page .hamburger::before,
.home-page .hamburger::after {
    background-color: var(--ink);
}

.home-page .top-container {
    background: transparent;
    padding: 150px 40px 90px;
    overflow: hidden;
    position: relative;
}

.home-page .top-container::before,
.home-page .top-container::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(0);
    opacity: 0.9;
    z-index: 0;
    animation: drift 14s ease-in-out infinite;
}

.home-page .top-container::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(211, 106, 47, 0.25), transparent 70%);
    top: -160px;
    right: -160px;
}

.home-page .top-container::after {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(47, 122, 116, 0.22), transparent 70%);
    bottom: -200px;
    left: -200px;
    animation-delay: 2s;
}

.home-page .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.home-page .hero-copy {
    max-width: 620px;
}

.home-page .hero-eyebrow {
    font-family: "DM Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: var(--accent-2);
    margin-bottom: 18px;
}

.home-page .tagline {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    color: var(--muted);
    margin: 10px 0 24px;
}

.home-page .hero-cta {
    justify-content: flex-start;
    margin-bottom: 20px;
}

.home-page .projects-section .hero-cta {
    justify-content: center;
    margin-top: 30px;
}

.home-page .btn {
    background: linear-gradient(120deg, var(--accent), #e48a52);
    border-radius: 999px;
    padding: 12px 26px;
    font-weight: 600;
    box-shadow: 0 12px 20px rgba(211, 106, 47, 0.25);
}

.home-page .btn:hover {
    background: linear-gradient(120deg, #e48a52, var(--accent));
}

.home-page .btn-outline {
    background: transparent;
    border: 2px solid var(--accent-2);
    color: var(--accent-2);
    box-shadow: none;
}

.home-page .btn-outline:hover {
    background: var(--accent-2);
    color: #fff;
}

.home-page .hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.home-page .hero-stat {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 16px;
    min-width: 140px;
}

.home-page .hero-stat .stat-number {
    color: var(--accent);
    font-size: 1.6rem;
}

.home-page .hero-stat .stat-label {
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    text-transform: uppercase;
}

.home-page .hero-visual {
    position: relative;
    display: grid;
    place-items: center;
}

.home-page .portrait-card {
    background: var(--paper);
    border-radius: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    text-align: left;
}

.home-page .hero-portrait {
    width: min(320px, 80vw);
    max-height: 300px;
    object-fit: contain;
    border-radius: 18px;
    display: block;
    margin: 0 auto;
}

.home-page .portrait-caption {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-page .caption-title {
    font-family: "DM Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.home-page .caption-subtitle {
    font-size: 0.95rem;
    color: var(--muted);
}

.home-page .floating-icon {
    position: absolute;
    width: 90px;
    height: auto;
    filter: drop-shadow(0 12px 20px rgba(28, 43, 42, 0.2));
    animation: float 6s ease-in-out infinite;
}

.home-page .icon-code {
    right: -10px;
    top: 12%;
    animation-delay: 0.3s;
    border-radius: 18px;
}

.home-page .icon-research {
    left: -20px;
    bottom: 10%;
    animation-delay: 1.1s;
}

.home-page .icon-robot {
    left: -10px;
    top: -4%;
    width: 110px;
    opacity: 0.9;
    animation-delay: 0.8s;
}

.home-page .icon-gallery {
    right: -22px;
    bottom: -6%;
    width: 110px;
    opacity: 0.85;
    animation-delay: 1.6s;
    border-radius: 18px;
}


.home-page .middle-container {
    margin: 60px 0 120px;
}

.home-page hr {
    border: none;
    height: 2px;
    width: 120px;
    margin: 80px auto;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
}

.home-page .section-subtitle {
    font-family: "DM Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0;
}

.home-page .projects-section,
.home-page .experience-section,
.home-page .publications-section,
.home-page .skills-section,
.home-page .education-section {
    max-width: 1100px;
}

.home-page .project-card,
.home-page .timeline-content,
.home-page .publication-card,
.home-page .skill-category,
.home-page .education-card {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.home-page .project-card {
    overflow: hidden;
}

.home-page .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.home-page .project-category {
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    background: rgba(47, 122, 116, 0.12);
    color: var(--accent-2);
}

.home-page .project-link,
.home-page .publication-link {
    color: var(--accent-2);
}

.home-page .project-link:hover,
.home-page .publication-link:hover {
    color: var(--accent);
}

.home-page .tag {
    background: rgba(211, 106, 47, 0.12);
    color: var(--accent);
}

.home-page .timeline::before {
    background: linear-gradient(to bottom, var(--accent), var(--accent-2));
}

.home-page .timeline-item::before {
    background: var(--accent-2);
    box-shadow: 0 0 0 3px var(--accent-2);
}

.home-page .timeline-date {
    color: var(--accent);
}

.home-page .timeline-content {
    border-left: 4px solid var(--accent-2);
}

.home-page .publication-journal {
    color: var(--accent-2);
}

.home-page .skills-section .skill-tag {
    background: linear-gradient(120deg, var(--accent-2), #4e9b93);
}

.home-page .education-degree {
    background: rgba(211, 106, 47, 0.15);
    color: var(--accent);
}

.home-page .education-card::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.home-page .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.home-page .about-image {
    position: relative;
    display: grid;
    place-items: center;
}

.home-page .profile-pic {
    width: min(240px, 60vw);
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.home-page .about-badge {
    margin-top: 16px;
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.home-page .about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.home-page .about-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(47, 122, 116, 0.12);
    color: var(--accent-2);
}

.home-page .profile {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.home-page .intro {
    width: 100%;
    max-width: 640px;
    margin: 0 0 10px 0;
}

.home-page .publications-stats {
    justify-content: center;
    gap: 24px;
    margin-top: 30px;
}

.home-page .stat-item {
    background: rgba(255, 248, 239, 0.9);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 22px;
    min-width: 160px;
    box-shadow: 0 12px 24px rgba(20, 30, 30, 0.08);
}

.home-page .publications-more {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.home-page .publications-more .btn {
    margin: 0;
}

.home-page .contact-me {
    max-width: 980px;
    margin: 0 auto;
    padding: 60px 50px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-page .contact-me::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(211, 106, 47, 0.18), transparent 45%);
    pointer-events: none;
}

.home-page .contact-me > * {
    position: relative;
    z-index: 1;
}

.home-page .contact-message {
    width: 100%;
    max-width: 620px;
    margin: 20px auto 30px;
    color: var(--muted);
}

.home-page .contact-buttons {
    justify-content: center;
    margin-bottom: 0;
}

.home-page .bottom-container {
    background: #1c2b2a;
    text-align: center;
}

.home-page .footerLink {
    background: rgba(255, 255, 255, 0.12);
}

.home-page .footerLink:hover {
    background: rgba(255, 255, 255, 0.22);
}

.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes drift {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(20px);
    }
    100% {
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .home-page .top-container {
        padding: 130px 24px 70px;
    }

    .home-page .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-page .hero-visual {
        order: -1;
    }

    .home-page .hero-copy {
        text-align: center;
    }

    .home-page .hero-cta {
        justify-content: center;
    }

    .home-page h1 {
        font-size: 3.3rem;
    }

    .home-page #data-title {
        font-size: 1.9rem;
    }

    .home-page .projects-section,
    .home-page .experience-section,
    .home-page .publications-section,
    .home-page .skills-section,
    .home-page .education-section {
        padding: 20px 24px;
    }

    .home-page .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-page .profile {
        padding: 0 24px;
    }

    .home-page .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .home-page .intro {
        margin: 0 auto 10px;
    }

    .home-page .about-tags {
        justify-content: center;
    }

    .home-page .contact-me {
        padding: 40px 24px;
    }
}

@media (max-width: 600px) {
    .nav-logo {
        display: inline-block;
    }

    .home-page .hero-visual {
        display: none;
    }

    .home-page .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .home-page .floating-icon {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .floating-icon,
    .home-page .top-container::before,
    .home-page .top-container::after {
        animation: none;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
