/* ==========================================================================
   YUDHA ARI PRASETYO - MODERN DEVELOPER & SYSTEM ANALYST PORTFOLIO
   Aesthetic: Ultra Dark, Clean Typography, Pill Nav, Modern Tech Grid
   Responsive Design: Mobile-First & Adaptive across All Screen Resolutions
   ========================================================================== */

:root {
    --bg-black: #000000;
    --bg-dark: #09090b;
    --bg-card: #121215;
    --bg-card-hover: #18181d;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.25);

    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dark: #64748b;

    --accent-blue: #38bdf8;
    --accent-blue-glow: rgba(56, 189, 248, 0.2);
    --accent-purple: #a855f7;
    --accent-amber: #f59e0b;
    --accent-emerald: #10b981;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-black);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: inherit;
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 860px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.85rem, 4.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: clamp(0.925rem, 2vw, 1.05rem);
    max-width: 650px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Floating Pill Header Navigation */
.header-wrapper {
    position: fixed;
    top: 1.25rem;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    pointer-events: none;
}

.floating-nav {
    pointer-events: auto;
    background: rgba(10, 10, 12, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.45rem 0.6rem 0.45rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 900px;
    transition: all 0.3s ease;
}

.nav-brand-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand-icon {
    color: var(--accent-blue);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
}

.nav-links-pill {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.pill-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.pill-link:hover, .pill-link.active {
    color: #fff;
}

.nav-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pill-btn-cta {
    background: #ffffff;
    color: #000000;
    font-weight: 700;
    font-size: 0.825rem;
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pill-btn-cta:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.mobile-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: #fff;
    font-size: 1.15rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-blue);
}

/* Mobile Dropdown Backdrop & Menu */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.open {
    display: block;
    opacity: 1;
}

.mobile-menu-dropdown {
    position: fixed;
    top: 4.85rem;
    left: 1rem;
    right: 1rem;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    z-index: 999;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
}

.mobile-menu-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mobile-menu-dropdown .pill-link {
    font-size: 1rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-dropdown .pill-link i {
    color: var(--accent-blue);
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
}

.mobile-menu-dropdown .pill-link:hover,
.mobile-menu-dropdown .pill-link.active {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: #fff;
}

/* Hero Section */
.hero-section {
    min-height: 88vh;
    padding: 130px 0 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid-modern {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3.5rem;
    align-items: center;
}

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

.hero-photo-card {
    position: relative;
    width: 320px;
    max-width: 100%;
    border-radius: 28px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(56, 189, 248, 0.2);
    transition: all 0.4s ease;
}

.hero-photo-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(56, 189, 248, 0.35);
    border-color: rgba(56, 189, 248, 0.5);
}

.photo-glow-effect {
    position: absolute;
    inset: -10px;
    border-radius: 36px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, rgba(168, 85, 247, 0.2) 50%, transparent 70%);
    z-index: -1;
    filter: blur(20px);
    opacity: 0.8;
}

.hero-profile-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 20px;
    display: block;
}

.hero-sub {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.hero-main-title {
    font-size: clamp(2.1rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-main-title .gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn-hero-talk {
    background: #ffffff;
    color: #000000;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
    min-height: 44px;
    white-space: nowrap;
}

.btn-hero-talk:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.btn-hero-cv {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 44px;
    white-space: nowrap;
}

.btn-hero-cv:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.45rem 1rem !important;
    font-size: 0.825rem !important;
    min-height: 36px !important;
}

.hero-social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.social-circle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-bottom-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.location-badge {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
}

.status-indicator {
    color: var(--accent-emerald);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-emerald);
    flex-shrink: 0;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

.card-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.card-dark:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.about-intro-p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.about-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.about-stat-box strong {
    display: block;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-family: var(--font-heading);
    color: #fff;
}

.about-stat-box span {
    font-size: 0.75rem;
    color: var(--text-dark);
}

/* Skills & Devicons Matrix */
.devicons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.devicon-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.25s ease;
    text-align: center;
}

.devicon-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    transform: translateY(-3px);
}

.devicon-item img {
    width: 28px;
    height: 28px;
}

.devicon-item span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.2;
}

/* Github Contribution Card */
.github-contributions-card {
    grid-column: 1 / -1;
    text-align: center;
    overflow: hidden;
}

.github-chart-container {
    background: #000;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.github-chart-container::-webkit-scrollbar {
    height: 6px;
}

.github-chart-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.github-scroll-hint {
    display: none;
    font-size: 0.75rem;
    color: var(--accent-blue);
    margin-top: 0.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* Experience Tabs & Cards */
.exp-tab-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 0.35rem;
    border-radius: var(--radius-full);
    width: fit-content;
    max-width: 100%;
}

.exp-tab-btn {
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-align: center;
}

.exp-tab-btn:hover {
    color: #fff;
}

