/* =============================================
   VIRENDRA BAGUL — PORTFOLIO STYLES
   Modern Dark Theme with Glassmorphism
   ============================================= */

/* ---- Import Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
    --bg-primary: #050816;
    --bg-secondary: #0d1117;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --accent: #7c3aed;
    --accent-light: #a855f7;
    --accent-glow: rgba(124, 58, 237, 0.4);
    --pink: #ec4899;
    --cyan: #06b6d4;
    --green: #10b981;
    --yellow: #f59e0b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(124, 58, 237, 0.5);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 0 40px rgba(124, 58, 237, 0.3);
    --font-main: 'Inter', sans-serif;
    --font-header: 'Space Grotesk', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: default;
}

a {
    text-decoration: none;
    color: inherit;
}

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

ul {
    list-style: none;
}

input,
textarea,
button {
    font-family: var(--font-main);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* =============================================
   PARTICLES CANVAS
   ============================================= */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* =============================================
   PRELOADER
   ============================================= */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-header);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--pink));
    border-radius: 3px;
    animation: loadingBar 1.5s ease forwards;
}

@keyframes loadingBar {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* =============================================
   SCROLL UP BUTTON
   ============================================= */
.scroll-up-btn {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.scroll-up-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-up-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 8, 22, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

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

.nav-logo {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent-light);
}

.nav-menu {
    display: flex;
    gap: 6px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-light);
    border-radius: 50%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.hamburger:hover {
    background: var(--bg-card);
}

.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;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   SHARED BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--pink));
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(124, 58, 237, 0.12);
    transform: translateY(-2px);
}

/* =============================================
   SECTION SHARED STYLES
   ============================================= */
section {
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 100px;
}

.section-title {
    font-family: var(--font-header);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.title-accent {
    background: linear-gradient(135deg, var(--accent-light), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   HOME SECTION
   ============================================= */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
}

.home::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.home::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.greeting {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 400;
}

.hero-name {
    font-family: var(--font-header);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.name-accent {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-text {
    color: var(--accent-light);
    font-weight: 600;
    min-width: 180px;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 14px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hero-socials {
    display: flex;
    gap: 12px;
}

.social-chip {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-chip:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--border-hover);
    color: var(--accent-light);
    transform: translateY(-3px);
}

/* Profile Image */
.home-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 360px;
    height: 360px;
}

.image-glow {
    position: absolute;
    inset: -20px;
    background: conic-gradient(from 0deg, var(--accent), var(--pink), var(--cyan), var(--accent));
    border-radius: 50%;
    animation: rotate 6s linear infinite;
    filter: blur(20px);
    opacity: 0.6;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    position: relative;
    z-index: 1;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.profile-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.floating-badge {
    position: absolute;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.floating-badge i {
    color: var(--accent-light);
}

.badge-1 {
    top: 10%;
    left: -30px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    left: -40px;
    animation-delay: 1s;
}

.badge-3 {
    top: 20%;
    right: -30px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 2s ease 1.5s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-light), transparent);
    animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        height: 0;
        opacity: 1;
    }

    100% {
        height: 40px;
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 70px;
    align-items: center;
}

.about-img-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1;
    max-width: 380px;
    border: 1px solid var(--border);
}

.about-img-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(5, 8, 22, 0.8));
    z-index: 1;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

.about-img-frame:hover .about-img {
    transform: scale(1.04);
}

.about-stats {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-top: 20px;
    overflow: hidden;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 18px 12px;
}

.stat-number {
    display: block;
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-light), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    background: var(--border);
    margin: 14px 0;
}

.about-heading {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.about-heading .typing-about {
    color: var(--accent-light);
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.9;
}

.about-text strong {
    color: var(--text-primary);
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 28px;
}

.tag {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: var(--accent-light);
    transition: var(--transition);
}

.tag:hover {
    background: rgba(124, 58, 237, 0.2);
}

/* =============================================
   EDUCATION SECTION (TIMELINE)
   ============================================= */
.education {
    background: var(--bg-primary);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--pink), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    padding-left: calc(50% + 40px);
}

