/* ============================================
   ELEGANT PROFESSIONAL THEME
   Color Palette:
   - Primary: Deep Navy (#0f172a, #1e293b)
   - Secondary: Teal/Emerald (#0d9488, #14b8a6)
   - Accent: Gold/Amber (#f59e0b, #d97706)
   - Background: Warm whites (#fafaf9, #f5f5f4)
   ============================================ */

/* Reset and Base Styles */

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

html {
    scroll-behavior: smooth;
    background-color: #0f172a;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #0f172a;
    display: flex;
}


/* Sidebar Styles */

.sidebar {
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    direction: rtl; /* Right-to-left to move scrollbar to left */
}

/* Reset direction for content */
.sidebar > * {
    direction: ltr;
}

/* Show scrollbar temporarily for positioning */
.sidebar::-webkit-scrollbar {
    width: 8px;
    background: #0f172a;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(20, 184, 166, 0.3);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(20, 184, 166, 0.6);
}

/* For Firefox */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(20, 184, 166, 0.3) #0f172a;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: none;
}

.affiliation {
    text-align: center;
    margin: 15px 0;
    padding: 0 20px;
}

.affiliation .institution {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.affiliation .role {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.header-social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.header-social-icons .social-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-social-icons .social-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Header social icon colors - optimized for blue theme */

.header-social-icons .social-icon.linkedin {
    color: #ffffff;
}

.header-social-icons .social-icon.github {
    color: #ffffff;
}

.header-social-icons .social-icon.scholar {
    color: #ffffff;
}

.header-social-icons .social-icon.email {
    color: #ffffff;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex: 1;
}

.sidebar-item {
    margin: 5px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(20, 184, 166, 0.15);
    color: white;
    border-left-color: #14b8a6;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-link span {
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: none;
    margin-top: auto;
    text-align: center;
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    width: 100%;
}

.sidebar-footer .social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.sidebar-footer .copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
}

.sidebar-footer .copyright p {
    margin: 5px 0;
}

.sidebar-footer .copyright .location {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.sidebar-footer .social-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-footer .social-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Social icon brand colors - optimized for blue theme */

.sidebar-footer .social-icon.linkedin {
    color: #ffffff;
}

.sidebar-footer .social-icon.github {
    color: #ffffff;
}

.sidebar-footer .social-icon.scholar {
    color: #ffffff;
}

.sidebar-footer .social-icon.email {
    color: #ffffff;
}


/* Sidebar Dropdown Styles */

.sidebar-item {
    position: relative;
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.sidebar-item.open .dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar-dropdown {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 15px;
    border-radius: 8px;
}

.sidebar-item.open .sidebar-dropdown {
    max-height: 200px;
}

.sidebar-dropdown-link {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.sidebar-dropdown-link:hover,
.sidebar-dropdown-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
    padding-left: 25px;
}


/* Experience Sub-tabs Styles */

.experience-subtab {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.experience-subtab.active {
    display: block;
}


/* Main Content Area */

.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
    /* Single global background so short sections don't expose any lighter color */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #0d9488 100%);
    box-shadow: none;
    border: none;
    position: relative;
    left: -1px;
}


/* Tab Content Styles */

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}


/* Education Section Styles */

.education-content {
    max-width: 900px;
    margin: 0 auto;
}

.education-item {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.98) 0%, rgba(204, 251, 241, 0.98) 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left: 5px solid #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-left: 5px solid #14b8a6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.4), 0 0 0 1px rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.4);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.4);
}

.education-header {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
}

.education-logo {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: white;
    border: 2px solid #e5e7eb;
}

.university-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.education-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    font-family: 'Poppins', sans-serif;
}

.education-info .location {
    color: #64748b;
    font-size: 1rem;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.education-info .degree {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.education-info .specialization {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 5px 0;
    font-style: italic;
}

.education-info .timeline {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 8px 0;
}

.education-info .gpa {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.coursework-section {
    margin: 25px 0;
}

.coursework-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fafaf9;
    border-radius: 10px;
    border-left: 3px solid #14b8a6;
}

.course-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.95rem;
}

.grade {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.thesis-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.thesis-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.thesis-title {
    font-style: italic;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    padding: 15px;
    background: #fafaf9;
    border-radius: 10px;
    border-left: 3px solid #14b8a6;
}

.tab-content.active {
    display: block;
}


/* Home tab specific styles for AI animation */

#home.tab-content.active {
    position: relative;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Container */

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


/* Navigation - Keep existing styles but hide on mobile */

.navbar {
    display: none;
    /* Hide the old navbar since we're using sidebar now */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

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

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

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


/* Dropdown Menu */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    color: #2c3e50;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #3498db;
    transform: translateX(5px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}


/* Admin Login Button (Hidden by default) */

.admin-login {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: none;
    /* Hidden by default, shown only in development */
}

.admin-login button {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
}

.admin-login button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}


/* Dashboard Toggle Button (Hidden by default) */

.dashboard-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: none;
    /* Hidden by default, shown only after admin login */
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
    transition: all 0.3s ease;
}

.dashboard-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}


