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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #3b82f6;
    flex-shrink: 0;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e293b;
}

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

.nav a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #3b82f6;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    position: relative;
}

.hero-avatar:hover {
    box-shadow: 0 0 20px 4px #3b82f688;
    transform: scale(1.05);
    transition: all 0.25s ease;
}

.hero-quote {
    font-style: italic;
}

.hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Quote Section */
.quote-section {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border-left: 4px solid #3b82f6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #1e293b;
    line-height: 1.6;
    position: relative;
    margin: 0;
}

.quote-icon {
    color: #3b82f6;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.quote-author {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    text-align: right;
}

.hero-description {
    max-width: 800px;
    margin: 2rem auto 3rem;
    text-align: left;
}

.hero-description p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    color: #1e293b;
    margin-bottom: 1rem;
}

.research-intro,
.tools-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.about-text p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.info-item i {
    color: #3b82f6;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-header i {
    font-size: 1.5rem;
}

.card-header h4 {
    color: #1e293b;
    font-weight: 600;
}

.card p {
    color: #64748b;
    line-height: 1.6;
}

/* Research Section */
.research {
    padding: 80px 0;
    background: #f8fafc;
}

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

.research-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.research-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
    background: #3b82f6;
}

.pon-icon {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    font-weight: bold;
    font-size: 1rem;
}

.research-card h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.research-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.research-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Tools Section */
.tools {
    padding: 80px 0;
    background: white;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.tools-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

.tools-section h3 i {
    color: #3b82f6;
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tool-info {
    display: flex;
    flex-direction: column;
}

.tool-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.tool-description {
    font-size: 0.9rem;
    color: #64748b;
}

.tool-badge {
    background: #e2e8f0;
    color: #64748b;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    white-space: nowrap;
}

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

.tag {
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #1e293b;
    color: white;
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact .btn-outline {
    border-color: #cbd5e1;
    color: #cbd5e1;
}

.contact .btn-outline:hover {
    background: #cbd5e1;
    color: #1e293b;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #64748b;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-quote {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 1rem;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        display: none;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.1rem;
    }
    
    .hero-description {
        text-align: center;
    }
    
    .about-grid,
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons,
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
    
    .quote-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .tool-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .hero-avatar {
        width: 120px;
        height: 120px;
    }
    
    .header-avatar {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-name {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .research-card,
    .card {
        padding: 1.5rem;
    }
    
    .hero-quote {
        font-size: 1rem;
    }
    
    .hero-avatar {
        width: 100px;
        height: 100px;
    }
    
    .header-avatar {
        width: 32px;
        height: 32px;
    }
}

/* Contact Section: Social Media Icons */

.contact-social a:hover {
    color: #3b82f6;
    transform: translateY(-3px) scale(1.2);
}

.contact-social {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem; /* Consistent gap between all icons */
}

.contact-social a {
    color: #fff;
    font-size: 2.2rem;
    transition: color 0.2s, transform 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem; /* fixed width for all icons */
    height: 3.5rem; /* fixed height for all icons */
}

.contact-social a[aria-label="X (Twitter)"] i {
    color: #fff !important;
}

/* Portfolio Section */
.portfolio-section {
    padding: 80px 0;
    background: white;
  }
  .portfolio-section .container {
    width: 100%; /* Ensure the container takes full width */
  }
  
/* slider container */
.portfolio-slider {
  display: flex;              /* ← THIS is what makes it horizontal! */
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

/* slider cards */
.portfolio-slider .portfolio-card {
  flex: 0 0 auto;             /* keeps cards side by side */
  scroll-snap-align: start;
  min-width: 280px;
  max-width: 300px;
  background: #f8fafc;        /* match your other card styles */
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-slider .portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.portfolio-slider .portfolio-card img {
  width: 30%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.portfolio-slider .portfolio-card h3 {
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.portfolio-slider .portfolio-card p {
  color: #64748b;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.portfolio-slider .portfolio-card .btn-primary {
  padding: 10px 20px;
  font-size: 0.9rem;
}



/* Give each network a special color on hover (optional, looks cool!) */
.contact-social a[aria-label="LinkedIn"]:hover { color: #0A66C2; }
.contact-social a[aria-label="GitHub"]:hover { color: #fff; }
.contact-social a[aria-label="X (Twitter)"]:hover { color: #1DA1F2; }
.contact-social a[aria-label="Google Scholar"]:hover { color: #4285F4; }
.contact-social a[aria-label="Email"]:hover { color: #c026d3; }
