/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #030712;
    color: #f1f5f9;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────── */
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.font-sans  { font-family: 'Inter', system-ui, sans-serif; }

/* ── Colors ─────────────────────────────────────────────────── */
.text-white      { color: #ffffff; }
.text-gray-100   { color: #f1f5f9; }
.text-gray-300   { color: #cbd5e1; }
.text-gray-400   { color: #94a3b8; }
.text-gray-500   { color: #64748b; }
.text-gray-700   { color: #334155; }
.text-blue-300   { color: #93c5fd; }
.text-blue-400   { color: #60a5fa; }
.text-green-400  { color: #4ade80; }

.bg-gray-800  { background-color: #1e293b; }
.bg-gray-900  { background-color: #0f172a; }
.bg-gray-950  { background-color: #030712; }

/* ── Layout ─────────────────────────────────────────────────── */
.max-w-7xl    { max-width: 80rem; }
.max-w-2xl    { max-width: 42rem; }
.mx-auto      { margin-left: auto; margin-right: auto; }
.px-4         { padding-left: 1rem; padding-right: 1rem; }
.py-32        { padding-top: 8rem; padding-bottom: 8rem; }
.py-8         { padding-top: 2rem; padding-bottom: 2rem; }

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-1       { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap    { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.grid             { display: grid; }
.col-span-2       { grid-column: span 2; }

.relative  { position: relative; }
.absolute  { position: absolute; }
.fixed     { position: fixed; }
.inset-0   { top: 0; right: 0; bottom: 0; left: 0; }
.z-10      { z-index: 10; }
.z-50      { z-index: 50; }

.hidden   { display: none; }
.block    { display: block; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.w-full   { width: 100%; }

.w-1\\.5  { width: 0.375rem; }
.h-1\\.5  { height: 0.375rem; }
.w-2  { width: 0.5rem; }
.h-2  { height: 0.5rem; }
.w-3  { width: 0.75rem; }
.h-3  { height: 0.75rem; }
.w-5  { width: 1.25rem; }
.h-5  { height: 1.25rem; }
.w-6  { width: 1.5rem; }
.h-6  { height: 1.5rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-px { width: 1px; }

.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }

.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold    { font-weight: 700; }

.leading-relaxed { line-height: 1.625; }
.leading-tight   { line-height: 1.25; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }

.p-4  { padding: 1rem; }
.p-6  { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.rounded      { border-radius: 0.25rem; }
.rounded-full { border-radius: 9999px; }
.rounded-lg   { border-radius: 0.5rem; }
.rounded-xl   { border-radius: 0.75rem; }
.rounded-2xl  { border-radius: 1rem; }

.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-4 { border-width: 4px; border-style: solid; }
.border-t { border-top: 1px solid; }
.border-gray-800 { border-color: #1e293b; }

.overflow-hidden { overflow: hidden; }
.resize-none { resize: none; }
.transition-all   { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.duration-300 { transition-duration: 300ms; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.opacity-5  { opacity: 0.05; }
.antialiased { -webkit-font-smoothing: antialiased; }
.scroll-smooth { scroll-behavior: smooth; }

/* ── Backgrounds ─────────────────────────────────────────────── */
.bg-grid-pattern {
    background-image: linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.blur-2xl  { filter: blur(40px); }
.blur-3xl  { filter: blur(64px); }
.scale-110 { transform: scale(1.1); }

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

#navbar.scrolled {
    background-color: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(12px);
    border-bottom-color: #1e293b;
}

.nav-link {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover { color: #ffffff; }

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    color: #94a3b8;
    font-size: 0.875rem;
    text-decoration: none;
    border-bottom: 1px solid #1e293b;
    transition: color 0.2s;
}
.mobile-nav-link:hover { color: #ffffff; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    text-decoration: none;
    border: 1px solid #334155;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    border-color: #3b82f6;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.05);
}

/* ── Tags ────────────────────────────────────────────────────── */
.tag-tech {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag-skill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(30, 41, 59, 0.8);
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    font-size: 0.8rem;
}

/* ── Sections ────────────────────────────────────────────────── */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-header {
    text-align: center;
}

.section-label {
    display: inline-block;
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

/* ── Cards ────────────────────────────────────────────────────── */
.skill-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.project-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.2s;
}
.project-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

.cert-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}
.cert-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s;
}
.contact-info-card:hover { border-color: rgba(59, 130, 246, 0.4); }

/* ── Form ────────────────────────────────────────────────────── */
.form-input {
    width: 100%;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
    color: #f1f5f9;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ── Hero ────────────────────────────────────────────────────── */
.min-h-screen { min-height: 100vh; }
.min-h-screen > * { z-index: 1; }

/* Photo sizes */
.w-64 { width: 16rem; }
.h-64 { height: 16rem; }
.object-cover { object-fit: cover; }

/* Gradient backgrounds */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-blue-600  { --tw-gradient-from: #2563eb; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-violet-700  { --tw-gradient-to: #6d28d9; }

/* ── Timeline ────────────────────────────────────────────────── */
.top-0    { top: 0; }
.bottom-0 { bottom: 0; }
.left-4   { left: 1rem; }

/* bg colors for timeline elements */
.bg-blue-500 { background-color: #3b82f6; }
.bg-green-400 { background-color: #4ade80; }
.border-blue-500 { border-color: #3b82f6; }
.border-green-400 { border-color: #4ade80; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.animate-pulse  { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-bounce { animation: bounce 1.5s ease-in-out infinite; }

/* ── Alert / Success ─────────────────────────────────────────── */
.bg-green-500\/10 { background-color: rgba(34, 197, 94, 0.1); }
.border-green-500\/30 { border-color: rgba(34, 197, 94, 0.3); }
.text-green-400 { color: #4ade80; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:text-2xl  { font-size: 1.5rem; }
    .sm\:text-5xl  { font-size: 3rem; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .md\:flex-row          { flex-direction: row; }
    .md\:flex-row-reverse  { flex-direction: row-reverse; }
    .md\:block     { display: block; }
    .md\:hidden    { display: none; }
    .md\:left-1\/2 { left: 50%; }
    .md\:ml-0      { margin-left: 0; }
    .md\:pl-12     { padding-left: 3rem; }
    .md\:pr-12     { padding-right: 3rem; }
    .md\:mt-8      { margin-top: 2rem; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .w-80 { width: 20rem; }
    .h-80 { height: 20rem; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:flex-row  { flex-direction: row; }
    .lg\:text-left { text-align: left; }
    .lg\:justify-start { justify-content: flex-start; }
    .lg\:text-6xl  { font-size: 3.75rem; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:w-80 { width: 20rem; }
    .lg\:h-80 { height: 20rem; }
    .lg\:text-5xl { font-size: 3rem; }
    .lg\:text-8xl { font-size: 6rem; }
    .lg\:pr-12 { padding-right: 3rem; }
}

/* ── Utility overrides ───────────────────────────────────────── */
a { text-decoration: none; }
svg { display: block; }
img { max-width: 100%; height: auto; }

/* bg-gray-900/50 */
.bg-gray-900\/50 { background-color: rgba(15, 23, 42, 0.5); }

/* border-blue-500/50 */
.border-blue-500\/50 { border-color: rgba(59, 130, 246, 0.5); }
.border-blue-500\/30 { border-color: rgba(59, 130, 246, 0.3); }
.border-green-500\/30 { border-color: rgba(34, 197, 94, 0.3); }
.border-green-500\/50 { border-color: rgba(34, 197, 94, 0.5); }

/* bg-blue-500/... */
.bg-blue-500\/5  { background-color: rgba(59, 130, 246, 0.05); }
.bg-blue-500\/10 { background-color: rgba(59, 130, 246, 0.1); }
.bg-blue-500\/20 { background-color: rgba(59, 130, 246, 0.2); }
.bg-blue-500\/30 { background-color: rgba(59, 130, 246, 0.3); }

/* shadow */
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
.shadow-lg  { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3); }

/* green glow */
.shadow-green-400\/50 { box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }

/* translate */
.-translate-x-1\/2 { transform: translateX(-50%); }

/* Gradient line for timeline */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, #3b82f6, rgba(59, 130, 246, 0.3), transparent);
}

/* ml-12 */
.ml-12 { margin-left: 3rem; }

/* mt-6 for timeline */
.mt-6 { margin-top: 1.5rem; }

/* bottom-8 */
.bottom-8 { bottom: 2rem; }
.-translate-y-0 { transform: translateY(0); }
.left-1\/2 { left: 50%; }

/* top-1/4 / bottom-1/4 for orbs */
.top-1\/4    { top: 25%; }
.bottom-1\/4 { bottom: 25%; }
.-left-20  { left: -5rem; }
.-right-20 { right: -5rem; }
.w-96 { width: 24rem; }
.h-96 { height: 24rem; }

/* Group hover  */
.group:hover .group-hover\:bg-blue-500\/20 { background-color: rgba(59, 130, 246, 0.2); }

/* bg-green-400/10 */
.bg-green-400\/10 { background-color: rgba(74, 222, 128, 0.1); }
.border-green-400\/30 { border-color: rgba(74, 222, 128, 0.3); }

/* text-blue-300 */
.text-blue-300 { color: #93c5fd; }

/* border-blue */
.border-blue-500 { border-color: #3b82f6; }

.w-1\5 { width: 0.375rem; height: 0.375rem; }

/* Violet orb */
.bg-blue-600\/20  { background-color: rgba(37, 99, 235, 0.2); }
.bg-violet-600\/15 { background-color: rgba(124, 58, 237, 0.15); }

/* pill border radius */
.border-radius-full { border-radius: 9999px; }
.rounded-full { border-radius: 9999px; }

/* Letter spacing */
.tracking-wide { letter-spacing: 0.05em; }
