/* ===========================================================
   Nur Syafa Irdina — Portfolio styles
   Cleaned: removed dead code (.skills-grid, .timeline, old
   .awards-grid). Added: skip-link, sr-only, fallback project
   image, form status, reduced-motion overrides.
   =========================================================== */

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

:root {
    --primary-bg: #0f0f1e;
    --secondary-bg: #1a1a2e;
    --card-bg: #16213e;
    --accent: #00d4ff;
    --accent-hover: #00b8e6;
    --accent-pink: #f5576c;
    --text-primary: #ffffff;
    --text-secondary: #b4b4c8;
    --text-dim: #a0a0b8;
    --border: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #080818;
    background-image: radial-gradient(rgba(130, 90, 220, 0.13) 1px, transparent 1px);
    background-size: 28px 28px;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Accessibility helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--accent);
    color: var(--primary-bg);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10001;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 1rem;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Animated background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--primary-bg);
}

.bg-gradient::before,
.bg-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.bg-gradient::before {
    width: 500px;
    height: 500px;
    background: #667eea;
    top: -250px;
    left: -250px;
}

.bg-gradient::after {
    width: 400px;
    height: 400px;
    background: #00d4ff;
    bottom: -200px;
    right: -200px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-100px, 100px) scale(0.9); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 30, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ───── About Layout ───── */
.about-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    min-height: 100vh;
    padding-top: 80px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 5rem;
}

/* Sidebar */
.about-sidebar {
    background: #1a1a2a;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: sticky;
    top: 100px;
}

.about-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.about-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto;
}

.about-avatar-img-wrap {
    width: 110px;
    height: 130px;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid rgba(124,58,237,0.35);
    box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.about-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.about-online-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #1a1a2a;
}

.about-sidebar-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.about-sidebar-role {
    display: inline-block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.3rem 0.9rem;
}

.about-sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 1.5rem 0;
}

.about-sidebar-contacts {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    text-align: left;
}

.about-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.about-contact-icon {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.about-contact-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.15rem;
}

.about-contact-value {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    word-break: break-all;
}

.about-sidebar-socials {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.about-social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.about-social-btn:hover {
    background: rgba(0,212,255,0.1);
    border-color: rgba(0,212,255,0.4);
    color: var(--accent);
}
.about-social-btn svg { display: block; }

.about-sidebar-resume-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(0,212,255,0.18));
    border: 1px solid rgba(167,139,250,0.35);
    border-radius: 10px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.about-sidebar-resume-btn:hover {
    background: linear-gradient(135deg, rgba(139,92,246,0.32), rgba(0,212,255,0.32));
    border-color: rgba(167,139,250,0.6);
    transform: translateY(-1px);
}

/* Main content */
.about-main {
    padding: 3rem 0 0;
}

.about-main-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.about-main-underline {
    width: 40px;
    height: 3px;
    background: #f59e0b;
    border-radius: 2px;
    margin-bottom: 1.75rem;
}

.about-main-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.97rem;
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.about-resume-link {
    color: #a78bfa;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.about-resume-link:hover {
    color: #c4b5fd;
}

.about-doing-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 2.5rem 0 1.25rem;
}

.about-doing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-doing-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #12121f;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 1.25rem 1.25rem;
    transition: border-color 0.25s;
}
.about-doing-card:hover { border-color: rgba(0,212,255,0.3); }

.about-doing-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-doing-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.about-doing-card p {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
}

.about-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.btn {
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary { background: var(--accent); color: var(--primary-bg); }
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }
    .about-sidebar { position: static; }
    .about-doing-grid { grid-template-columns: 1fr; }
    .about-main { padding-top: 1rem; }
}

/* ───── Section header ───── */
section { padding: 6rem 0; }

.section-header { text-align: center; margin-bottom: 4rem; }

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ───── Projects ───── */
.projects-grid { display: grid; gap: 2rem; }

.project-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: 280px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.project-image {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.project-card:nth-child(1) .project-image { background: var(--gradient-1); }
.project-card:nth-child(2) .project-image { background: var(--gradient-2); }
.project-card:nth-child(3) .project-image { background: var(--gradient-3); }
.project-card:nth-child(4) .project-image { background: var(--gradient-4); }
.project-card:nth-child(5) .project-image { background: var(--gradient-1); }

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.project-image-fallback {
    background: var(--gradient-1);
}
.project-fallback-emoji {
    font-size: 5rem;
    line-height: 1;
}

.project-content { padding: 2.5rem; }
.project-header  { margin-bottom: 1rem; }

.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.project-tag {
    padding: 0.35rem 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.view-project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 212, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}
.project-card:hover .view-project-badge { opacity: 1; }

/* ───── Certificates ───── */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
}
.certificate-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(0, 212, 255, 0.15);
}

.certificate-preview {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #0c0c1c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* changed from cover so certificates aren't cropped */
    transition: transform 0.3s;
    padding: 0.5rem;
}
.certificate-card:hover .cert-image { transform: scale(1.04); }

