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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #3b82f6;
        --secondary-color: #60a5fa;
        --text-color: #f3f4f6;
        --light-text: #9ca3af;
        --background: #111827;
        --section-bg: #1f2937;
        --card-bg: #374151;
        --border-color: #4b5563;
        --shadow-color: rgba(0, 0, 0, 0.3);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    transition: var(--transition);
}

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

/* Header Styles */
.header {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.profile-section {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 6px var(--shadow-color);
    position: relative;
    transition: var(--transition);
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.2);
    pointer-events: none;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile-image:hover img {
    transform: scale(1.1);
}

.name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.title {
    font-size: 1.25rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

/* Navigation */
.nav-menu {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-menu a::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: 0.5s;
}

.nav-menu a:hover::before {
    left: 100%;
}

/* Section Styles */
.section {
    padding: 4rem 0;
    background-color: var(--section-bg);
    margin-bottom: 2rem;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

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

.timeline-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--background);
}

.timeline-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 12px var(--shadow-color);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.timeline-content ul {
    list-style-position: inside;
    margin-top: 1rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--shadow-color);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

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

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    min-width: 0;
}

.contact-item p {
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.icon {
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* WhatsApp Button */
.whatsapp-button {
    text-align: center;
    margin-top: 2rem;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 2rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.whatsapp-link::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: 0.5s;
}

.whatsapp-link:hover::before {
    left: 100%;
}

.whatsapp-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.whatsapp-link .icon {
    font-size: 1.5rem;
}

/* Map Container */
.map-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .profile-section {
        margin-bottom: 1.5rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .nav-menu {
        width: 100%;
        overflow-x: auto;
        padding: 0.5rem 0;
    }

    .nav-menu ul {
        flex-wrap: nowrap;
        padding: 0;
        margin: 0;
        justify-content: flex-start;
    }

    .nav-menu li {
        margin: 0 0.5rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .section {
        padding: 1.5rem 1rem;
    }

    .section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        margin-bottom: 1.5rem;
    }

    .timeline-date {
        font-size: 0.9rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content ul {
        padding-left: 1rem;
    }

    .timeline-content li {
        font-size: 0.9rem;
    }

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

    .skill-category h3 {
        font-size: 1.2rem;
    }

    .skill-category ul {
        padding-left: 1rem;
    }

    .skill-category li {
        font-size: 0.9rem;
    }

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

    .project-card {
        padding: 1.5rem;
    }

    .project-card h3 {
        font-size: 1.2rem;
    }

    .project-card p {
        font-size: 0.9rem;
    }

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

    .contact-item {
        padding: 1rem;
        width: 100%;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .icon {
        font-size: 1.2rem;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .social-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .whatsapp-button {
        margin-top: 1rem;
    }

    .whatsapp-link {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    .map-container {
        height: 300px;
    }

    .map-container iframe {
        height: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    .header {
        padding: 0.5rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .name {
        font-size: 1.8rem;
    }

    .title {
        font-size: 1rem;
    }

    .nav-menu ul {
        padding: 0.5rem;
    }

    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.3rem;
    }

    .section {
        padding: 1rem 0.5rem;
    }

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

    .timeline {
        padding-left: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content ul {
        padding-left: 0.8rem;
    }

    .timeline-content li {
        font-size: 0.85rem;
    }

    .project-card {
        padding: 1rem;
    }

    .project-card h3 {
        font-size: 1.1rem;
    }

    .project-card p {
        font-size: 0.85rem;
    }

    .project-tech span {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .social-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .whatsapp-link {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .map-container {
        height: 250px;
    }

    .contact-item {
        padding: 0.8rem;
    }

    .contact-item p {
        font-size: 0.85rem;
    }

    .icon {
        font-size: 1.1rem;
    }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .project-card {
        background: var(--card-bg-dark);
        border-color: var(--border-color-dark);
    }

    .project-card:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Particle Effect */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Active Navigation Link */
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Skill Item Hover Effect */
.skill-category li {
    transition: var(--transition);
}

/* Section Background Parallax */
.section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Timeline Connection Line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0.5;
}

/* Enhanced Card Hover Effects */
.timeline-item, .skill-category, .contact-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Gradient Text Effect */
.name {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

/* Section Title Decoration */
.section h2 {
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Enhanced WhatsApp Button */
.whatsapp-link {
    background: linear-gradient(45deg, #25D366, #128C7E);
    position: relative;
    overflow: hidden;
}

.whatsapp-link::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: 0.5s;
}

.whatsapp-link:hover::before {
    left: 100%;
}

/* Map Container Enhancement */
.map-container {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
    pointer-events: none;
    z-index: 1;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: -30px;
    }
    
    .section {
        background-attachment: scroll;
    }
}

/* Education Styles */
.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0.5;
}

.education-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
    display: flex;
    gap: 2rem;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-color);
}

.education-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.education-icon .icon {
    font-size: 1.8rem;
    color: white;
    -webkit-text-fill-color: white;
}

.education-content {
    flex: 1;
}

.education-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.institution {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.education-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.period, .status {
    background: var(--section-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.status {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.education-description {
    color: var(--text-color);
    line-height: 1.6;
}

.education-highlights {
    list-style: none;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.education-highlights li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--light-text);
}

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

/* Responsive adjustments for education section */
@media (max-width: 768px) {
    .education-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .education-details {
        justify-content: center;
    }

    .education-highlights {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tech span {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-tech span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Languages Section */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.language-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.language-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.language-icon {
    font-size: 2.5rem;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 50%;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.language-content {
    flex: 1;
}

.language-content h3 {
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.language-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

.language-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .languages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .language-card {
        padding: 1.5rem;
    }

    .language-icon {
        font-size: 2rem;
        min-width: 50px;
        height: 50px;
    }

    .language-content h3 {
        font-size: 1.2rem;
    }

    .language-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .language-card {
        padding: 1rem;
    }

    .language-icon {
        font-size: 1.8rem;
        min-width: 45px;
        height: 45px;
    }

    .language-content h3 {
        font-size: 1.1rem;
    }

    .language-content p {
        font-size: 0.85rem;
    }
} 