:root {
    --bg-color: #0d1117;
    --surface-color: #161b22;
    --border-color: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;

    --accent-color: #58a6ff;
    --accent-gradient: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
    --accent-glow: rgba(88, 166, 255, 0.4);

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

/* =====================
   Page Load Fade-In
   ===================== */
body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    animation: pageFadeIn 0.7s ease forwards;
}

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

/* =====================
   Scroll Progress Bar
   ===================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent-gradient);
    z-index: 9999;
    transition: width 0.08s linear;
    border-radius: 0 2px 2px 0;
}

/* =====================
   Background Blobs
   ===================== */
.blob {
    position: fixed;
    filter: blur(100px);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
}
.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(88, 166, 255, 0.15);
}
.blob-2 {
    top: 40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(163, 113, 247, 0.15);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* =====================
   Buttons
   ===================== */
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: var(--transition);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--text-secondary);
}

/* =====================
   Navbar
   ===================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    position: sticky;
    top: 0;
    background: rgba(13, 17, 23, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 16px;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo span {
    color: var(--accent-color);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 7px 12px;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
}
.nav-link.active {
    color: var(--accent-color);
    background: rgba(88, 166, 255, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.social-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.social-links > a:not(.btn-primary) {
    font-size: 22px;
    color: var(--text-secondary);
}
.social-links > a:not(.btn-primary):hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* =====================
   Main Layout
   ===================== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =====================
   Hero Section
   ===================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85vh;
    gap: 40px;
}
.hero-content {
    flex: 1;
}

/* Available Dot */
.badge-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.avail-dot {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    flex-shrink: 0;
    animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse {
    0%   { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.8); }
    70%  { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.badge {
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(88, 166, 255, 0.2);
    display: inline-block;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

/* Typewriter */
.typewriter-line {
    font-size: 22px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
    min-height: 34px;
    display: flex;
    align-items: center;
}
.tw-cursor {
    animation: blink 0.7s step-end infinite;
    color: var(--accent-color);
    font-weight: 200;
    margin-left: 1px;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.75;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(163, 113, 247, 0.2);
    border: 4px solid var(--surface-color);
    animation: morph 8s ease-in-out infinite;
    background: var(--surface-color);
}
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes morph {
    0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50%  { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* =====================
   Sections Global
   ===================== */
section {
    padding: 80px 0;
}
.section-heading {
    text-align: center;
    margin-bottom: 60px;
}
.section-heading h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
}
.section-heading p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* =====================
   Timeline
   ===================== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 40px;
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
}
.timeline-item.active {
    transform: translateY(0);
    opacity: 1;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-color);
    z-index: 2;
    transition: var(--transition);
}
.timeline-item:hover .timeline-icon {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 15px var(--accent-glow);
}
.timeline-item.pending .timeline-icon {
    color: var(--text-secondary);
    border-style: dashed;
}

.timeline-content {
    background: var(--surface-color);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.timeline-item:hover .timeline-content {
    border-color: rgba(88, 166, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.timeline-content h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.timeline-content .date {
    display: inline-block;
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 12px;
    font-weight: 600;
}
.timeline-content p {
    color: var(--text-secondary);
}

/* =====================
   Skills Grid
   ===================== */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.skill-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
    flex: 1 1 200px;
    max-width: 280px;
}
.skill-card.active {
    transform: translateY(0);
    opacity: 1;
}
.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(88, 166, 255, 0.3);
    background: rgba(22, 27, 34, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.skill-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
    transition: var(--transition);
}
.skill-card:hover img { transform: scale(1.1); }
.skill-card span {
    font-weight: 600;
    font-size: 16px;
}

/* =====================
   Experience Section
   ===================== */
.exp-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
}
.exp-card.active {
    transform: translateY(0);
    opacity: 1;
}
.exp-card:hover {
    border-color: rgba(88, 166, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.exp-header h3 {
    font-size: 22px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.exp-badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
}
.exp-company {
    color: var(--text-secondary);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.exp-company i { color: var(--accent-color); font-size: 13px; }
.exp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.exp-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
}
.exp-list li i {
    color: var(--accent-color);
    margin-top: 4px;
    flex-shrink: 0;
}

/* =====================
   Projects Section
   ===================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}
.project-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    transform: translateY(30px);
    opacity: 0;
}
.project-card.active {
    transform: translateY(0);
    opacity: 1;
}
.project-card:hover {
    border-color: rgba(88, 166, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: translateY(-6px);
}
.project-image {
    position: relative;
    overflow: hidden;
    height: 210px;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}
.project-card:hover .project-image img {
    transform: scale(1.05);
}
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.project-card:hover .project-overlay {
    opacity: 1;
}
.project-info {
    padding: 24px;
}
.project-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.project-info p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 18px;
}
.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
}

/* =====================
   Contact Section
   ===================== */
.contact-card {
    background: linear-gradient(145deg, var(--surface-color) 0%, rgba(22,27,34,0.4) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
}
.contact-card.active {
    transform: translateY(0);
    opacity: 1;
}
.contact-card > h2 { margin-bottom: 12px; }
.contact-card > p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 36px;
}
.contact-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: left;
    transition: var(--transition);
}
.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}
.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.contact-item span {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.contact-item strong { font-size: 15px; }

/* =====================
   Contact Form
   ===================== */
.contact-form {
    margin-top: 40px;
    text-align: left;
    border-top: 1px solid var(--border-color);
    padding-top: 36px;
}
.contact-form h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    background: rgba(88, 166, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-secondary); }
.form-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
}

/* =====================
   Footer
   ===================== */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

/* =====================
   Floating WhatsApp CTA
   ===================== */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1500;
    transition: var(--transition);
    animation: waPulse 2s infinite;
}
.floating-wa {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
}
.floating-wa:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.65);
    color: white;
    animation: none;
}
@keyframes waPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =====================
   TABLET  (max 900px)
   ===================== */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(13, 17, 23, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding: 12px 5%;
        gap: 4px;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-link { padding: 12px 16px; font-size: 16px; }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
        gap: 48px;
    }
    .hero h1 { font-size: 44px; }
    .badge-row { justify-content: center; }
    .hero-desc { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .typewriter-line { justify-content: center; }
    .image-wrapper { width: 280px; height: 280px; margin: 0 auto; }

    .section-heading h2 { font-size: 34px; }

    .contact-info { flex-direction: column; align-items: center; }
    .contact-card { padding: 40px 24px; }
    .contact-item { width: 100%; max-width: 420px; }

    .exp-card { padding: 28px 24px; }
    .exp-header { flex-direction: column; }

    .projects-grid { grid-template-columns: 1fr; max-width: 560px; }

    .form-row { grid-template-columns: 1fr; }
}

