/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
    overflow-x: hidden;
    min-width: 320px; /* Minimum width for mobile devices */
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2c3e50;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #475569;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    min-height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-link {
    text-decoration: none;
    color: inherit;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    display: block;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    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: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-secondary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.nav-link-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.3), transparent);
    background-repeat: repeat;
    background-size: 100px 100px;
    animation: particle-float 20s linear infinite;
}

@keyframes particle-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line {
    display: block;
}

.title-accent {
    background: linear-gradient(45deg, #ffeaa7, #fab1a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.float-element i {
    font-size: 1.5rem;
    color: white;
}

.float-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.float-element:nth-child(2) {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.float-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.float-element:nth-child(4) {
    top: 70%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    animation: pulse 2s infinite;
}

.scroll-arrow {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.scroll-text {
    font-size: 0.875rem;
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.about-image {
    grid-column: 1 / -1;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.image-container {
    text-align: center;
    position: relative;
}

.about-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.image-caption {
    margin-top: 1rem;
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
}

.image-caption p {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.caption-subtitle {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.about-text h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: #64748b;
}

.supervisor-list {
    list-style: none;
    margin: 1rem 0;
}

.supervisor-list li {
    margin-bottom: 0.5rem;
}

.supervisor-list a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.supervisor-list a:hover {
    color: #764ba2;
}

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

.highlight-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.highlight-icon i {
    color: white;
    font-size: 1.25rem;
}

.highlight-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.highlight-card ul {
    list-style: none;
}

.highlight-card li {
    color: #64748b;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.highlight-card li::before {
    content: '•';
    color: #667eea;
    position: absolute;
    left: 0;
}

/* Research Section */
.research {
    background: white;
}

.research-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.research-description h3,
.research-description h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.research-description p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.research-goals {
    list-style: none;
    margin: 1.5rem 0;
}

.research-goals li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: #64748b;
}

.research-goals li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.methodology-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
}

.methodology-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.inline-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.research-interests h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interest-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.interest-item i {
    font-size: 1.5rem;
    color: #667eea;
}

.interest-item span {
    font-weight: 500;
    color: #2c3e50;
}

.collaboration-cta {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 2rem;
}

.collaboration-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.collaboration-cta .btn {
    background: white;
    color: #667eea;
}

.collaboration-cta .btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* Conference Presentations Section */
.conference-presentations {
    margin: 3rem 0;
}

.conference-presentations h3 {
    color: #2c3e50;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.conference-highlight {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.conference-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.conference-icon i {
    font-size: 2rem;
    color: white;
}

.conference-details h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.375rem;
}

.conference-subtitle {
    color: #667eea;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.conference-details p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.conference-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.conference-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.conference-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.conference-link i {
    font-size: 0.875rem;
}

.additional-involvement {
    margin-top: 1.5rem;
}

.additional-involvement h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.additional-involvement p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Accessibility Section */
.accessibility {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.accessibility-intro h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.accessibility-intro p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.award-highlight {
    background: linear-gradient(45deg, #ffeaa7, #fab1a0);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.award-highlight i {
    font-size: 2rem;
    color: #d63031;
}

.award-highlight h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.award-highlight p {
    color: #636e72;
    margin-bottom: 1rem;
}

.view-poster {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-poster:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.principle-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.principle-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.principle-icon i {
    color: white;
    font-size: 1.5rem;
}

.principle-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

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

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.resource-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.resource-link i {
    color: #667eea;
    font-size: 1.25rem;
}

.resource-link.internal i {
    color: #f093fb;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.25rem;
}

.contact-details h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.contact-details p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #764ba2;
}

.contact-form-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 16px;
}

.contact-form-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.contact-footer {
    text-align: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: 16px;
}

.contact-footer p {
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.accessibility-toggle {
    background: none;
    border: 1px solid #bdc3c7;
    color: #bdc3c7;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accessibility-toggle:hover {
    background: #bdc3c7;
    color: #2c3e50;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #bdc3c7;
    font-size: 0.875rem;
}

/* Mobile-first optimizations */
@media (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

/* Tablet adjustments */
@media (max-width: 900px) {
    .interest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation fixes */
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        gap: 1rem;
        z-index: 1001;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .hamburger:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero section improvements */
    .hero {
        min-height: 100vh;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem 0;
        margin-top: -1rem; /* Offset for navbar */
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        padding: 0 1rem;
    }

    .hero-actions {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .hero-badges {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .badge {
        font-size: 0.8125rem;
        padding: 5px 12px;
    }

    /* Visual elements */
    .hero-visual {
        display: none; /* Hide hero visual on mobile */
    }
    
    .floating-elements {
        display: none; /* Hide complex animations on mobile for performance */
    }

    /* Layout improvements */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    .about-photo {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }

    .image-caption p {
        font-size: 1rem;
    }

    .caption-subtitle {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .interest-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Conference section mobile adjustments */
    .conference-highlight {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .conference-icon {
        margin: 0 auto;
    }
    
    .conference-links {
        justify-content: center;
    }
    
    .additional-involvement {
        text-align: center;
    }
    
    /* Form improvements */
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Container and spacing */
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Card spacing */
    .highlight-card,
    .principle-card,
    .interest-item {
        margin-bottom: 1rem;
    }
    
    /* Footer improvements */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Typography adjustments */
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
    }

    /* Button improvements */
    .btn {
        padding: 12px 20px;
        font-size: 0.875rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 260px;
    }

    /* Navigation improvements */
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    .brand-subtitle {
        font-size: 0.8125rem;
    }
    
    .nav-menu {
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        margin-top: 1px;
    }
    
    .nav-link {
        padding: 1rem;
        text-align: center;
        font-size: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: background 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        background: rgba(102, 126, 234, 0.1);
    }
    
    .nav-link-secondary {
        background: linear-gradient(45deg, #667eea, #764ba2);
        color: white !important;
        margin-top: 0.5rem;
    }

    /* Hero section */
    .hero {
        padding: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        padding: 0.75rem 0;
        margin-top: -0.5rem; /* Fine-tune centering */
    }
    
    .hero-visual {
        display: none; /* Hide hero visual on small mobile */
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .scroll-text {
        font-size: 0.8125rem;
    }

    /* Cards and content */
    .about-highlights {
        gap: 1rem;
    }

    .highlight-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .highlight-icon {
        width: 40px;
        height: 40px;
    }
    
    .highlight-icon i {
        font-size: 1rem;
    }

    /* Interest and principle cards */
    .interest-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .interest-item i {
        font-size: 1.25rem;
    }
    
    .principle-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .principle-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    /* Conference section small mobile */
    .conference-highlight {
        gap: 1rem;
    }
    
    .conference-icon {
        width: 60px;
        height: 60px;
    }
    
    .conference-icon i {
        font-size: 1.5rem;
    }
    
    .conference-details h4 {
        font-size: 1.25rem;
    }
    
    .conference-subtitle {
        font-size: 1rem;
    }
    
    .conference-link {
        padding: 8px 16px;
        font-size: 0.8125rem;
    }

    /* Contact form */
    .contact-form-section {
        padding: 1.25rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-icon {
        margin: 0 auto;
    }

    /* Research goals */
    .goal-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .goal-number {
        margin: 0 auto;
    }

    /* Awards and highlights */
    .award-highlight {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .view-poster {
        align-self: center;
    }

    /* Methodology benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-item {
        padding: 1.5rem;
    }

    /* Resource links */
    .resource-link {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .resource-link i {
        font-size: 1.5rem;
    }

    /* Collaboration CTA */
    .collaboration-cta {
        padding: 1.5rem;
        text-align: center;
    }
    
    .collaboration-cta p {
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }

    /* General spacing improvements */
    section {
        padding: 2.5rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Typography hierarchy */
    h3 {
        font-size: 1.375rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
    
    /* Better touch targets */
    .nav-toggle {
        padding: 0.75rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .accessibility-toggle {
        padding: 10px 16px;
        min-height: 44px;
    }
    
    /* Form improvements for mobile */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .checkbox-group {
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .checkbox-group input {
        margin-top: 0.25rem;
        min-width: 18px;
        min-height: 18px;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.625rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-visual {
        display: none; /* Hide hero visual on extra small mobile */
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        padding: 0.5rem 0.75rem;
    }
    
    .hero {
        padding: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        padding: 1rem 0;
        margin-top: -1rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .highlight-card,
    .principle-card,
    .interest-item {
        padding: 1.25rem;
    }
    
    .contact-form-section {
        padding: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High Contrast Mode */
.high-contrast {
    background: #000000 !important;
    color: #ffffff !important;
}

.high-contrast .navbar {
    background: #000000 !important;
    border-bottom-color: #ffffff !important;
}

.high-contrast .nav-link {
    color: #ffffff !important;
}

.high-contrast .hero {
    background: #000000 !important;
}

.high-contrast .btn-primary,
.high-contrast .btn-secondary {
    background: #ffffff !important;
    color: #000000 !important;
}

.high-contrast .highlight-card,
.high-contrast .principle-card,
.high-contrast .interest-item,
.high-contrast .resource-link {
    background: #333333 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .hero-visual,
    .floating-elements {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        background: white;
        color: black;
        padding: 2rem 0;
    }

    .hero-title {
        color: black;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}