/* ==========================================================================
   Premium Academic Typography & Modern Theme Variables Base Initialization
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Smooth transition presets */
    --transition-speed: 0.4s;
    --transition-timing: cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Dark Theme Properties (Default Setting Profile) */
    --bg-color: #0b111e;
    --bg-alt: #131c2e;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-color: #38bdf8;
    --accent-hover: #0ea5e9;
    --card-bg: rgba(30, 41, 59, 0.45);
    --card-border: rgba(255, 255, 255, 0.07);
    --navbar-bg: rgba(11, 17, 30, 0.75);
    --badge-latest: #10b981;
    --shadow-preset: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Light Theme Variables Switch */
body.light-theme {
    --bg-color: #f8fafc;
    --bg-alt: #f1f5f9;
    --text-color: #0f172a;
    --text-muted: #475569;
    --accent-color: #0284c7;
    --accent-hover: #0369a1;
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: rgba(15, 23, 42, 0.08);
    --navbar-bg: rgba(248, 250, 252, 0.8);
    --shadow-preset: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
}

/* Base Document Structuring Configuration */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed) var(--transition-timing),
                color var(--transition-speed) var(--transition-timing);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.alt-bg {
    background-color: var(--bg-alt);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.05em;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* ==========================================================================
   Glassmorphism Element Architectural Layout Design Structure
   ========================================================================== */
.card-glass {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-preset);
    transition: transform var(--transition-speed) var(--transition-timing),
                border var(--transition-speed) var(--transition-timing),
                box-shadow var(--transition-speed) var(--transition-timing);
}

.card-glass:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Navigation Bar Module Styling Ruleset
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--navbar-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    transition: background var(--transition-speed) var(--transition-timing);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--accent-color);
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

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

/* Theme Switching Button Infrastructure */
.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

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

body.dark-theme .sun-icon { display: block; }
body.dark-theme .moon-icon { display: none; }
body.light-theme .sun-icon { display: none; }
body.light-theme .moon-icon { display: block; }

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

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: 0.3s ease;
}

/* ==========================================================================
   Hero Section Interactive Typography Configuration Setup
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.08), transparent 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Interactive Standard Buttons Profile */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-timing);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff !important;
}

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

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

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

.social-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.social-links a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Profile Image Render Canvas Matrix */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.profile-card-glass {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: var(--shadow-preset);
}

.profile-img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* ==========================================================================
   Research Interests Presentation Components Grid Matrix
   ========================================================================== */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.interest-item {
    padding: 1.75rem;
    text-align: center;
}

.interest-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

/* ==========================================================================
   Publications Grid Timeline Structural Mapping Architecture
   ========================================================================== */
.publications-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pub-card {
    position: relative;
    border-left: 4px solid var(--card-border);
}

.pub-card:hover {
    border-left-color: var(--accent-color);
}

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

.pub-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

.badge-latest {
    background-color: var(--badge-latest);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pub-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.pub-authors {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.pub-venue {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.pub-actions {
    display: flex;
    gap: 1rem;
}

.pub-btn {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: 0.2s ease;
}

.btn-doi {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-color);
}

.btn-doi:hover {
    background: var(--accent-color);
    color: white;
}

.btn-pdf {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--card-border);
}

.btn-pdf:hover {
    background: var(--card-bg);
    color: var(--text-color);
}

/* ==========================================================================
   Research Projects Grid Layout Profile Modules
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card .project-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.project-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* ==========================================================================
   Skills Presentation Arrays & Technical Tags Component
   ========================================================================== */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skills-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

body.light-theme .tags span {
    background: rgba(0, 0, 0, 0.03);
}

.tags span:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ==========================================================================
   Certificates & Achievements Gallery Module Matrix Arena
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.gallery-item {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) var(--transition-timing);
}

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

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Academic Academic Timelines Presentation Configurations
   ========================================================================== */
.education-timeline, .experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
}

.edu-date, .exp-date {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.edu-item h3, .exp-item h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.edu-institution, .exp-company {
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.edu-desc, .exp-item ul {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.exp-item ul {
    padding-left: 1.25rem;
}

.exp-item li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Contact Forms Matrix Elements Rendering Profiles
   ========================================================================== */
.contact-wrapper {
    display: flex;
    justify-content: center;
}

.contact-card {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Footer Canvas Profiling Elements Properties Ruleset
   ========================================================================== */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 3rem 0;
    text-align: center;
    background: var(--bg-alt);
}

.footer-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-sub {
    margin-top: 0.5rem;
    font-size: 0.8rem !important;
    opacity: 0.6;
}

/* ==========================================================================
   Interactive Engine Native Modal Lightbox Styling Canvas
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 17, 30, 0.95);
     -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-caption {
    margin-top: 20px;
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    max-width: 80%;
}

/* ==========================================================================
   Responsive Architecture Adaptive Matrix Pipeline Viewports
   ========================================================================== */
@media (max-width: 992px) {
    html { font-size: 15px; }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-image-wrapper { order: -1; }
    .hero-cta { justify-content: center; }
    .social-links { justify-content: center; }
    .profile-img { width: 280px; height: 280px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 3rem 0;
        gap: 2.5rem;
        transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        border-top: 1px solid var(--card-border);
    }
    
    .nav-menu.active {
        left: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title { font-size: 2.75rem; }
    .section { padding: 4rem 0; }
}