.timeline-item.right {
    justify-content: flex-end;
    padding-left: 0;
    padding-right: calc(50% + 40px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 20px var(--accent-glow);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    max-width: 400px;
    width: 100%;
}

.timeline-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent);
}

.timeline-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-light);
    margin-bottom: 12px;
}

.timeline-card h3 {
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-card h4 {
    font-size: 0.9rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.timeline-img-wrap {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    max-height: 180px;
}

.timeline-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.4s ease;
}

.timeline-img:hover {
    transform: scale(1.04);
}

.timeline-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.timeline-chips span {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.chip-highlight {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: var(--green) !important;
    font-weight: 600 !important;
}

/* =============================================
   SKILLS SECTION
   ============================================= */
.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.skills-subtitle {
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.skill-bar-item {
    margin-bottom: 24px;
}

.skill-bar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-name {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 7px;
}

.skill-name i {
    color: var(--accent-light);
    width: 16px;
}

.skill-pct {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-light);
}

.skill-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--skill-color, var(--accent)), rgba(255, 255, 255, 0.4));
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(3px);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 12px;
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.tech-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-accent);
}

.tech-card i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.tech-card span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
.projects {
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-accent);
}

.project-card.featured {
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.05);
}

.project-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #111;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.2));
    font-size: 3rem;
    color: var(--accent-light);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 22, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateY(10px);
    transition: var(--transition);
}

.project-card:hover .project-link-btn {
    transform: translateY(0);
}

.project-link-btn:hover {
    transform: scale(1.05) !important;
}

.project-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.project-tags span {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: var(--accent-light);
}

.project-info h3 {
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 14px;
}

.featured-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--yellow);
    border-radius: 100px;
    margin-left: 6px;
}

/* TalentFlow "New" badge — cyan accent */
.talentflow-badge {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--cyan);
}

/* TalentFlow card — animated top border glow */
.talentflow-card {
    position: relative;
}

.talentflow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--accent-light), var(--pink));
    border-radius: var(--radius) var(--radius) 0 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.talentflow-card:hover::before {
    opacity: 1;
}

.project-github-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-light);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    transition: var(--transition);
}

.project-github-link:hover {
    color: var(--pink);
    gap: 10px;
}

/* =============================================
   CONTACT SECTION — PREMIUM REDESIGN
   ============================================= */
.contact {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Section subtitle */
.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Availability Banner */
.availability-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--green);
    font-weight: 500;
    margin: 0 auto 60px;
    display: flex;
    width: fit-content;
}

.avail-dot {
    width: 9px;
    height: 9px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: availPulse 1.8s ease infinite;
    flex-shrink: 0;
}

@keyframes availPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

/* Contact Intro */
.contact-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}

.contact-intro strong {
    color: var(--accent-light);
}

/* Contact Info Cards — Click to Copy */
.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.contact-item.copyable {
    cursor: pointer;
}

.contact-item.copyable:hover {
    border-color: var(--border-hover);
    background: rgba(124, 58, 237, 0.07);
    transform: translateX(4px);
}

.contact-item.copyable:hover .copy-hint {
    opacity: 1;
}

.contact-item.copied {
    border-color: var(--green);
    background: rgba(16, 185, 129, 0.07);
}

.copy-hint {
    margin-left: auto;
    opacity: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: opacity 0.25s;
    flex-shrink: 0;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.contact-detail {
    flex: 1;
    min-width: 0;
}

.contact-detail h4 {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 3px;
}

.contact-detail p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-detail p a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.contact-detail p a:hover {
    color: var(--accent-light);
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #128C7E, #25D366);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    margin: 20px 0;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn i:first-child {
    font-size: 1.3rem;
}

.whatsapp-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover .whatsapp-arrow {
    transform: translateX(4px);
}

/* Social Connect */
.contact-socials {
    margin-top: 24px;
}

.contact-socials h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-btn.linkedin:hover {
    background: rgba(10, 102, 194, 0.15);
    border-color: #0a66c2;
    color: #0a66c2;
    transform: translateY(-2px);
}

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

.social-btn.instagram:hover {
    background: rgba(228, 64, 95, 0.12);
    border-color: #e4405f;
    color: #e4405f;
    transform: translateY(-2px);
}

/* ---- Contact Form Wrap ---- */
.contact-form-wrap {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.contact-form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--pink), var(--cyan));
    border-radius: 20px 20px 0 0;
}

