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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

a {
    color: #25afb4;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a8a8e;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.hero-text h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.contact-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.contact-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.contact-icons a:hover {
    transform: translateY(-5px);
}

.contact-icons img {
    width: 50px;
    height: 50px;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-top: -30px;
    margin-bottom: 40px;
}

/* Alternating Section Backgrounds */
.thesis-section {
    background: #f8f9fa;
}

.papers-section {
    background: #fff;
}

.opensource-section {
    background: #f8f9fa;
}

.projects-section {
    background: #fff;
}

.fun-section {
    background: #f8f9fa;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.card h3 a {
    color: #2c3e50;
}

.card h3 a:hover {
    color: #25afb4;
}

.card p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.company {
    font-weight: 600;
    color: #25afb4;
    margin-bottom: 10px !important;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cards-grid.three-col {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.small-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.small-card p {
    flex: 1;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.btn-primary {
    background: #25afb4;
    color: white;
    border-color: #25afb4;
}

.btn-primary:hover {
    background: #1a8a8e;
    border-color: #1a8a8e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 175, 180, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #25afb4;
    border-color: #25afb4;
}

.btn-secondary:hover {
    background: #25afb4;
    color: white;
    transform: translateY(-2px);
}

.card-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 10px;
}

/* Fun Projects Section */
.fun-projects {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.fun-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.fun-project.reverse {
    grid-template-columns: 1fr 1fr;
}

.fun-project.reverse .fun-project-content {
    order: 2;
}

.fun-project.reverse .fun-project-image {
    order: 1;
}

.fun-project h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.fun-project p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.fun-project-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-icons {
        justify-content: center;
    }

    .fun-project,
    .fun-project.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fun-project.reverse .fun-project-content {
        order: 1;
    }

    .fun-project.reverse .fun-project-image {
        order: 2;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

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

@media (max-width: 640px) {
    .section {
        padding: 50px 0;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text h3 {
        font-size: 1.1rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .card {
        padding: 25px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid.three-col {
        grid-template-columns: 1fr;
    }

    .fun-project {
        padding: 30px 25px;
    }

    .contact-icons img {
        width: 40px;
        height: 40px;
    }
}
