/* Global Styles */
:root {
    --primary-color: #c1d3fe; /* Lighter pastel blue */
    --primary-dark: #8ba6e0; /* Darker version of primary color for headings */
    --secondary-color: #d0c9ff; /* Lighter pastel purple */
    --accent-color: #ffc2c2; /* Lighter pastel pink */
    --light-color: #f8f9fa; /* Very light gray */
    --dark-color: #343a40; /* Darker gray for better contrast */
    --text-color: #212529; /* Nearly black for main text */
    --background-color: #fff; /* White background */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-weight: 400;
}

.highlight-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: normal;
    transition: var(--transition);
    border-bottom: 1px dotted var(--secondary-color);
}

.highlight-link:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

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

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--dark-color);
    position: relative;
}

.mayacode-why .section-title {
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--text-color);
    margin: 15px auto 0;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    margin: 0 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--dark-color);
}

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

.cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 80px;
    margin-bottom: 40px;
    padding: 0 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.institution-logo {
    height: 70px;
    filter: grayscale(0%);
    opacity: 1;
    transition: var(--transition);
}

.institution-logo:hover {
    transform: scale(1.05);
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
}

header .subtitle {
    color: var(--text-color);
    margin-top: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--text-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--dark-color);
    text-align: center;
    margin-top: 60px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skills {
    margin-top: 30px;
}

.skills h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.skills ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.skills li {
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--light-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.timeline-content h3 {
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-content h4 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-date {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.project-info p {
    margin-bottom: 20px;
}

/* MayaCode Why Section */
.mayacode-why {
    padding: 60px 0;
    background-color: var(--background-color);
}

.pull-quote {
    max-width: 600px;
    margin: 0 auto 25px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.4;
    opacity: 0.7;
}

.pull-quote p {
    position: relative;
    display: inline-block;
}

.mayacode-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.mayacode-photo {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mayacode-why-content {
    max-width: 70%;
    margin: 0 auto;
    text-align: left;
}

.mayacode-why-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .mayacode-why-content {
        max-width: 90%;
    }
}

/* Contact Section */
.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.8rem;
    margin-right: 20px;
    color: var(--secondary-color);
    padding-top: 5px;
}

.contact-details h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.contact-details p {
    margin-bottom: 5px;
}

.contact-details a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--text-color);
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--dark-color);
    text-align: center;
    padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