/* Dashboard Modal */

.dashboard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.dashboard-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.dashboard-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dashboard-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #1e3a8a;
    border-bottom-color: #1e3a8a;
    background-color: white;
}

.tab-btn:hover {
    color: #1e3a8a;
    background-color: rgba(30, 58, 138, 0.1);
}

.dashboard-body {
    padding: 30px;
}

.section-selector {
    margin-bottom: 25px;
}

.section-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.section-selector select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.section-selector select:focus {
    outline: none;
    border-color: #1e3a8a;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.edit-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.add-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.delete-btn {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
}

.editor-container {
    margin-bottom: 25px;
}

#contentEditor {
    width: 100%;
    min-height: 300px;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#contentEditor:focus {
    outline: none;
    border-color: #1e3a8a;
}

.editor-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.save-btn,
.cancel-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.save-btn {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.3);
}

.cancel-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    color: white;
}

.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.dashboard-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.logout-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}


/* Message System */

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 3000;
    animation: slideIn 0.3s ease;
    max-width: 300px;
}

.message.success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.message.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Sections */

.section {
    padding: 80px 0;
    /* Let the global main-content gradient show through for consistency */
    background: transparent;
    color: white;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Keep this fully transparent so the main-content gradient looks continuous */
    background: transparent;
    pointer-events: none;
}

.section:nth-child(even) {
    background: transparent;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 50px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 2;
}


/* Hero Section */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0d9488 100%);
    color: white;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 0 20px;
    position: relative;
    z-index: 2;
}

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

.hero-image {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: none;
    position: relative;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #0f172a, #14b8a6);
    padding: 8px;
    box-shadow: 
        0 0 0 1px rgba(20, 184, 166, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 16px 32px rgba(0, 0, 0, 0.15),
        0 0 60px rgba(20, 184, 166, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.profile-image:hover {
    transform: scale(1.05) rotate(2deg);
    padding: 8px;
    background: linear-gradient(135deg, #14b8a6, #f59e0b);
    box-shadow: 
        0 0 0 1px rgba(245, 158, 11, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.3),
        0 24px 48px rgba(0, 0, 0, 0.2),
        0 0 80px rgba(245, 158, 11, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-text {
    max-width: 600px;
    margin-left: -40px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.8;
}

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

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
}

.social-icon:nth-child(1):hover {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    border-color: #0077b5;
}

.social-icon:nth-child(2):hover {
    background: linear-gradient(135deg, #333, #6e5494);
    border-color: #333;
}

.social-icon:nth-child(3):hover {
    background: linear-gradient(135deg, #ea4335, #fbbc04);
    border-color: #ea4335;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border: 2px solid rgba(20, 184, 166, 0.3);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.4);
    border-color: rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(245, 158, 11, 0.5);
}

.btn-secondary:hover {
    background: rgba(245, 158, 11, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.8);
}


/* About Section */

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    max-width: 800px;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
    letter-spacing: 0.3px;
    font-weight: 400;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.98) 0%, rgba(204, 251, 241, 0.98) 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(20, 184, 166, 0.3);
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.4), 0 0 0 1px rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.4);
}
}

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

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #14b8a6;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
    color: #475569;
    font-weight: 500;
}


/* Experience Section */

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 0;
    /* Remove padding since line will be positioned relative to cards */
}

.timeline-line {
    position: absolute;
    left: 10%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #14b8a6, #0d9488, #f59e0b);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
}

.timeline-circle {
    position: absolute;
    left: calc(10% - 8px);
    top: 30px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px white, 0 4px 12px rgba(20, 184, 166, 0.4);
    border: 2px solid #14b8a6;
}

.timeline-content {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.98) 0%, rgba(204, 251, 241, 0.98) 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 80%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: auto;
    margin-right: auto;
    margin-left: 15%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.4), 0 0 0 1px rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.4);
}

.timeline-header {
    margin-bottom: 15px;
}

.timeline-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 5px;
}

.timeline-company {
    color: #14b8a6;
    font-weight: 500;
    font-size: 1rem;
}

.timeline-date {
    color: #64748b;
    font-size: 0.9rem;
    margin-left: 10px;
}

