serti1/* =========================================
   VARIABLES & THEMING
========================================= */
:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.65);
    --bg-card-hover: rgba(31, 41, 55, 0.75);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(99, 102, 241, 0.35);

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-cyan: #22d3ee;

    --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --font-main: 'Plus Jakarta Sans', sans-serif;
}

html:not(.dark) {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(241, 245, 249, 0.9);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --border: rgba(15, 23, 42, 0.08);
    --border-accent: rgba(99, 102, 241, 0.4);

    --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

/* Selection & Scrollbar */
::selection {
    background: rgba(99, 102, 241, 0.35);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), #4338ca);
    border-radius: var(--radius-full);
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Utility Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 6rem 0;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: var(--border-accent);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typography & Section Titles */
.section-header {
    margin-bottom: 3.5rem;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: padding 0.3s ease, background 0.3s ease, border 0.3s ease;
}

.navbar.scrolled {
    padding: 0.85rem 0;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

html:not(.dark) .navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover {
    border-color: var(--border-accent);
    transform: scale(1.05);
}

.theme-toggle .fa-sun { display: none; }
html:not(.dark) .theme-toggle .fa-sun { display: block; color: #f59e0b; }
html:not(.dark) .theme-toggle .fa-moon { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border-accent);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-socials {
    display: flex;
    gap: 1.25rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Hero Image Card */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-card {
    position: relative;
    width: 320px;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
    filter: blur(30px);
    z-index: -1;
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3.5rem;
    align-items: center;
}

.about-image-card {
    padding: 0.75rem;
    border-radius: var(--radius-lg);
}

.about-image-card img {
    border-radius: var(--radius-md);
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.about-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.stat-card {
    padding: 1.25rem;
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-light);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =========================================
   SKILLS CAROUSEL SECTION
========================================= */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    width: 100%;
}

.skill-card {
    flex: 0 0 240px;
    padding: 1.75rem;
    text-align: center;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.skill-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
}

.carousel-btn:hover {
    background: var(--accent);
    color: #ffffff;
}

.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

/* =========================================
   PROJECTS SECTION
========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.08);
}

.project-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-light);
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* =========================================
   CERTIFICATES SECTION
========================================= */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.cert-card {
    cursor: pointer;
    overflow: hidden;
}

.cert-img-wrapper {
    height: 180px;
    overflow: hidden;
}

.cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cert-card:hover .cert-img-wrapper img {
    transform: scale(1.05);
}

.cert-body {
    padding: 1.25rem;
}

.cert-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cert-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--accent-light);
    font-weight: 600;
}

/* =========================================
   LEARNING JOURNEY TIMELINE
========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 2.5rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 2.5rem;
}

.timeline-dot {
    position: absolute;
    top: 15px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }

.timeline-content {
    padding: 1.5rem;
}

.timeline-year {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    padding: 3.5rem;
}

.contact-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-socials {
    display: flex;
    gap: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.25s ease;
}

html:not(.dark) .form-group input,
html:not(.dark) .form-group textarea {
    background: #f1f5f9;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
}

.form-status {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
}

.form-status.success { color: #10b981; }
.form-status.error { color: #ef4444; }

/* =========================================
   FOOTER
========================================= */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease;
}

.back-to-top:hover {
    background: var(--accent);
    color: #ffffff;
}

/* =========================================
   MODAL / LIGHTBOX
========================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    max-width: 700px;
    width: 100%;
    z-index: 10;
    padding: 1.5rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.8rem;
    background: none;
    color: var(--text-primary);
    cursor: pointer;
}

.modal-body img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.modal-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.modal-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 700;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
    .hero-container,
    .about-grid,
    .contact-card {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 3rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 12px !important;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .contact-card {
        padding: 2rem;
    }

    .carousel-btn {
        display: none;
    }
}