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

:root {
    --primary-color: #1a365d;
    --secondary-color: #2d3748;
    --accent-color: #3182ce;
    --accent-light: #90cdf4;
    --light-gray: #f7fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #4a5568;
    --text-color: #2d3748;
    --sidebar-width: 340px;
    --border-radius: 10px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --eee-accent: #2b6cb0;
    --circuit-green: #38a169;
    --signal-blue: #4299e1;
    --power-red: #e53e3e;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: #f9fafb;
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 1;
    transition: opacity 0.5s ease;
}

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


/* Main Content Styles */
.main-content {
    flex: 1;
    margin:auto;
    padding: 50px 70px;
    max-width: 1100px;
    transition: var(--transition);
    min-height: 100vh;
}

/* Navigation Tabs */
.nav-tabs-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 20px;
    z-index: 50;
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.tab:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    text-decoration: none;
}

.tab.active {
    color: var(--accent-color);
    background-color: rgba(49, 130, 206, 0.1);
    text-decoration: none;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

.tab i {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Content Sections */
.content-section {
    display: block;
    animation: fadeInUp 0.6s ease;
    scroll-margin-top: 200px;
}

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

.section-title {
    font-family: 'Myraid Pro', serif;
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--accent-light));
    border-radius: 2px;
}

.section-subtitle {
    font-family: 'Myraid Pro', serif;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.content-text {
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.content-text p {
    margin-bottom: 20px;
}

a:hover {
    color: var(--primary-color);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Publication Styles */
.publication-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
    padding: 20px;
    border-radius: 8px;
}

.publication-item:hover {
    background-color: rgba(49, 130, 206, 0.03);
}

.pub-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-badge.new {
    background: var(--power-red);
}

.pub-badge.highlight {
    background: var(--circuit-green);
}

.pub-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.pub-authors {
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.pub-venue {
    color: var(--dark-gray);
    margin-bottom: 12px;
    font-weight: 500;
}

.pub-abstract {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.pub-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--light-gray);
    border-radius: 6px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.pub-links a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.pub-links a i {
    margin-right: 6px;
}

/* Teaching Styles */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.course-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.course-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

.course-term {
    display: inline-block;
    background: var(--light-gray);
    color: var(--dark-gray);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* Portfolio Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.portfolio-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.portfolio-img {
    height: 300px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.portfolio-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.portfolio-tag {
    background: var(--light-gray);
    color: var(--dark-gray);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* CV Styles */
.cv-section {
    margin-bottom: 40px;
}

.cv-section-title {
    font-family: 'Myraid Pro', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--medium-gray);
    font-weight: 700;
}

.cv-timeline {
    position: relative;
    padding-left: 30px;
}

.cv-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.cv-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

.cv-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--accent-light);
}

.cv-item-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.cv-item-subtitle {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.cv-item-date {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: inline-block;
    background: #dff2ff;
    padding: 3px 10px;
    border-radius: 4px;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.skill-category {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.skill-category h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.skill-list {
    list-style-type: none;
}

.skill-list li {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 500;
}

.skill-level {
    width: 100px;
    height: 8px;
    background: var(--medium-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-left: 15px;
}

.skill-level-bar {
    height: 100%;
    background: var(--accent-color);
    border-radius: 4px;
}

/* Metrics Section */
.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.metric-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Photography Section Styles */
.photo-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.photo-filter {
    padding: 10px 20px;
    background: var(--light-gray);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.photo-filter:hover {
    background: var(--medium-gray);
}

.photo-filter.active {
    background: var(--accent-color);
    color: white;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.photo-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.photo-img {
    height: 220px;
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    position: relative;
    overflow: hidden;
}

.photo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.photo-content {
    padding-left: 20px;
}

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

.photo-date {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.photo-category {
    display: inline-block;
    background: var(--light-gray);
    color: var(--dark-gray);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* EEE Theme Elements */
.eee-badge {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 10px;
    display: inline-block;
}

.circuit-icon {
    color: var(--circuit-green);
}

.signal-icon {
    color: var(--signal-blue);
}

.power-icon {
    color: var(--power-red);
}

/* Site Footer Styles */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
    width: 100%;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-light);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent-light);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-light);
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(49, 130, 206, 0.4);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--accent-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.mobile-toggle:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Overlay for mobile menu */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

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

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

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        padding: 40px 50px;
        margin-left: 300px;
    }
    
    .sidebar {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        width: 320px;
        height: 100vh;
        z-index: 999;
        overflow-y: auto;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 40px 30px;
        min-height: calc(100vh - 100px);
    }
    
    .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding-bottom: 10px;
        scrollbar-width: thin;
    }
    
    .profile-img-container {
        width: 150px;
        height: 150px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .portfolio-grid,
    .course-grid,
    .skills-container,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .highlight-box {
        padding: 25px;
    }
    
    .nav-tabs-container {
        padding: 10px;
    }
    
    .tab {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .tab i {
        font-size: 0.8rem;
    }
    
    .photo-filter-tabs {
        justify-content: center;
    }
    
    .photo-filter {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .metric-card {
        padding: 20px;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .pub-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .pub-links a {
        width: 100%;
        justify-content: center;
    }
    
    .tab {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

/* Password Modal Styles */
.password-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.password-modal-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
    margin: auto;
}

.password-modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.password-modal-content p {
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

#passwordInput {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

#passwordInput:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

#submitPassword, #cancelPassword {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

#submitPassword {
    background-color: var(--accent-color);
    color: white;
}

#submitPassword:hover {
    background-color: #2c5aa0;
}

#cancelPassword {
    background-color: var(--medium-gray);
    color: var(--text-color);
}

#cancelPassword:hover {
    background-color: #cbd5e0;
}