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

:root {
    /* Light Theme Colors */
    --bg-primary: #E5E4E2;
    --bg-secondary: #FFFFFF;
    --text-primary: #0D0D0D;
    --text-secondary: #4A4A4A;
    --accent: #CBA135;
    --accent-hover: #B8912A;
    --border: #D0D0D0;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Theme */
body.dark-theme {
    --bg-primary: #0D0D0D;
    --bg-secondary: #1A1A1A;
    --text-primary: #E5E4E2;
    --text-secondary: #B0B0B0;
    --accent: #CBA135;
    --accent-hover: #D4B045;
    --border: #333333;
    --shadow: rgba(0, 0, 0, 0.5);
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 80px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.language-switcher:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    border-color: var(--accent);
}

body.dark-theme .language-switcher {
    background: rgba(26, 26, 26, 0.9);
    color: #E5E4E2;
    border-color: var(--border);
}

body.dark-theme .language-switcher:hover {
    background: rgba(26, 26, 26, 1);
    border-color: var(--accent);
}

.language-switcher .lang-code {
    user-select: none;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 80px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.language-switcher:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    border-color: var(--accent);
}

body.dark-theme .language-switcher {
    background: rgba(26, 26, 26, 0.9);
    color: #E5E4E2;
    border-color: var(--border);
}

body.dark-theme .language-switcher:hover {
    background: rgba(26, 26, 26, 1);
    border-color: var(--accent);
}

.language-switcher .lang-code {
    user-select: none;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switcher:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

body.dark-theme .theme-switcher {
    background: rgba(26, 26, 26, 0.9);
    color: #E5E4E2;
}

body.dark-theme .theme-switcher:hover {
    background: rgba(26, 26, 26, 1);
}

.theme-switcher svg {
    width: 24px;
    height: 24px;
}

/* Responsive adjustments for language switcher */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 70px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .theme-switcher {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-secondary);
    padding: 60px 0 40px;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow);
    margin-bottom: 0;
}

