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

* {
    --border: 222.2 84% 4.9%;
    --input: 222.2 84% 4.9%;
    --ring: 222.2 84% 4.9%;
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 222.2 84% 4.9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --muted: 210 40% 96%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96%;
    --accent-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --radius: 0.5rem;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    min-height: 100vh;
}

.container {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 2rem;
    }
}

/* Header Styles */
.header {
    background-image: linear-gradient(to right, hsl(var(--primary)), hsl(var(--primary) / 0.8));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.header h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header .subtitle {
    font-size: 1.25rem;
    line-height: 1.75rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: hsl(var(--primary-foreground) / 0.1);
    color: hsl(var(--primary-foreground));
    text-decoration: none;
    border-radius: 9999px;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    background-color: hsl(var(--primary-foreground) / 0.2);
}

/* Section Styles */
.section {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.section h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Timeline Styles */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: hsl(var(--primary));
}

.timeline-dot {
    position: absolute;
    left: -0.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    background-color: hsl(var(--primary));
    border-radius: 50%;
    border: 2px solid hsl(var(--background));
}

.timeline-content {
    background-color: hsl(var(--muted) / 0.5);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.timeline-date {
    color: hsl(var(--primary));
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: hsl(var(--muted-foreground));
    font-style: italic;
    margin-bottom: 1rem;
}

.timeline-list {
    color: hsl(var(--muted-foreground));
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.timeline-list li i {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--primary));
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Contact Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: hsl(var(--muted) / 0.5);
    border-radius: var(--radius);
}

.contact-item i {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--primary));
}

.contact-item a {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item a:hover {
    color: hsl(var(--primary));
}

/* Skills Styles */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    color: #ffffff;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: default;
    transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
    user-select: none;
}

.skill-tag:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 16px -4px rgb(0 0 0 / 0.25);
    filter: brightness(1.1);
}

.skill-tag i {
    width: 0.75rem;
    height: 0.75rem;
}

/* Individual skill colors */
.skill-net { background-color: #6b21a8; }
.skill-net:hover { background-color: #581c87; }
.skill-csharp { background-color: #2563eb; }
.skill-csharp:hover { background-color: #1d4ed8; }
.skill-html5 { background-color: #f97316; }
.skill-html5:hover { background-color: #ea580c; }
.skill-css3 { background-color: #3b82f6; }
.skill-css3:hover { background-color: #2563eb; }
.skill-ionic { background-color: #ef4444; }
.skill-ionic:hover { background-color: #dc2626; }
.skill-angular { background-color: #dc2626; }
.skill-angular:hover { background-color: #b91c1c; }
.skill-nextjs { background-color: #000000; }
.skill-nextjs:hover { background-color: #1f2937; }
.skill-nestjs { background-color: #dc2626; }
.skill-nestjs:hover { background-color: #b91c1c; }
.skill-react { background-color: #06b6d4; }
.skill-react:hover { background-color: #0891b2; }
.skill-react-native { background-color: #2563eb; }
.skill-react-native:hover { background-color: #1d4ed8; }
.skill-redis { background-color: #b91c1c; }
.skill-redis:hover { background-color: #991b1b; }
.skill-aws { background-color: #fb923c; }
.skill-aws:hover { background-color: #f97316; }
.skill-adonis { background-color: #9333ea; }
.skill-adonis:hover { background-color: #7c3aed; }
.skill-nodejs { background-color: #16a34a; }
.skill-nodejs:hover { background-color: #15803d; }
.skill-mysql { background-color: #60a5fa; }
.skill-mysql:hover { background-color: #3b82f6; }
.skill-postgres { background-color: #1d4ed8; }
.skill-postgres:hover { background-color: #1e40af; }
.skill-mongodb { background-color: #22c55e; }
.skill-mongodb:hover { background-color: #16a34a; }
.skill-docker { background-color: #2563eb; }
.skill-docker:hover { background-color: #1d4ed8; }
.skill-git { background-color: #ea580c; }
.skill-git:hover { background-color: #c2410c; }
.skill-typescript { background-color: #1d4ed8; }
.skill-typescript:hover { background-color: #1e40af; }
.skill-php { background-color: #6366f1; }
.skill-php:hover { background-color: #4f46e5; }
.skill-jquery { background-color: #3b82f6; }
.skill-jquery:hover { background-color: #2563eb; }
.skill-laravel { background-color: #ef4444; }
.skill-laravel:hover { background-color: #dc2626; }
.skill-python { background-color: #3b82f6; }
.skill-python:hover { background-color: #2563eb; }

/* ── Reveal (scroll entrance) ───────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Header entrance ─────────────────────────────────────────── */
.header-animate {
    animation: headerIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes headerIn {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Monogram spin on hover ──────────────────────────────────── */
.monogram {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}
.monogram:hover {
    transform: rotate(360deg) scale(1.08);
    background-color: rgba(255,255,255,0.18);
}

/* ── Social buttons in header ────────────────────────────────── */
.social-btn {
    transition: transform 0.2s ease, background-color 0.15s ease, box-shadow 0.2s ease;
}
.social-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ── Experience cards ────────────────────────────────────────── */
.card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 28px -6px rgba(0,0,0,0.13);
}
.card-current:hover {
    box-shadow: 0 8px 28px -6px rgba(16,185,129,0.25);
}

/* ── Contact items ───────────────────────────────────────────── */
.contact-item {
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.15s ease;
}
.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -6px rgba(0,0,0,0.1);
    background-color: #f1f5f9;
}
.contact-icon {
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.contact-item:hover .contact-icon {
    transform: scale(1.15) rotate(-6deg);
}

/* ── Main content spacing ────────────────────────────────────── */
main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
        line-height: 2.25rem;
    }

    .header {
        padding: 1.5rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .section {
        padding: 1rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-dot {
        left: -0.375rem;
    }
}