.timeline-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.timeline-content li::before {
    content: '▸';
    color: #14b8a6;
    position: absolute;
    left: 0;
}


/* Research Section */

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

.research-card {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.98) 0%, rgba(204, 251, 241, 0.98) 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.4), 0 0 0 1px rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.4);
}
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
}

.research-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.research-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.research-status {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.research-authors {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.research-description p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.research-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.research-link:hover {
    color: #2980b9;
}


/* Projects Section */

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

.project-card {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.98) 0%, rgba(204, 251, 241, 0.98) 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.4), 0 0 0 1px rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.4);
}
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.project-link {
    color: #14b8a6;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #f59e0b;
}

.project-card p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.tag {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}


/* Skills Section */


/* Minimal Skills List Design */

.skills-list-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.98) 0%, rgba(204, 251, 241, 0.98) 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(20, 184, 166, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.skill-category {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.skill-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.skill-category:hover {
    transform: translateX(5px);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #14b8a6;
    position: relative;
}

.category-title i {
    font-size: 1.2rem;
    color: #14b8a6;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transition: width 0.3s ease;
}

.skill-category:hover .category-title::after {
    width: 100%;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: 24px;
}

.skill-item {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: default;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}


/* Responsive Design for Skills */

@media (max-width: 768px) {
    .skills-list-container {
        padding: 30px 20px;
        margin: 0 10px;
    }
    .category-title {
        font-size: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .skill-items {
        margin-left: 0;
        justify-content: center;
    }
    .skill-item {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .skills-list-container {
        padding: 25px 15px;
    }
    .skill-category {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    .skill-items {
        gap: 8px;
    }
}


/* Presentations Section */

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

.presentation-card {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.98) 0%, rgba(204, 251, 241, 0.98) 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(20, 184, 166, 0.3);
    backdrop-filter: blur(10px);
}

.presentation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.4), 0 0 0 1px rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.4);
}
    transition: transform 0.3s ease;
}

.presentation-card:hover {
    transform: translateY(-5px);
}

.presentation-header {
    margin-bottom: 15px;
}

.presentation-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.presentation-course {
    color: #3498db;
    font-weight: 500;
    font-size: 0.9rem;
}

.presentation-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.presentation-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.presentation-link:hover {
    color: #2980b9;
}


/* Courses Section */

.courses-content {
    max-width: 800px;
    margin: 0 auto;
}

.course-item {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.98) 0%, rgba(204, 251, 241, 0.98) 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(20, 184, 166, 0.3);
    backdrop-filter: blur(10px);
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.4), 0 0 0 1px rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.4);
}
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.course-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.course-institution {
    color: #3498db;
    font-weight: 500;
    font-size: 0.9rem;
}

.course-date {
    color: #666;
    font-size: 0.9rem;
}

.course-item p {
    color: #555;
    line-height: 1.6;
}


/* Teaching Section */

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

.teaching-card {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.98) 0%, rgba(204, 251, 241, 0.98) 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(20, 184, 166, 0.3);
    backdrop-filter: blur(10px);
}

.teaching-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.4), 0 0 0 1px rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.4);
}
    transition: transform 0.3s ease;
}

.teaching-card:hover {
    transform: translateY(-5px);
}

.teaching-header {
    margin-bottom: 15px;
}

.teaching-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.teaching-institution {
    color: #3498db;
    font-weight: 500;
    font-size: 0.9rem;
}

.teaching-period {
    color: #666;
    font-size: 0.9rem;
    margin-left: 10px;
}

.teaching-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.teaching-stats {
    display: flex;
    gap: 20px;
}

.stat {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}


/* Awards Section */

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

.award-card {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.98) 0%, rgba(204, 251, 241, 0.98) 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.4), 0 0 0 1px rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.4);
}
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.3);
}

.award-icon {
    font-size: 2rem;
    color: #f39c12;
    min-width: 60px;
    text-align: center;
}

.award-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.award-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 10px;
}

.award-year {
    color: #14b8a6;
    font-weight: 500;
    font-size: 0.9rem;
}


/* Leadership Section */

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

.leadership-card {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.98) 0%, rgba(204, 251, 241, 0.98) 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.leadership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.4), 0 0 0 1px rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.4);
}
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.3);
}

.leadership-header {
    margin-bottom: 15px;
}

.leadership-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.leadership-organization {
    color: #14b8a6;
    font-weight: 500;
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.leadership-period {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.leadership-card p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.leadership-link {
    color: #14b8a6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.leadership-link:hover {
    color: #f59e0b;
}


/* Contact Section */

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

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.98) 0%, rgba(204, 251, 241, 0.98) 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(20, 184, 166, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.4), 0 0 0 1px rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.4);
}
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.contact-item:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.3);
}

