/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary: #818cf8;
    --primary-glow: rgba(129, 140, 248, 0.4);
    --accent: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --bg-dark: #020617;
    --card-bg: rgba(30, 41, 59, 0.4);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-highlight: #e2e8f0;

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --container-max: 1100px;

    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base Reset ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(129, 140, 248, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.5) 0%, transparent 100%);
    background-attachment: fixed;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== Navigation ===== */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    z-index: 9999;
    width: 0%;
    box-shadow: 0 0 15px var(--primary-glow);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.navbar a:hover,
.navbar a.active {
    color: var(--text-main);
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary-glow);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.nav-icon-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-md);
    display: none;
    transition: var(--transition);
    position: relative;
    z-index: 1100;
}

.nav-icon-btn:hover {
    border-color: var(--primary);
    background: rgba(129, 140, 248, 0.1);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    pointer-events: none;
    transition:
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.4s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(10px);
}

.mobile-menu.open a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* ===== Hero Section ===== */
.hero {
    padding: 2rem 0 5rem 0;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    background: var(--card-bg);
    padding: 4rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--card-border);
    margin-top: 5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.hero-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.name-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    display: block;
}

.hero-text h1 {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-text strong {
    color: var(--text-main);
    font-weight: 700;
}

.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.badge {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.badge:hover {
    background: rgba(129, 140, 248, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.hero-avatar-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid var(--card-border);
    object-fit: cover;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.hero-avatar:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.location-tag {
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

/* ===== Resume Card Component ===== */
.resume-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--primary);
    border-radius: 12px;
    padding: 12px 20px;
    max-width: 650px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 20px 0;
}

.resume-card:hover {
    background: rgba(129, 140, 248, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.resume-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.resume-icon {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
}

.resume-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.file-name {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.file-info {
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    opacity: 0.8;
    margin-top: 2px;
}

/* ===== Buttons ===== */
.cta-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(129, 140, 248, 0.3);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(129, 140, 248, 0.4);
}

.mini-btn {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

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

/* ===== Section Headings ===== */
section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* ===== Timeline Section ===== */
.timeline-container {
    position: relative;
    margin: 4rem 0;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--card-border);
    transform: translateX(-50%);
}

.timeline-filler {
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    width: 100%;
    height: 0;
    transition: height 0.1s linear;
    border-radius: 2px;
}

.timeline-item {
    width: 50%;
    padding: 0 40px;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    margin-bottom: 3rem;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    text-align: right;
    margin-right: 50%;
}

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

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.timeline-date {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.timeline-content h3 {
    margin: 0.75rem 0;
    font-size: 1.35rem;
}

/* ===== Bento Grid / Skills ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
}

.entry-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.entry-list {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.entry-list li {
    color: var(--text-highlight);
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

/* ===== Projects Section ===== */
.project-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid var(--card-border);
    padding: 4rem;
    border-radius: var(--radius-xl);
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary-glow);
    transform: scale(1.01);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.project-header h3 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, white, var(--text-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.project-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent);
    border: 1px solid var(--accent);
    white-space: nowrap;
}

.project-status.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: #22c55e;
}

/* Tech Stack Badges */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    transition: var(--transition);
}

.tech-flutter {
    background: rgba(10, 184, 255, 0.15);
    color: #0ab8ff;
    border-color: #0ab8ff;
}

.tech-flutter:hover {
    background: rgba(10, 184, 255, 0.25);
    transform: translateY(-2px);
}

.tech-gps {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: #ef4444;
}

.tech-gps:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}

.tech-qr {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent);
    border-color: var(--accent);
}

.tech-qr:hover {
    background: rgba(168, 85, 247, 0.25);
    transform: translateY(-2px);
}

.tech-react {
    background: rgba(61, 184, 255, 0.15);
    color: #3db8ff;
    border-color: #3db8ff;
}

.tech-react:hover {
    background: rgba(61, 184, 255, 0.25);
    transform: translateY(-2px);
}

.tech-js {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border-color: #eab308;
}

.tech-js:hover {
    background: rgba(234, 179, 8, 0.25);
    transform: translateY(-2px);
}

.tech-responsive {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: #22c55e;
}

.tech-responsive:hover {
    background: rgba(34, 197, 94, 0.25);
    transform: translateY(-2px);
}

.project-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 800px;
}

.project-card ul {
    list-style: none;
    margin-bottom: 2.5rem;
}

.project-card li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--text-highlight);
}

.project-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Project Meta & Links */
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gh-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.gh-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.gh-link.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #020617;
}

.gh-link.primary:hover {
    background: #7c3aed;
    border-color: #7c3aed;
}

/* ===== Skills Proficiency Section ===== */
#skills-advanced {
    margin: 6rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.skill-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.skill-item.show {
    opacity: 1;
    transform: translateY(0);
}

.skill-item:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.6);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.skill-name i {
    color: var(--primary);
    font-size: 1.3rem;
}