/* =====================
   MOBILE  (max 600px)
   ===================== */
@media (max-width: 600px) {
    nav { padding: 14px 5%; }
    .social-links { gap: 12px; }
    .social-links .btn-primary { display: none; }

    .hero h1 { font-size: 32px; }
    .hero-desc { font-size: 15px; }
    .typewriter-line { font-size: 18px; min-height: 28px; }
    .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
    .hero-actions a { width: 100%; max-width: 280px; justify-content: center; display: flex; }
    .image-wrapper { width: 220px; height: 220px; }

    .section-heading h2 { font-size: 26px; }
    .section-heading p { font-size: 15px; }

    .timeline::before { left: 20px; }
    .timeline-icon { width: 40px; height: 40px; font-size: 16px; }
    .timeline-item { padding-left: 55px; }
    .timeline-content { padding: 16px; }
    .timeline-content h3 { font-size: 17px; }

    .skills-grid { gap: 12px; }
    .skill-card { padding: 18px 10px; flex: 1 1 130px; }
    .skill-card img { width: 42px; height: 42px; }
    .skill-card span { font-size: 14px; }

    .exp-card { padding: 20px 16px; }
    .exp-header h3 { font-size: 18px; }
    .exp-list li { font-size: 14px; }

    .project-image { height: 170px; }
    .project-info { padding: 18px; }
    .project-info h3 { font-size: 18px; }

    .contact-card { padding: 28px 16px; }
    .contact-item { padding: 14px 16px; gap: 12px; }
    .icon-box { width: 40px; height: 40px; font-size: 17px; }

    footer { padding: 20px; font-size: 14px; }

    .floating-cta {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
}