/* Global Styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 1.75rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}
  
  /* Header */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
  header .container {
    max-width: 1140px;
  }
  header .logo img {
    width: 100px;
    height: auto;
  }
  header nav {
    display: flex;
    align-items: center;
  }
header nav a {
    margin-left: 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

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

header nav a:hover::after {
    width: 100%;
}
  
  /* Reduced Spacer */
  .spacer {
    height: 20px;
  }
  
  /* Project Pages */
.project-hero {
    min-height: auto;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0.1;
    z-index: -1;
}

.project-hero h1 {
    font-size: 1.75rem !important;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    position: relative;
    letter-spacing: 0.01em;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

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

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.project-tags .badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.project-tags .badge:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.project-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.project-content h2 {
    font-size: 1.5rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.project-overview {
    margin-bottom: 3rem;
}

.project-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.project-content .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.6;
    margin: 2rem 0;
}

.project-content h2 {
    color: var(--text);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem;
}

.project-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-content ul {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-content li {
    margin-bottom: 0.75rem;
}

.project-content strong {
    color: var(--text);
    font-weight: 600;
}

.project-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-content a:hover {
    color: var(--primary-dark);
}

.project-navigation {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
}

.project-navigation .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}
  
  /* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background), var(--surface));
    color: var(--text);
    padding: 8rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0));
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}
  
  /* Sections */
  section {
    padding: 3rem 0;
  }
  
  /* About Section */
#about {
    background: var(--surface);
    color: var(--text);
    padding: 6rem 0;
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

#about h2 {
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

#about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

#about p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.8;
}
  
  /* Projects and Research Sections */
#projects, #research {
    padding: 6rem 0;
    background: var(--background);
}

#research {
    background: var(--surface);
    position: relative;
}

#research::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

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

#research .card {
    height: 100%;
}

#research .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    position: relative;
    padding-bottom: 1rem;
}

.container h2 {
    display: block;
    width: 100%;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.projects .card {
    border: none;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    position: relative;
}

.projects .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.projects .card:hover::after {
    opacity: 1;
}
  .projects .card-body {
    padding: 1rem;
  }
  .projects .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.projects .card-body img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.projects .card:hover .card-body img {
    transform: scale(1.02);
}

.projects .card-title {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.projects .card-text {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
    margin: 0.25rem;
}

.badge:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.badge.bg-primary {
    background-color: rgba(37, 99, 235, 0.1) !important;
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.projects .card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
  .projects .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
  }
  
  /* Contact Section */
#contact {
    background: var(--surface);
    padding: 6rem 0;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

#contact h2 {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

#contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

#contact p {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

#contact a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#contact a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
  
  /* Footer */
footer {
    background: var(--primary-dark);
    padding: 3rem 0;
    color: white;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

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

.btn-outline-light {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-dark);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.bullet {
    margin: 0 0.5rem;
    opacity: 0.7;
}
  