/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* USC Brand Colors */
    --primary-color: #990000; /* USC Cardinal Red */
    --primary-dark: #7a0000; /* Darker Cardinal */
    --secondary-color: #FFCC00; /* USC Gold */
    --accent-color: #CC0000; /* Bright Cardinal */
    --text-dark: #1a1a1a; /* Dark gray for text */
    --text-light: #4a4a4a; /* Medium gray */
    --bg-light: #f5f5f5; /* Light background */
    --bg-white: #ffffff;
    --accent-gold: #FFCC00; /* USC Gold */
    --accent-gray: #666666; /* USC Gray */
    --gradient-1: linear-gradient(135deg, #990000 0%, #990000 100%); /* Pure Cardinal */
    --gradient-2: linear-gradient(135deg, #990000 0%, #7a0000 100%); /* Cardinal to darker */
    --gradient-3: linear-gradient(135deg, #990000 0%, #FFCC00 100%); /* Cardinal to Gold */
    --border-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 280px;
    display: block;
}

.logo a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.9;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo img {
        height: 40px;
        max-width: 220px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #990000;
}

#three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.25);
}

.btn-secondary {
    background: white;
    color: #990000;
    border-color: #990000;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #990000 0%, #FFCC00 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.lead {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Research Section */
.research {
    background: var(--bg-light);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.research-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #990000 0%, #FFCC00 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.research-card:hover::before {
    transform: scaleX(1);
}

.research-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

.research-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.research-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Team Section */
.team {
    background: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-3px);
}

.member-avatar {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: #990000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* .avatar-placeholder {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    z-index: 1;
} */

.avatar-placeholder {
  width: 200px;              
  height: 200px;
  border-radius: 50%;       
  overflow: hidden;         
  background-color: #990000;   
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #ffffff;
  position: relative;
}


.avatar-placeholder img {
  width: 100%;
  height: 77%;
  object-fit: cover;      
  object-position: center; 
  display: block;           
}

.avatar-placeholder-contact {
  width: 200px;              
  height: 200px;
  border-radius: 50%;       
  overflow: hidden;         
  background-color: #990000;   
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #ffffff;
  position: relative;
}

.avatar-placeholder-contact img {
  width: 100%;
  height: 100%;
  object-fit: cover;      
  object-position: center; 
  display: block;           
}

.member-avatar::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-avatar:hover::before {
    opacity: 1;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Publications Section */
.publications {
    background: var(--bg-light);
}

.publications-list {
    max-width: 900px;
    margin: 0 auto;
}

.publication-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.publication-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.pub-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 60px;
}

.pub-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pub-authors {
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.pub-venue {
    color: var(--primary-color);
    font-weight: 600;
}

/* Overview Section */
.overview {
    background: var(--bg-white);
    padding: 6rem 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.overview-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.overview-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.15);
}

.overview-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.overview-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.overview-card .btn {
    margin-top: 1rem;
}

/* Page Header */
.page-header {
    background: #990000;
    padding: 8rem 0 4rem;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
}

/* About Page */
.about-page {
    background: var(--bg-white);
    padding: 6rem 0;
}

.about-detailed {
    max-width: 1000px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 5rem;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #990000 0%, #FFCC00 100%);
    border-radius: 2px;
}

.content-block {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
}

.content-block p {
    margin-bottom: 1.5rem;
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.mission-list li strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.vision-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.vision-item:hover {
    transform: translateY(-5px);
}

.vision-item h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.vision-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.philosophy-points {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.philosophy-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.philosophy-item:hover {
    transform: translateX(10px);
}

.philosophy-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.philosophy-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.philosophy-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.achievement-item {
    text-align: center;
    padding: 2rem;
    background: #990000;
    border-radius: 15px;
    color: white;
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: scale(1.02);
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.achievement-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Research Page */
.research-page {
    background: var(--bg-white);
    padding: 6rem 0;
}

.research-domains {
    max-width: 1100px;
    margin: 0 auto;
}

.domain-section {
    margin-bottom: 5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 3rem;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.domain-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.domain-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(153, 0, 0, 0.2);
}

.domain-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.domain-icon svg {
    width: 30px;
    height: 30px;
}

.domain-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin: 0;
}

.domain-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
}

.domain-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 400;
}

.domain-details {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.domain-details h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-size: 1.5rem;
}

.domain-details h3:first-child {
    margin-top: 0;
}

.domain-details ul {
    list-style: none;
    padding: 0;
}

.domain-details li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.domain-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Team Page */
.team-page {
    background: var(--bg-white);
    padding: 6rem 0;
}

.team-section {
    margin-bottom: 5rem;
}

.team-section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.team-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #990000 0%, #FFCC00 100%);
    border-radius: 2px;
}

.team-member-detailed {
    background: white;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.team-member-detailed:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.team-member-detailed .member-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.team-member-detailed h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-member-detailed .member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.team-member-detailed .member-bio {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: left;
}

.member-info {
    text-align: left;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.member-info p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.member-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.member-info a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.former-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.former-member {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: transform 0.3s ease;
}

.former-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.member-avatar-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #990000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-placeholder-small {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.former-member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.former-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.former-bio {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Publications Page */
.publications-page {
    background: var(--bg-white);
    padding: 6rem 0;
}

.publications-content {
    max-width: 1000px;
    margin: 0 auto;
}

.publication-year-section {
    margin-bottom: 4rem;
}

.year-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.year-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #990000 0%, #FFCC00 100%);
    border-radius: 2px;
}

.publication-item-detailed {
    background: white;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.publication-item-detailed:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.publication-item-detailed .pub-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 80px;
    text-align: center;
}

.publication-item-detailed .pub-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.publication-item-detailed .pub-authors {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.publication-item-detailed .pub-venue {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.pub-abstract {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.pub-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pub-link {
    padding: 0.5rem 1.2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pub-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 0, 0, 0.3);
}

/* Contact Page */
.contact-page {
    background: var(--bg-white);
    padding: 6rem 0;
}

.contact-page-content {
    max-width: 1100px;
    margin: 0 auto;
}

.lab-head-section {
    margin-bottom: 5rem;
}

.lab-head-card {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.lab-head-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.lab-head-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #990000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lab-head-avatar .avatar-placeholder {
    font-size: 4rem;
    font-weight: 700;
    color: white;
}

.lab-head-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.lab-head-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.lab-head-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.lab-head-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-icon-small {
    width: 40px;
    height: 40px;
    background: #990000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-icon-small svg {
    width: 20px;
    height: 20px;
}

.contact-info-item strong {
    color: var(--text-dark);
    margin-right: 0.5rem;
}

.contact-info-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.lab-contact-section {
    margin-bottom: 5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.contact-icon-large {
    width: 70px;
    height: 70px;
    background: #990000;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 1.5rem;
}

.contact-icon-large svg {
    width: 35px;
    height: 35px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-card strong {
    color: var(--text-dark);
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-address {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.contact-form-section {
    margin-top: 5rem;
}

.contact-form-large {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .lab-head-card {
        flex-direction: column;
        text-align: center;
    }

    .lab-head-avatar {
        margin: 0 auto;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Contact Section */
.contact {
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #990000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo .logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 4rem 0;
    }
}