.exp-tab-btn.active {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.exp-tab-content {
    display: none;
}

.exp-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.exp-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exp-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.exp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.exp-role-title {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.exp-company-title {
    font-size: 0.95rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.exp-meta-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.exp-period-pill {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.775rem;
    font-weight: 600;
    white-space: nowrap;
}

.exp-location-tag {
    font-size: 0.775rem;
    color: var(--text-dark);
}

.exp-points-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.exp-points-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.exp-points-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-size: 1.1rem;
    line-height: 1;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.75rem;
}

.project-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.project-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    border-bottom: 1px solid var(--border-subtle);
}

.project-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.project-img-wrapper:hover .project-preview-image {
    transform: scale(1.05);
}

.project-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.project-img-wrapper:hover .project-img-overlay {
    opacity: 1;
}

.project-overlay-text {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.825rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
}

.project-header-strip {
    padding: 1.5rem 1.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-type-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.project-year-pill {
    font-size: 0.775rem;
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap;
}

.project-body {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
}

.project-name {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.project-sub {
    font-size: 0.85rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-desc-short {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.project-design-preview {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.design-preview-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.design-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.project-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.tech-pill {
    font-size: 0.725rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.project-footer {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Certificates Grid */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cert-card:hover {
    border-color: var(--accent-blue);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.cert-tag {
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--accent-emerald);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.cert-title {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cert-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-container-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.contact-tile:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.contact-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.contact-tile-text {
    overflow: hidden;
}

.contact-tile-label {
    font-size: 0.75rem;
    color: var(--text-dark);
    text-transform: uppercase;
    font-weight: 700;
}

.contact-tile-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    overflow-wrap: break-word;
    word-break: break-word;
}

.form-group-modern {
    margin-bottom: 1.15rem;
}

.form-input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    color: #fff;
    font-size: 16px; /* Prevents auto-zoom on iOS */
    transition: all 0.2s ease;
}

.form-input-modern:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

textarea.form-input-modern {
    min-height: 110px;
    resize: vertical;
}

/* Footer */
.modern-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-subtle);
    background: #000;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-bottom-row {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.825rem;
    color: var(--text-dark);
}

/* Modal Styling */
.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop-custom.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #0d0d11;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 820px;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.modal-backdrop-custom.active .modal-box {
    transform: scale(1);
}

.modal-header-custom {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    background: #0d0d11;
    z-index: 10;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.modal-body-custom {
    padding: 2rem;
}

.code-box {
    background: #000;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin: 1rem 0;
    overflow: hidden;
}

.code-header {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-dark);
}

.code-box pre {
    padding: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #e2e8f0;
    line-height: 1.55;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Medium Devices (Tablets, Small Laptops: <= 992px) */
@media (max-width: 992px) {
    .section {
        padding: 4rem 0;
    }

    .hero-section {
        padding: 110px 0 50px;
        min-height: auto;
    }

    .hero-grid-modern {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-avatar-wrapper {
        order: -1;
    }

    .hero-photo-card {
        width: 260px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-bottom-info {
        justify-content: center;
    }

    .about-grid, 
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .floating-nav {
        gap: 1rem;
        padding: 0.4rem 0.6rem 0.4rem 1rem;
    }

    .nav-links-pill {
        display: none;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .exp-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .exp-meta-badge {
        align-items: flex-start;
    }

    .github-scroll-hint {
        display: flex;
    }
}

/* Small Tablets & Large Mobiles (<= 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .card-dark {
        padding: 1.5rem;
    }

    .exp-card-item {
        padding: 1.5rem;
    }

    .contact-container-box {
        padding: 2rem 1.5rem;
    }

    .footer-top-row {
        flex-direction: column;
        gap: 2rem;
    }

    .modal-body-custom {
        padding: 1.5rem 1.25rem;
    }

    .exp-tab-wrapper {
        width: 100%;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

    .exp-tab-btn {
        flex: 1;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Mobile Phones (<= 600px) */
@media (max-width: 600px) {
    .header-wrapper {
        top: 0.75rem;
        padding: 0 0.75rem;
    }

    .floating-nav {
        padding: 0.35rem 0.5rem 0.35rem 0.9rem;
    }

    .nav-brand-pill {
        font-size: 0.95rem;
    }

    .mobile-menu-dropdown {
        top: 4.25rem;
        left: 0.75rem;
        right: 0.75rem;
        padding: 1rem 1.15rem;
    }

    .hero-section {
        padding: 95px 0 40px;
    }

    .hero-photo-card {
        width: 220px;
        border-radius: 24px;
    }

    .hero-profile-img {
        border-radius: 16px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-hero-talk,
    .btn-hero-cv {
        width: 100%;
    }

    .hero-social-links {
        justify-content: center;
        margin-top: 0.25rem;
    }

    .about-stats-strip {
        gap: 0.5rem;
    }

    .devicons-grid {
        grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
        gap: 0.6rem;
    }

    .devicon-item {
        padding: 0.6rem 0.3rem;
    }

    .devicon-item img {
        width: 24px;
        height: 24px;
    }

    .project-header-strip {
        padding: 1.25rem 1.25rem 0.5rem;
    }

    .project-body {
        padding: 0 1.25rem 1.25rem;
    }

    .project-footer {
        padding: 0.85rem 1.25rem;
    }

    .modal-backdrop-custom {
        padding: 0.75rem;
    }

    .modal-box {
        max-height: 90vh;
    }

    .modal-header-custom {
        padding: 1rem 1.25rem;
    }

    .modal-body-custom {
        padding: 1.25rem 1rem;
    }

    .contact-container-box {
        padding: 1.5rem 1.15rem;
    }

    .contact-tile {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
    .container {
        padding: 0 0.85rem;
    }

    .floating-nav {
        padding: 0.3rem 0.4rem 0.3rem 0.75rem;
    }

    .nav-brand-pill span:not(.brand-icon) {
        font-size: 0.875rem;
    }

    .nav-actions-wrapper .pill-btn-cta {
        display: none; /* Keep navbar clean on ultra-narrow 320px screens */
    }

    .hero-photo-card {
        width: 190px;
    }

    .about-stats-strip {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .exp-tab-wrapper {
        flex-direction: column;
        border-radius: var(--radius-md);
        gap: 0.35rem;
    }

    .exp-tab-btn {
        border-radius: var(--radius-sm);
    }
}