/* Navigation Menu */
.navigation {
    background-color: var(--bg-secondary);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 0;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link:active,
.nav-link.active {
    color: var(--accent);
    background-color: var(--bg-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 80px 0 60px;
    margin-bottom: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-btn-primary {
    background-color: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(203, 161, 53, 0.3);
}

.hero-btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 161, 53, 0.4);
}

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

.hero-btn-secondary:hover {
    background-color: var(--accent);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.hero-btn-download {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-btn-download:hover {
    background-color: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hero-btn-download svg {
    width: 20px;
    height: 20px;
}

.hero-btn-saa {
    background: linear-gradient(135deg, var(--accent) 0%, #8B6F47 100%);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 15px rgba(203, 161, 53, 0.4);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.hero-btn-saa:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #9B7F57 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(203, 161, 53, 0.5);
}

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

.hero-graphic {
    width: 100%;
    max-width: 500px;
}

.hero-svg {
    width: 100%;
    height: auto;
    opacity: 0.9;
}

/* Impact Overview Section */
.impact-section {
    background-color: var(--bg-secondary);
    padding: 50px 0;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px var(--shadow);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-item {
    padding: 25px 15px;
    background-color: var(--bg-primary);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.impact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
    border-color: var(--accent);
}

.impact-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.impact-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.impact-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Main Content */
.main-content {
    padding: 20px 0 60px;
}

/* Section */
.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
}

/* Content Card */
.content-card {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--shadow);
}

/* Bio Section */
.bio-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

/* Publications Grid */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.publications-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 12px var(--shadow);
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--bg-primary);
}

.accordion-header:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.accordion-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.accordion-icon {
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    padding: 0 25px;
    opacity: 0;
}

.accordion-header[aria-expanded="true"] + .accordion-content {
    max-height: 1000px;
    padding: 0 25px 25px 25px;
    opacity: 1;
}

.accordion-body {
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

/* Status indicators for journal publications */
.status-indicator {
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-published {
    background-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.status-scheduled {
    background-color: #dc3545;
    opacity: 0.7;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

body.dark-theme .status-published {
    background-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

body.dark-theme .status-scheduled {
    background-color: #f44336;
    opacity: 0.6;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.publication-item {
    padding: 25px;
    background-color: var(--bg-primary);
    border-radius: 6px;
    border-left: 4px solid var(--accent);
    transition: transform 0.3s ease;
}

.publication-item:hover {
    transform: translateX(5px);
}

.publication-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.publication-authors {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.publication-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.publication-journals {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.5;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.publication-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
}

.publication-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.publication-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.publication-stats {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 500;
}

.publication-note {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--bg-primary);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.publication-note p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.publication-note strong {
    color: var(--text-primary);
}

/* PDF Grid */
.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.pdf-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--bg-primary);
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.pdf-item:hover {
    transform: translateY(-5px);
}

.pdf-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.pdf-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.pdf-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.pdf-download {
    display: inline-block;
    background-color: var(--accent);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.pdf-download:hover {
    background-color: var(--accent-hover);
}

/* GitHub Grid */
.github-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.github-item {
    padding: 25px;
    background-color: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.github-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.github-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.github-icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.github-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.github-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.github-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.github-language {
    background-color: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

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

.github-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.github-link:hover {
    color: var(--accent-hover);
}

/* Resume Section */
.resume-content {
    max-width: 900px;
}

.resume-section {
    margin-bottom: 40px;
}

.resume-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.resume-item {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}

.resume-position {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.resume-company {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 5px;
}

.resume-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.resume-duties {
    list-style: none;
    padding-left: 0;
}

.resume-duties li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.resume-duties li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: var(--accent);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.resume-download {
    display: inline-block;
    margin-top: 20px;
    background-color: var(--accent);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.resume-download:hover {
    background-color: var(--accent-hover);
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

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

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-value {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    word-break: break-all;
}

.contact-value:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 -2px 10px var(--shadow);
    margin-top: 60px;
}

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    background-color: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Certifications Section */
.certifications-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px;
    width: 100%;
}

.certification-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(203, 161, 53, 0.05) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--accent);
}

.certification-card:hover::before {
    transform: scaleX(1);
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.cert-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cert-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.cert-org {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cert-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.cert-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cert-status.cert-active {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.cert-status.cert-progress {
    background-color: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

/* Tech Stack Section */
.tech-categories {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px;
    width: 100%;
}

.tech-category {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(203, 161, 53, 0.03) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.tech-category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
    border-color: var(--accent);
    background-color: var(--bg-secondary);
}

.tech-icon {
    font-size: 1.2rem;
}

.tech-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Timeline Section */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.timeline-marker {
    position: absolute;
    left: 21px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 4px solid var(--bg-secondary);
    box-shadow: 0 0 0 4px var(--accent);
    z-index: 1;
}

.timeline-content {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow);
    border-color: var(--accent);
}

.timeline-year {
    display: inline-block;
    background-color: var(--accent);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Awards Section */
.awards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px;
    width: 100%;
}

.award-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(203, 161, 53, 0.05) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.award-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--accent);
}

.award-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px var(--shadow));
}

.award-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.award-org {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.award-date {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
}

.award-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Contact Form */
.contact-form-container {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
    width: 100%;
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.contact-form {
    max-width: 100% !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: left;
}

.form-input,
.form-textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box !important;
    margin: 0;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(203, 161, 53, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background-color: var(--accent);
    color: #FFFFFF;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(203, 161, 53, 0.3);
    width: auto;
    align-self: flex-start;
}

.form-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 161, 53, 0.4);
}

.form-submit:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
    display: block;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid #F44336;
    display: block;
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease;
}

/* Enhanced Hover Effects */
.github-item,
.publication-item {
    transition: all 0.3s ease;
}

.github-item:hover,
.publication-item:hover {
    transform: translateY(-5px);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .certifications-grid,
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 11px;
        width: 18px;
        height: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-form-container {
        margin-top: 30px;
        padding-top: 30px;
    }
    
    .certification-card,
    .award-card {
        padding: 20px;
    }
    
    .tech-category {
        padding: 20px;
    }
    .logo {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

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

    .content-card {
        padding: 25px;
    }

    .publications-grid,
    .pdf-grid,
    .github-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .github-title {
        font-size: 1.1rem;
    }

    .github-description {
        font-size: 0.9rem;
    }

    .github-item {
        padding: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .impact-value {
        font-size: 1.5rem;
    }

    .impact-item {
        padding: 20px 10px;
    }

    .impact-icon {
        font-size: 2rem;
    }

    .theme-switcher {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .theme-switcher svg {
        width: 20px;
        height: 20px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 40px 0 30px;
    }

    .content-card {
        padding: 20px;
    }

    .contact-item {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu {
        gap: 10px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }

    .github-title {
        font-size: 1rem;
    }

    .github-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .github-item {
        padding: 15px;
    }

    .github-header {
        gap: 8px;
        margin-bottom: 12px;
    }

    .github-icon {
        width: 20px;
        height: 20px;
    }
}
