:root {
    --primary-color: #1a1f3a;
    --secondary-color: #2d3561;
    --accent-color: #ff6b35;
    --light-bg: #f5f3f0;
    --white: #ffffff;
    --text-dark: #1a1f3a;
    --text-muted: #6b7280;
    --border-color: #e5ddd6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
}

/* ========================================
   LAYOUT
   ======================================== */

.main-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: var(--white);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

.main-content {
    margin-left: 280px;
    flex: 1;
    background-color: var(--light-bg);
}

/* ========================================
   SIDEBAR PROFILE
   ======================================== */

.profile-section {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.profile-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.profile-org {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ========================================
   SIDEBAR NAVIGATION
   ======================================== */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-btn:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.nav-btn.active {
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-left: 3px solid var(--accent-color);
    padding-left: calc(1rem - 3px);
}

.nav-btn i {
    margin-right: 0.8rem;
    width: 20px;
}

/* ========================================
   SOCIAL LINKS
   ======================================== */

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 4rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    padding: 5rem 3rem;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-greeting {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent-color);
    font-weight: 700;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.skill-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

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

.btn-outline-dark {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

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

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

.btn-outline-primary {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

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

.avatar-circle {
    width: 280px;
    height: 280px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--accent-color);
    box-shadow: var(--shadow-md);
}
/* ========================================
   COMPACT SKILLS & CERTS
   ======================================== */

.compact-info-section {
    background-color: var(--light-bg);
    padding: 0.5rem 5rem 5rem 5rem; 
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 0; 
}

.compact-item {
    padding: 0 2rem;
    position: relative;
}

.compact-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: var(--border-color);
}

.compact-item h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.compact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.compact-badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    background-color: var(--white);
    border-radius: 4px;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.compact-text {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */

.portfolio-section {
    background-color: var(--white);
}

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

.project-card {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.project-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.project-icon.healthcare-iot {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.project-icon.iot-system {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.project-icon.data-science {
    background: linear-gradient(135deg, #10b981, #059669);
}

.project-icon.embedded {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.project-icon.healthcare-it {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.project-icon.telemedicine {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.project-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

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

/* ========================================
   AWARDS SECTION
   ======================================== */

.awards-section {
    background-color: var(--white);
}

.awards-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

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

.award-item {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.award-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.award-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.award-type {
    background-color: #fed7aa;
    color: #92400e;
}

.patent-type {
    background-color: #a7f3d0;
    color: #047857;
}

.activity-type {
    background-color: #e5e7eb;
    color: #374151;
}

.award-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.award-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.award-title-highlight {
    display: inline-block;
    background-color: rgba(255, 235, 59, 0.38);
    font-weight: 800;
    padding: 0 0.18rem;
    border-radius: 2px;
}

.award-org {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================
   PUBLICATIONS SECTION
   ======================================== */

.publications-section {
    background-color: var(--light-bg);
}

.pub-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pub-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.pub-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.pub-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.journal-type {
    background-color: #bfdbfe;
    color: #1e40af;
}

.conference-type {
    background-color: #fecaca;
    color: #991b1b;
}

.pub-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

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

.pub-links {
    display: flex;
    gap: 0.8rem;
}

/* ========================================
   CALENDAR SECTION
   ======================================== */

.calendar-section {
    background-color: var(--light-bg);
}

.calendar-iframe-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    width: 100%;
}

.calendar-iframe-wrapper iframe {
    border-radius: 8px;
    max-width: 100%;
    width: 900px;
    height: 600px;
}

.calendar-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.calendar-box {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.calendar-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.calendar-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.calendar-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.event-categories {
    list-style: none;
}

.event-categories li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.category-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.category-dot.conference {
    background-color: #3498db;
}

.category-dot.deadline {
    background-color: #f39c12;
}

.category-dot.meeting {
    background-color: #27ae60;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0.3rem 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
    }

    .avatar-circle {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

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

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-content {
        flex-direction: row;
        gap: 1rem;
    }

    .profile-section {
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        padding-right: 1.5rem;
        padding-bottom: 0;
        flex: 1;
    }

    .sidebar-nav {
        flex-direction: row;
        flex: 1;
        gap: 0.5rem;
    }

    .nav-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .section {
        padding: 2rem 1.5rem;
    }

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

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

    .cta-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .sidebar-content {
        flex-direction: column;
        gap: 1rem;
    }

    .profile-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .sidebar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

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

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

    .skills-tags {
        gap: 0.5rem;
    }

    .skill-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .awards-timeline {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

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

.mt-5 {
    margin-top: 3rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}