@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #8341b3;
    --secondary-color: #333333;
    --accent-color: #ff69b4;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --light-text-color: #7f8c8d;
    --background-color: #ffffff;
    --light-background: #f5f7fa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

section {
    padding: 5rem 2rem;
}

button {
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;  /* Reduced from 1rem 2rem */
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 120px;  /* Reduced from 240px */
    height: auto;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

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

    .nav-links li {
        padding: 0.5rem 0;
        text-align: center;
    }

    .logo img {
        max-width: 90px;  /* Reduced from 180px */
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 0.25rem;  /* Reduced from 1rem */
    }

    .logo img {
        max-height: 20px;  /* Reduced from 40px */
    }
}

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

nav ul li a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2" d="M0,0 L100,100 M100,0 L0,100" /></svg>');
    background-size: 20px 20px;
    opacity: 0.3;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: white;
}

/* About Section */
.about-section {
    background-color: var(--light-background);
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.about-text {
    max-width: 800px;
    text-align: left;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Activities Section */
.activities-section {
    text-align: center;
}

.activities-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

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

.activity-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.activity-card:hover {
    transform: translateY(-10px);
}

.activity-icon {
    margin-bottom: 1rem;
}

.activity-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* People Section */
.people-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.people-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.person-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.person-card:hover {
    transform: translateY(-5px);
}

.person-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.person-image img {
    width: 65%;
    height: 100%;
    object-fit: cover;
    scale: 0.8;
}

.person-info {
    padding: 1.5rem;
}

.person-info h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.person-role {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0.5rem 0;
}

.person-bio {
    color: #666;
    line-height: 1.6;
    margin: 1rem 0;
}

.cv-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

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

.person-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

.social-icon:hover {
    color: var(--secondary-color);
}

/* Achievements Section */
.achievements-section {
    text-align: center;
}

.achievements-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    width: calc(50% - 40px);
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-date {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-background);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    transition: all var(--transition-speed);
    box-shadow: var(--card-shadow);
}

.social-link:hover {
    transform: translateY(-3px);
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

.form-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.form-button:hover {
    background-color: #2980b9;
}

/* Partners Section */
.partners-section {
    padding: 5rem 2rem;
    text-align: center;
    background-color: var(--light-background);
}

.partners-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.partners-subsection {
    margin-bottom: 4rem;
}

.partners-subsection h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Sponsors Grid */
.partners-subsection:first-child .partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.partner-logo {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    transform: translateY(-5px);
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* Partners Feed */
.partners-subsection:last-child .partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.partners-subsection:last-child .partner-logo {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.partners-subsection:last-child .partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.partners-subsection:last-child .partner-logo:hover {
    transform: translateY(-5px);
}

.partners-subsection:last-child .partner-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-background);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.partners-subsection:last-child .partner-name {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.partners-subsection:last-child .partner-description {
    color: var(--light-text-color);
    font-size: 1rem;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .partners-subsection:first-child .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-subsection:last-child .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 2rem;
}

.footer-logo {
    grid-column: span 4;
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo-text {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-logo p {
    margin-top: 1rem;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--light-color);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-text-color);
}

@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-logo {
        grid-column: span 2;
    }

    .footer-links {
        grid-column: span 2;
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-column {
        padding: 0 1rem;
    }

    .footer-column:last-child {
        grid-column: span 2;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .timeline::before {
        left: 40px;
    }

    .timeline-dot {
        left: 40px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    header h1 {
        font-size: 1.5rem;
        margin: 0.5rem 0;
    }

    nav ul {
        gap: 1rem;
        margin-top: 1rem;
    }

    .hero {
        height: auto;
        padding: 4rem 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .activities-grid,
    .people-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
}

.workshops-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.workshops-container {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.workshop-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.workshop-card:hover {
    transform: translateY(-5px);
}

.workshop-card.placeholder {
    background: #f5f5f5;
    border: 2px dashed #ccc;
}

.workshop-content {
    padding: 2rem;
}

.workshop-meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.workshop-description {
    margin: 1rem 0;
    line-height: 1.6;
}

.workshop-outcomes {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.workshop-outcomes h5 {
    color: #333;
    margin-bottom: 1rem;
}

.workshop-outcomes ul {
    list-style-type: none;
    padding: 0;
}

.workshop-outcomes li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.workshop-outcomes li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.talks-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.talks-container {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.talk-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.talk-card:hover {
    transform: translateY(-5px);
}

.talk-card.placeholder {
    background: #f5f5f5;
    border: 2px dashed #ccc;
}

.talk-content {
    padding: 2rem;
}

.talk-meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.talk-description {
    margin: 1rem 0;
    line-height: 1.6;
}

.talk-highlights {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.talk-highlights h5 {
    color: #333;
    margin-bottom: 1rem;
}

.talk-highlights ul {
    list-style-type: none;
    padding: 0;
}

.talk-highlights li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.talk-highlights li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.hackathons-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hackathons-container {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.hackathon-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.hackathon-card:hover {
    transform: translateY(-5px);
}

.hackathon-card.placeholder {
    background: #f5f5f5;
    border: 2px dashed #ccc;
}

.hackathon-content {
    padding: 2rem;
}

.hackathon-meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.hackathon-description {
    margin: 1rem 0;
    line-height: 1.6;
}

.hackathon-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.hackathon-details h5 {
    color: #333;
    margin-bottom: 1rem;
}

.hackathon-details ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.hackathon-details li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.hackathon-details li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.details-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

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

.research-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.research-container {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

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

.research-card:hover {
    transform: translateY(-5px);
}

.research-card.placeholder {
    background: #f5f5f5;
    border: 2px dashed #ccc;
}

.research-content {
    padding: 2rem;
}

.research-meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.research-description {
    margin: 1rem 0;
    line-height: 1.6;
}

.research-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.research-details h5 {
    color: #333;
    margin-bottom: 1rem;
}

.research-details ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.research-details li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.research-details li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Partners Slider */
.partners-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: white;
    padding: 1rem 0;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    margin: 0 auto;
    max-width: 1200px;
}

.partners-track {
    display: flex;
    animation: slide 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.partner-item:hover {
    color: var(--secondary-color);
}

.partner-item::after {
    content: '•';
    margin-left: 2rem;
    color: var(--light-text-color);
}

.partner-item:last-child::after {
    display: none;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 768px) {
    .partner-item {
        font-size: 1rem;
        padding: 0 1.5rem;
    }
    
    .partner-item::after {
        margin-left: 1.5rem;
    }
}