/* Form Header */
.form-header {
    margin-bottom: 28px;
}

.form-header h3 {
    font-family: var(--font-header);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-plane-icon {
    background: linear-gradient(135deg, var(--accent-light), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: planeFly 2s ease-in-out infinite alternate;
}

@keyframes planeFly {
    from {
        transform: translate(0, 0) rotate(-10deg);
    }

    to {
        transform: translate(4px, -4px) rotate(0deg);
    }
}

.form-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.label-icon {
    color: var(--accent-light);
    font-size: 0.72rem;
}

.required-star {
    color: var(--pink);
    margin-left: 2px;
}

/* Input Wrapper for status icon */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 44px 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.93rem;
    transition: var(--transition);
    outline: none;
    resize: none;
}

.input-wrapper textarea {
    padding-bottom: 36px;
    /* room for char counter */
    padding-right: 16px;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--accent-light);
    background: rgba(124, 58, 237, 0.05);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

/* Valid / Invalid visual states */
.form-group.valid .input-wrapper input,
.form-group.valid .input-wrapper textarea {
    border-color: var(--green);
}

.form-group.invalid .input-wrapper input,
.form-group.invalid .input-wrapper textarea {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

/* Input Status Icon */
.input-status-icon {
    position: absolute;
    right: 13px;
    font-size: 0.85rem;
    pointer-events: none;
    transition: opacity 0.2s;
}

.form-group.valid .input-status-icon::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--green);
}

.form-group.invalid .input-status-icon::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #f87171;
}

/* Char Counter */
.textarea-wrapper {
    align-items: flex-start;
}

.char-counter {
    position: absolute;
    bottom: 9px;
    right: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
}

.char-counter.warn {
    color: var(--yellow);
}

.char-counter.danger {
    color: #f87171;
}

/* Field Errors */
.field-error {
    display: block;
    font-size: 0.76rem;
    color: #f87171;
    margin-top: 5px;
    min-height: 16px;
    transition: opacity 0.2s;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1rem;
    border-radius: 12px;
    margin-top: 6px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.submit-btn:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* Form note */
.form-note {
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-note i {
    color: var(--green);
}

/* ---- Toast Notifications ---- */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff;
    min-width: 280px;
    max-width: 380px;
    pointer-events: auto;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.toast.toast-success {
    background: rgba(16, 185, 129, 0.92);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.toast.toast-error {
    background: rgba(239, 68, 68, 0.92);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.toast.toast-info {
    background: rgba(124, 58, 237, 0.92);
    border: 1px solid rgba(124, 58, 237, 0.4);
}

.toast.toast-copy {
    background: rgba(6, 182, 212, 0.92);
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-msg {
    flex: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0 0 12px 12px;
    animation: toastProgress 4s linear forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
        max-height: 100px;
    }

    to {
        opacity: 0;
        transform: translateX(60px);
        max-height: 0;
        padding: 0;
        margin: 0;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 60px 40px 30px;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-logo span {
    color: var(--accent-light);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--border-hover);
    color: var(--accent-light);
    transform: translateY(-3px);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.footer-nav a {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 100px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.footer-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 20px;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-copy a {
    color: var(--accent-light);
    transition: color 0.2s;
}

.footer-copy a:hover {
    color: var(--pink);
}

/* =============================================
   AOS ANIMATIONS OVERRIDES
   ============================================= */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
    .home-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-desc,
    .hero-role {
        justify-content: center;
    }

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

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

    .home-image {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap {
        max-width: 340px;
        margin: 0 auto;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 70px;
    }

    .timeline-item.right {
        padding-right: 0;
        padding-left: 70px;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }

    .timeline-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(5, 8, 22, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border);
        z-index: 999;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 12px 24px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .section-container {
        padding: 70px 24px;
    }

    .hero-name {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-form-wrap {
        padding: 24px;
    }
}

@media (max-width: 500px) {
    .section-container {
        padding: 60px 16px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .about-stats {
        flex-direction: column;
    }

    .stat-divider {
        height: 1px;
        width: 80%;
        margin: 0 auto;
    }
}