* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000;
    --secondary-color: #3498db;
    --text-color: #000;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.custom-navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.custom-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.custom-logo {
    display: flex !important;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.custom-logo:hover .logo-image {
    transform: scale(1.05);
}

.custom-logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.custom-nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.custom-nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color);
}

.custom-mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.custom-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}
/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Slider */
.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
}

.slide.click {
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem;
}

.slide-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Cards */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-content .short-text {
    color: #666;
    font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    top: auto;
    left: auto;
    width: 60%;
    height: 95%;
    object-fit: cover;
    filter: brightness(0.6);
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.stats-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.stats-bg:hover, .stats-content {
    transform: scale(1.05);
}

.stats-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stats-content p {
    font-size: 4rem;
    font-weight: bold;
}

/* Full Width Cards (Lessons & Projects) */
.full-card {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
    cursor: pointer;
}

.full-card img {
    width: 210px;
    height: 210px;
    object-fit: cover;
}

.full-card-content {
    width: 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.full-card:hover {
    box-shadow: var(--shadow-hover);
}

.full-card-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.full-card-content p {
    color: #666;
    line-height: 1.8;
}

.full-card.reverse {
    direction: rtl;
}

.full-card.reverse .full-card-content {
    direction: ltr;
}

/* Detail Pages */
.detail-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
}

.detail-header {
    text-align: center;
    margin-bottom: 2rem;
}

.detail-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.custom-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.custom-btn:hover {
    background: #2980b9;
}

/* Tables */
.files-table-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.files-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: var(--primary-color);
    color: var(--white);
}

tr:hover {
    background: var(--light-bg);
}

.file-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.file-link:hover {
    text-decoration: underline;
}

/* Project Detail with Background */
.project-detail-bg {
    position: relative;
    min-height: 100vh;
}

.project-bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
    z-index: -1;
}

.project-content-wrapper {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.project-logo {
    text-align: center;
    margin: 2rem 0;
    border-radius: 10px;
}

.project-logo img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
}

/* Members Table */
.members-table {
    margin-top: 2rem;
}

.linkedin-link {
    color: #0077b5;
    text-decoration: none;
    font-weight: 500;
}

.linkedin-link:hover {
    text-decoration: underline;
}

.linkedin-disabled {
    color: #999;
    cursor: not-allowed;
}

/* Article Detail */
.article-author {
    text-align: right;
    font-style: italic;
    margin-top: 2rem;
    color: #666;
}

/* About Page */
.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.about-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

/* Academic/Education Cards */
.timeline-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.timeline-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-card .date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-card .institution {
    color: #666;
}

.thesis-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
}

.thesis-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-mobile-toggle {
        display: flex;
    }
    
    .custom-logo span{
        display: none;
    }
    
    .custom-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 0 1rem;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }
    
    .custom-nav-menu.active {
        max-height: 300px;
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .card-content .short-text {
        display: none;
    }
    
    .full-card {
        grid-template-columns: 1fr;
    }
    
    .full-card.reverse {
        direction: ltr;
    }
    
    .full-card-content .short-text {
        display: none;
    }
    
    .files-table-container {
        grid-template-columns: 1fr;
    }
    
    .about-buttons {
        flex-direction: column;
    }
}