.contact-item i {
    font-size: 1.5rem;
    color: #14b8a6;
    min-width: 30px;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 5px;
}

.contact-item p {
    color: #475569;
    font-size: 0.9rem;
}

.contact-form {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.98) 0%, rgba(204, 251, 241, 0.98) 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

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


/* Contact form button styles */

.contact-form .btn-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.contact-form .btn-primary:hover {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
}

.contact-form .btn-primary:active {
    transform: translateY(0);
}


/* Contact message styles */

.contact-message {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.4s ease-out;
    border: none;
}

.contact-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.contact-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Footer */

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

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

.social-links a {
    color: #bdc3c7;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}


/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-container {
        padding: 0 30px 0 20px;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .hero-text {
        margin-left: -20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .projects-grid,
    .leadership-grid,
    .research-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .education-item {
        padding: 35px;
    }
    
    .timeline-content {
        padding: 25px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin-top: 10px;
    }
    .dropdown-menu a {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    .nav-menu.active {
        left: 0;
    }
    .hamburger {
        display: flex;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero section improvements */
    .hero {
        min-height: 90vh;
        padding-top: 60px;
    }
    
    .hero-container {
        padding: 0 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        justify-items: center;
    }
    
    .hero-text {
        margin-left: 0;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 15px;
    }
    
    .profile-image {
        width: 220px;
        height: 220px;
    }
    
    /* Section improvements */
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 35px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text {
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Timeline improvements */
    .timeline {
        padding-left: 0;
    }
    
    .timeline-line {
        left: 5%;
        width: 2px;
    }
    
    .timeline-circle {
        left: calc(5% - 7px);
        width: 14px;
        height: 14px;
        top: 20px;
    }
    
    .timeline-content {
        margin-left: 10%;
        padding: 20px;
        width: 85%;
    }
    
    /* Grid layouts */
    .projects-grid,
    .leadership-grid,
    .research-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card,
    .leadership-card,
    .research-card {
        padding: 25px;
    }
    
    /* Skills section */
    .skills-list-container {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .skill-category {
        margin-bottom: 25px;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .skill-items {
        gap: 10px;
    }
    
    /* Contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    /* Education section */
    .education-item {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .education-header {
        gap: 20px;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Dashboard improvements */
    .dashboard-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .editor-actions {
        flex-direction: column;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    /* Typography scaling */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    /* Button improvements */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    /* Hero section mobile */
    .hero {
        min-height: 85vh;
        padding-top: 50px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .hero-content {
        gap: 25px;
    }
    
    .hero-image {
        gap: 15px;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
        border-width: 3px;
    }
    
    .social-icons {
        gap: 8px;
        justify-content: center;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Section spacing */
    .section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* About section mobile */
    .about-text {
        text-align: left;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 18px;
    }
    
    /* Timeline mobile improvements */
    .timeline-line {
        left: 3%;
        width: 2px;
    }
    
    .timeline-circle {
        left: calc(3% - 6px);
        width: 12px;
        height: 12px;
        top: 15px;
    }
    
    .timeline-content {
        margin-left: 8%;
        padding: 15px;
        width: 88%;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    /* Cards mobile */
    .project-card,
    .leadership-card,
    .research-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .project-header h3,
    .leadership-header h3,
    .research-header h3 {
        font-size: 1.1rem;
    }
    
    /* Skills mobile */
    .skills-list-container {
        padding: 25px 15px;
        margin: 0 5px;
    }
    
    .skill-category {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .category-title {
        font-size: 1.1rem;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    
    .skill-items {
        margin-left: 0;
        justify-content: center;
        gap: 8px;
    }
    
    .skill-item {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    /* Contact mobile */
    .contact-form {
        padding: 25px 20px;
    }
    
    .contact-item {
        padding: 20px;
        gap: 15px;
    }
    
    .contact-item i {
        font-size: 1.3rem;
    }
    
    .contact-item h3 {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    /* Education mobile */
    .education-item {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .education-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .education-logo {
        width: 45px;
        height: 45px;
        margin: 0 auto;
    }
    
    .university-logo {
        padding: 2px;
    }
    
    .education-info h3 {
        font-size: 1.3rem;
    }
    
    .education-info .degree {
        font-size: 1.1rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .course-item {
        padding: 8px 10px;
    }
    
    .course-name {
        font-size: 0.9rem;
    }
    
    .grade {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    /* Dashboard mobile */
    .dashboard-body {
        padding: 20px 15px;
    }
    
    .dashboard-header {
        padding: 20px 15px;
    }
    
    .dashboard-header h2 {
        font-size: 1.3rem;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .action-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    #contentEditor {
        min-height: 250px;
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .save-btn,
    .cancel-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}


/* Animation Classes */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive Sidebar Styles */

/* Large tablets */
@media (max-width: 1024px) {
    .sidebar {
        width: 260px;
    }
    
    .main-content {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
    
    .sidebar-header {
        padding: 25px 18px;
    }
    
    .sidebar-link {
        padding: 12px 22px;
        font-size: 0.9rem;
    }
}

/* Tablets and mobile */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 100%;
        z-index: 2000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 2001;
        background: #1e3a8a;
        color: white;
        border: none;
        padding: 12px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1.2rem;
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: #3b82f6;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
    }
    
    .mobile-menu-toggle:active {
        transform: translateY(0);
    }
    
    /* Overlay for mobile menu */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
        backdrop-filter: blur(3px);
    }
    
    .sidebar-overlay.open {
        display: block;
    }
    
    /* Sidebar mobile improvements */
    .sidebar-header {
        padding: 25px 20px;
    }
    
    .sidebar-logo {
        font-size: 1.1rem;
        gap: 12px;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
    }
    
    .affiliation {
        margin: 12px 0;
        padding: 0 20px;
    }
    
    .affiliation .institution {
        font-size: 0.9rem;
    }
    
    .affiliation .role {
        font-size: 0.8rem;
    }
    
    .header-social-icons {
        margin-top: 18px;
        gap: 10px;
    }
    
    .header-social-icons .social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
    
    .sidebar-link {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
    
    .sidebar-link i {
        font-size: 1.1rem;
    }
    
    .sidebar-footer {
        padding: 18px;
    }
    
    .sidebar-footer .copyright {
        font-size: 0.85rem;
    }
    
    .sidebar-footer .copyright .location {
        font-size: 0.8rem;
    }
}

/* Mobile phones - Sidebar */
@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        top: 15px;
        left: 15px;
        padding: 10px;
        font-size: 1.1rem;
    }
    
    .sidebar-header {
        padding: 20px 15px;
    }
    
    .affiliation {
        margin: 10px 0;
        padding: 0 15px;
    }
    
    .affiliation .institution {
        font-size: 0.85rem;
    }
    
    .affiliation .role {
        font-size: 0.75rem;
    }
    
    .header-social-icons {
        margin-top: 15px;
        gap: 8px;
    }
    
    .header-social-icons .social-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .sidebar-logo {
        font-size: 1rem;
        gap: 10px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .sidebar-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .sidebar-link i {
        font-size: 1rem;
        width: 18px;
    }
    
    .sidebar-dropdown-link {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .sidebar-footer {
        padding: 15px;
        position: sticky;
        bottom: 0;
        background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    }
    
    .sidebar-footer .copyright {
        font-size: 0.8rem;
    }
    
    .sidebar-footer .copyright .location {
        font-size: 0.75rem;
    }
}


/* Additional Responsive Improvements */

/* Touch-friendly interactions */
@media (max-width: 768px) {
    /* Ensure buttons are touch-friendly */
    .btn,
    .sidebar-link,
    .mobile-menu-toggle,
    .contact-item,
    .project-link,
    .leadership-link,
    .research-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve touch targets */
    .social-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    .header-social-icons .social-icon {
        min-width: 40px;
        min-height: 40px;
    }
    
    /* Better spacing for touch */
    .hero-buttons .btn {
        min-height: 48px;
        padding: 14px 24px;
    }
    
    /* Form improvements for mobile */
    .form-group input,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Card hover effects disabled on touch devices */
    .project-card:hover,
    .leadership-card:hover,
    .research-card:hover,
    .education-item:hover,
    .timeline-content:hover,
    .stat-item:hover,
    .skill-category:hover {
        transform: none;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 20px;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .sidebar-header {
        padding: 15px 20px;
    }
    
    .affiliation {
        margin: 8px 0;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .profile-image {
        width: 160px;
        height: 160px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .project-card,
    .leadership-card,
    .research-card,
    .education-item {
        padding: 15px;
    }
    
    .skills-list-container {
        padding: 20px 10px;
        margin: 0;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .mobile-menu-toggle {
        top: 10px;
        left: 10px;
        padding: 8px;
        font-size: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image,
    .university-logo,
    .logo-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Future dark mode styles can be added here */
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Scroll to top button */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}


/* Print styles */

@media print {
    .navbar,
    .admin-login,
    .dashboard-toggle,
    .dashboard-modal,
    .scroll-to-top {
        display: none !important;
    }
    .section {
        padding: 40px 0;
    }
    .hero {
        min-height: auto;
        padding: 60px 0;
    }
}