.certificate-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.certificate-card:hover .certificate-overlay,
.certificate-card:focus-within .certificate-overlay { opacity: 1; }

.view-cert-btn {
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: var(--primary-bg);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}
.view-cert-btn:hover { background: var(--accent-hover); transform: scale(1.05); }

.certificate-info { padding: 1.5rem; }
.certificate-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.cert-subtitle {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
.cert-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.cert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ───── Modal ───── */
.cert-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cert-modal-content {
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}
@keyframes zoomIn { from { transform: scale(0.85); } to { transform: scale(1); } }

.cert-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cert-modal-close:hover { background: var(--accent); color: var(--primary-bg); }

.cert-modal-caption {
    margin-top: 1rem;
    text-align: center;
    color: #ccc;
    font-size: 1rem;
    max-width: 80%;
}

/* ───── Awards (simple slideshow) ───── */
.awards-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.award-card-simple {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
}
.award-card-simple:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(0, 212, 255, 0.15);
}

.award-preview {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #0c0c1c;
}

.award-slideshow { position: relative; width: 100%; height: 100%; }

.award-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.award-image.active { display: block; }

.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 212, 255, 0.3);
    border: 2px solid var(--accent);
    color: white;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 6px;
    transition: all 0.3s;
    z-index: 10;
    font-family: inherit;
}
.slide-prev:hover, .slide-next:hover { background: var(--accent); color: var(--primary-bg); }
.slide-prev { left: 10px; }
.slide-next { right: 10px; }

.slide-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 0;
    padding: 0;
}
.dot:hover, .dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

.award-info { padding: 1.5rem; }
.award-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.award-event {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.award-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.award-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ───── Contact ───── */
.contact-section { padding: 6rem 0; }

.contact-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.contact-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Left column */
.contact-connect-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.contact-connect-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.contact-item-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s;
}
a.contact-item-row:hover { transform: translateX(5px); }

.contact-item-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b4fd8, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.contact-item-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.contact-item-value {
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    word-break: break-all;
}

/* Right column — form */
.contact-form-col { display: flex; flex-direction: column; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: #1c1c30;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.25s, background 0.25s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(99,102,241,0.6);
    background: #21213a;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0 1000px #1c1c30 inset;
    caret-color: var(--text-primary);
    transition: background-color 9999s ease-in-out 0s;
}
.form-group textarea { resize: vertical; min-height: 140px; }

.contact-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #db2777);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.25s, transform 0.2s;
}
.contact-submit-btn:hover { opacity: 0.88; transform: translateY(-2px); }

.form-status {
    margin-top: 1rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.2em;
}
.form-status-error   { color: var(--accent-pink); }
.form-status-success { color: #4ade80; }

/* ───── Footer ───── */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

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

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}
.social-link:hover {
    background: var(--accent);
    color: var(--primary-bg);
    transform: translateY(-3px);
}

/* ───── Skills Marquee ───── */
.skills-marquee-section {
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.skills-marquee-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 0 1rem;
}

.skills-marquee-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.75rem;
}

.skills-marquee-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.skills-marquee-highlight {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* fade edges */
.skills-marquee-section::before,
.skills-marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.skills-marquee-section::before {
    left: 0;
    background: linear-gradient(to right, #080818, transparent 100%);
}
.skills-marquee-section::after {
    right: 0;
    background: linear-gradient(to left, #080818, transparent 100%);
}

.marquee-row {
    overflow: hidden;
    margin-bottom: 1rem;
}

.marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
}

@keyframes marquee-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-left  { animation: marquee-left  28s linear infinite; }
.marquee-right { animation: marquee-right 28s linear infinite; }
.marquee-slow.marquee-left  { animation-duration: 38s; }
.marquee-slow.marquee-right { animation-duration: 38s; }

.marquee-row:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    transition: background 0.25s, border-color 0.25s;
    cursor: default;
}

.marquee-item:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.55);
}

.marquee-item i { font-size: 1.25rem; flex-shrink: 0; }
.marquee-item .marquee-emoji { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }

/* ───── Projects Work Scroll ───── */
.pw-section {
    padding-top: 6rem;
    padding-bottom: 0;
    overflow: hidden;
}

/* ── Horizontal Scroll Carousel ── */
.pw-wrapper {
    position: relative;
    margin-top: 3rem;
    overflow: hidden;
}

.pw-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.pw-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    padding: 3.5rem max(2rem, 6vw) 4rem;
    min-height: 460px;
    display: flex;
    align-items: center;
}

.pw-slide--featured { background: rgba(124, 58, 237, 0.04); }

.pw-num-bg {
    position: absolute;
    top: -0.15em;
    right: -0.04em;
    font-size: clamp(9rem, 22vw, 18rem);
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255,255,255,0.03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
}

.pw-slide-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.pw-slide--no-img .pw-slide-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.pw-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.pw-num-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.22);
    letter-spacing: 2px;
}