.skill-level {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    background: rgba(129, 140, 248, 0.1);
    color: var(--primary);
    border-radius: 100px;
    border: 1px solid var(--primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--card-border);
}

.skill-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px var(--primary-glow);
}

.skill-item:hover .skill-fill {
    box-shadow: 0 0 20px var(--primary-glow);
}

.skill-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ===== CTA & Let's Connect Section ===== */
.cta-section {
    margin: 8rem 0 0 0;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-top: 2px solid var(--card-border);
    border-bottom: 2px solid var(--card-border);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.cta-button {
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    font-size: 1rem;
}

.cta-button.primary-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 15px 35px rgba(129, 140, 248, 0.3);
}

.cta-button.primary-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(129, 140, 248, 0.4);
}

.cta-button.secondary-cta {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary);
    color: var(--text-main);
}

.cta-button.secondary-cta:hover {
    background: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(129, 140, 248, 0.3);
}

/* Quick Stats */
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== Certifications Grid ===== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    padding: 0;
    list-style: none;
}

.cert-item {
    list-style: none;
    display: flex;
}

.cert-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
}

.cert-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.provider-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(129, 140, 248, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.cert-card strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    line-height: 1.3;
}

.cert-card small {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.9rem;
    margin-top: auto;
}

/* ===== Footer ===== */
#main-footer {
    margin-top: 8rem;
    padding: 5rem 2rem;
    border-top: 1px solid var(--card-border);
    background: rgba(2, 6, 23, 0.5);
    text-align: center;
}

/* Floating Social Sidebar */
.social-sidebar {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    padding: 1.5rem 0.8rem;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.social-sidebar a {
    color: var(--text-muted);
    font-size: 1.4rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-sidebar a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* ===== Hero Annotations ===== */
.hero-title-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.name-annotation {
  position: absolute;
  top: -50px;
  right: -140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: rotate(-2deg);
  pointer-events: none;
  z-index: 5;
  animation: float 3s ease-in-out infinite;
}

.annotation-text {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  margin-left: 20px;
}

.annotation-arrow {
  margin-top: -5px;
  margin-left: 10px;
  filter: drop-shadow(0 0 2px rgba(129, 140, 248, 0.4));
}

@keyframes float {
  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }
  50% {
    transform: rotate(5deg) translateY(-3px);
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Reveal Animation Base */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.timeline-item.reveal-init {
    transition-duration: 1s;
}

.reveal-init.show {
    opacity: 1;
    transform: translateY(0);
}

/* Sequential Staggering */
.bento-grid .card:nth-child(2),
.certs-grid .cert-card:nth-child(2) {
    transition-delay: 0.1s;
}

.bento-grid .card:nth-child(3),
.certs-grid .cert-card:nth-child(3) {
    transition-delay: 0.2s;
}

/* ===== Media Queries ===== */
@media (max-width: 850px) {
  .hero-title-container {
    display: block;
    margin: 0 auto 1.5rem;
    width: fit-content;
  }

  .name-annotation {
    top: -60px;
    right: -100px;
    transform: scale(0.85) rotate(2deg);
  }
}

@media (max-width: 600px) {
  .name-annotation {
    right: -5px;
    top: -55px;
  }

  .annotation-text {
    font-size: 1.1rem;
  }
}

/* ===== Certifications Header ===== */
.page-header {
  padding: 5rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.cred-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  border: 1px solid var(--card-border);
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(129, 140, 248, 0.05);
  transition: var(--transition);
}

.cred-link:hover {
  border-color: var(--primary);
  background: rgba(129, 140, 248, 0.1);
}

.cred-link-icon {
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .social-sidebar {
        display: none;
    }
}

@media (max-width: 1000px) {
    .hero-inner {
        padding: 3rem;
        gap: 3rem;
    }

    .project-card {
        padding: 3rem;
    }
    
    .project-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 850px) {
    .nav-wrapper {
        justify-content: space-between;
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .nav-icon-btn {
        display: block;
    }

.hero-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 4rem 2rem;
        gap: 3rem;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .badge-group {
        justify-content: center;
    }

    .hero-avatar {
        width: 240px;
        height: 240px;
    }

    /* Timeline Adjustments */
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100% !important;
        margin: 0 0 3rem 0 !important;
        padding-left: 60px !important;
        text-align: left !important;
    }

    .project-card h3 {
        font-size: 1.75rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        justify-content: flex-start;
    }
    
    .cta-section {
        padding: 4rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .quick-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .resume-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .resume-left {
        width: 100%;
    }

    .resume-meta {
        white-space: nowrap;
        word-break: break-all;
    }

    .mini-btn {
        width: 100%;
        justify-content: center;
        padding: 12px !important;
    }
    
    .tech-stack {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tech-badge {
        width: 100%;
        justify-content: center;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cta-section {
        padding: 3rem 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .quick-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        width: 100%;
    }
}
