:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #ec4899;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-light: #f1f5f9;
    --text-muted-light: #94a3b8;
    --text-dark: #1e293b;
    --text-muted-dark: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* ====== Navbar ====== */
.portfolio-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}

.portfolio-nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.portfolio-nav .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.portfolio-nav .nav-link:hover {
    color: var(--primary) !important;
}

.portfolio-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary);
    transition: transform 0.2s ease;
}

.portfolio-nav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ====== Hero ====== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 1.25rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--text-muted-light);
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-muted-light);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero-actions .btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 8px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.hero-socials {
    display: flex;
    gap: 1rem;
}

.hero-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ====== Sections ====== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto 3rem;
    border-radius: 2px;
}

/* ====== About ====== */
.about-meta i {
    margin-right: 0.5rem;
}

/* ====== Skills ====== */
.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.skill-category {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-name {
    font-weight: 600;
    color: var(--text-dark);
}

.skill-level {
    color: var(--text-muted-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.progress {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.35rem;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}

/* ====== Timeline (Experience) ====== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--bg-light);
    box-shadow: 0 0 0 2px var(--primary);
}

.section-alt .timeline-marker {
    border-color: white;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.timeline-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.timeline-subtitle {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-date {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-muted-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.section-alt .timeline-date {
    background: var(--bg-light);
}

.timeline-highlights {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.timeline-highlights li {
    margin-bottom: 0.4rem;
    color: var(--text-muted-dark);
}

/* ====== Education ====== */
.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.edu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.edu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.edu-degree {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.edu-field {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.edu-institution {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.edu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted-dark);
    font-size: 0.9rem;
}

.edu-meta i {
    margin-right: 0.35rem;
    color: var(--primary);
}

.edu-description {
    color: var(--text-muted-dark);
    font-size: 0.95rem;
}

/* ====== Projects ====== */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.project-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.project-description {
    color: var(--text-muted-dark);
    margin-bottom: 1.25rem;
    flex: 1;
}

.project-links {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

/* ====== Tech tags ====== */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ====== Contact ====== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    color: var(--text-dark);
    display: block;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    color: var(--primary);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.contact-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.contact-card p {
    color: var(--text-muted-dark);
    margin: 0;
    font-size: 0.9rem;
    word-break: break-word;
}

/* ====== Footer ====== */
.portfolio-footer {
    background: var(--bg-darker);
    color: var(--text-muted-light);
    padding: 2rem 0;
}

.portfolio-footer a {
    color: var(--primary-light);
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero-section {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        margin-right: 0 !important;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -1.5rem;
    }
}

/* Freelance availability + services */
.hero-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(40, 167, 69, 0.15);
    color: #5dd879;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(93, 216, 121, 0.4);
}

.availability-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #5dd879;
    box-shadow: 0 0 0 0 rgba(93, 216, 121, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(93, 216, 121, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(93, 216, 121, 0); }
    100% { box-shadow: 0 0 0 0 rgba(93, 216, 121, 0); }
}

.freelance-services {
    padding: 1.25rem 1.5rem;
    background: rgba(13, 110, 253, 0.05);
    border-left: 4px solid var(--bs-primary, #0d6efd);
    border-radius: 0.5rem;
}

.freelance-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.freelance-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.freelance-list li {
    padding: 0.35rem 0;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.freelance-list i {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Freelance packages */
.package-intro {
    font-size: 1.05rem;
    color: var(--bs-secondary, #6c757d);
}

.package-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.package-featured {
    border: 2px solid var(--bs-primary, #0d6efd);
    box-shadow: 0 6px 22px rgba(13, 110, 253, 0.15);
}

.package-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.package-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.package-price {
    margin-bottom: 0.75rem;
}

.package-price-amount {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--bs-primary, #0d6efd);
}

.package-price-note {
    display: block;
    font-size: 0.8rem;
    color: var(--bs-secondary, #6c757d);
    margin-top: 0.15rem;
}

.package-tagline {
    font-size: 0.95rem;
    color: var(--bs-secondary, #6c757d);
    min-height: 2.5em;
    margin-bottom: 0.5rem;
}

.package-timeline {
    font-size: 0.85rem;
    color: var(--bs-secondary, #6c757d);
    margin-bottom: 0.75rem;
}

.package-includes {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.package-includes li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    line-height: 1.4;
}

.package-includes i {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.package-footnote {
    font-size: 0.9rem;
    color: var(--bs-secondary, #6c757d);
}
