/* Global Custom Properties & Modern Pastel Palette */
:root {
    --bg-main: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    
    --pastel-purple: #f3e8ff;
    --pastel-blue: #e0f2fe;
    --pastel-pink: #fce7f3;
    
    --text-purple: #6b21a8;
    --text-blue: #0369a1;
    --text-pink: #9d174d;
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Animated/Static Decorative Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}
.blob-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background-color: var(--pastel-purple);
}
.blob-2 {
    bottom: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background-color: var(--pastel-pink);
}
.blob-3 {
    top: 40%;
    left: 25%;
    width: 350px;
    height: 350px;
    background-color: var(--pastel-blue);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-links a:hover {
    color: var(--primary);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Base Layout Structure */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 1.5rem 3rem 1.5rem;
}
.section {
    padding: 4rem 0;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.hero-text {
    max-width: 700px;
}
.badge {
    display: inline-block;
    background-color: var(--pastel-purple);
    color: var(--text-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.hero-cta {
    display: flex;
    gap: 1rem;
}
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}
.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
}
.btn-secondary:hover {
    background-color: #f1f5f9;
}

/* Shared Cards Architecture */
.card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Skills Layout & Formatting */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.skill-group {
    margin-bottom: 1.25rem;
}
.skill-group h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}
.tag-blue { background-color: var(--pastel-blue); color: var(--text-blue); }
.tag-purple { background-color: var(--pastel-purple); color: var(--text-purple); }
.tag-pink { background-color: var(--pastel-pink); color: var(--text-pink); }

.soft-skills-list {
    list-style: none;
}
.soft-skills-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}
.soft-skills-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Languages Bars */
.language-item {
    margin-bottom: 1.25rem;
}
.lang-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}
.lang-level {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.progress {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
}
.progress-full { width: 100%; }
.progress-medium { width: 60%; }
.progress-n4 { width: 45%; }

/* Projects Grid & Typography */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.project-card {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}
.project-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: #dcfce7;
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}
.project-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}
.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.project-link:hover {
    text-decoration: underline;
}

/* Contact Links System */
.contact-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.contact-card {
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}
.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.contact-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.linkedin-card:hover { border-color: #0077b5; background-color: #f0f7fa; }
.whatsapp-card:hover { border-color: #25d366; background-color: #f0fbf4; }
.email-card:hover { border-color: var(--primary); background-color: #f5f5ff; }

/* Footer Elements */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
    background: white;
}

/* Media Queries for Responsive Screens */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    .nav-links.active {
        display: flex;
    }
    .hero-text h1 {
        font-size: 2.25rem;
    }
    .hero-cta {
        flex-direction: column;
    }
    .btn {
        text-align: center;
    }
}