.pw-sep {
    color: rgba(255,255,255,0.12);
    font-size: 0.75rem;
    letter-spacing: -2px;
}

.pw-cat {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
}

.pw-live-dot {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #4ade80;
    text-transform: uppercase;
}

.pw-award-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.45);
    color: #c4b5fd;
}

.pw-title {
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.pw-desc {
    color: rgba(255,255,255,0.58);
    font-size: 0.98rem;
    line-height: 1.75;
    margin-bottom: 0.25rem;
}

.pw-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.75rem;
    padding: 0.65rem 1.4rem;
    background: #7c3aed;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
}
.pw-btn:hover { background: #6d28d9; transform: translateY(-2px); }
.pw-btn--live { background: #16a34a; }
.pw-btn--live:hover { background: #15803d !important; }

.pw-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0,0,0,0.5);
}
.pw-img-wrap img { width: 100%; display: block; }

.pw-icon-display {
    font-size: 7rem;
    opacity: 0.1;
    user-select: none;
    line-height: 1;
}

/* ── Tags (reused) ── */
.psc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.psc-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
}

/* ── Navigation ── */
.pw-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem max(2rem, 6vw) 3.5rem;
}

.pw-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pw-arrow:hover {
    border-color: #7c3aed;
    color: #fff;
    background: rgba(124,58,237,0.18);
}
.pw-arrow:disabled { opacity: 0.28; cursor: default; pointer-events: none; }

.pw-dots { display: flex; gap: 0.45rem; align-items: center; }

.pw-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    transition: width 0.3s, background 0.3s;
    padding: 0;
    flex-shrink: 0;
}
.pw-dot.active { background: #7c3aed; width: 26px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .pw-slide { padding: 2.5rem 1.5rem 3rem; min-height: auto; }
    .pw-slide-inner { grid-template-columns: 1fr; gap: 2rem; }
    .pw-img-wrap { order: -1; }
    .pw-slide--no-img .pw-slide-inner { grid-template-columns: 1fr; }
    .pw-icon-display { display: none; }
    .pw-num-bg { font-size: clamp(6rem, 30vw, 10rem); }
}

/* ───── Experience ───── */
.exp-section {
    padding: 6rem 0;
}

.exp-header { text-align: center; margin-bottom: 4rem; }

.exp-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.exp-subtitle { color: rgba(255,255,255,0.45); font-size: 1rem; }

.exp-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.exp-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 212, 255, 0.25);
    transform: translateX(-50%);
}

.exp-item {
    position: relative;
    display: flex;
    margin-bottom: 4rem;
    align-items: flex-start;
}
.exp-item.exp-left  { justify-content: flex-start; padding-right: calc(50% + 3rem); }
.exp-item.exp-right { justify-content: flex-end;   padding-left:  calc(50% + 3rem); }

.exp-dot {
    position: absolute;
    left: 50%;
    top: 1.5rem;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00d4ff;
    border: 3px solid #080818;
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.7);
    z-index: 2;
}

.exp-card {
    background: rgba(8, 8, 25, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.exp-card:hover {
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.08);
}

.exp-date {
    color: #00d4ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exp-company {
    font-size: 1.45rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
}

.exp-role { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin-bottom: 1rem; }

.exp-desc {
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.exp-list {
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    padding-left: 1.2rem;
    list-style: disc;
}
.exp-list li { margin-bottom: 0.35rem; }

.exp-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.exp-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    padding: 0.28rem 0.8rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    color: rgba(255,255,255,0.65);
}

/* ───── Fade-in animation ───── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ───── Responsive ───── */
@media (max-width: 968px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .project-card { grid-template-columns: 1fr; }
    .nav-links    { gap: 1.5rem; }
    .hero         { padding-top: 100px; }
    .awards-grid-simple { grid-template-columns: 1fr; }
    .exp-item.exp-left,
    .exp-item.exp-right {
        padding-left: 2.5rem;
        padding-right: 0;
        justify-content: flex-start;
    }
    .exp-line { left: 1rem; }
    .exp-dot  { left: 1rem; }
}

@media (max-width: 640px) {
    .container,
    .nav-container { padding: 0 1.5rem; }

    .nav-links { display: none; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }

    .hero-stats   { flex-direction: column; gap: 1rem; }
    .cta-buttons  { flex-direction: column; }
    .btn          { width: 100%; justify-content: center; }

    .slide-prev,
    .slide-next   { padding: 0.5rem 0.75rem; font-size: 1rem; }
    .slide-prev   { left: 5px; }
    .slide-next   { right: 5px; }

    .cert-modal-close { top: 10px; right: 10px; }
}

/* ───── Reduced motion ───── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .bg-gradient::before,
    .bg-gradient::after,
    .hero-label::before { animation: none !important; }
    .marquee-track { animation-play-state: paused !important; }
    .fade-in { opacity: 1; transform: none; }
}
