/* ==========================================================================
   SPACE LIGHT THEME - DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-primary: #f6f8fd;
    --bg-secondary: #ffffff;
    --bg-gradient: linear-gradient(135deg, #f5f7ff 0%, #edf1ff 40%, #fcf5ff 70%, #f5f8ff 100%);

    --text-primary: #191932;
    --text-secondary: #5a5d7c;
    --text-muted: #8e92bc;

    --accent: #6c5ce7;
    --accent-rgb: 108, 92, 231;
    --accent-cyan: #00cec9;
    --accent-cyan-rgb: 0, 206, 201;
    --accent-pink: #fd79a8;

    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-border-glow: rgba(108, 92, 231, 0.2);
    --glass-shadow: 0 10px 40px -10px rgba(108, 92, 231, 0.08);

    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

body.dark-theme {
    --bg-primary: #070714;
    --bg-secondary: #0c0c20;
    --bg-gradient: linear-gradient(135deg, #04040a 0%, #070718 50%, #0d0413 100%);

    --text-primary: #f2f3f9;
    --text-secondary: #a4a7c6;
    --text-muted: #6b6e8d;

    --glass-bg: rgba(12, 12, 32, 0.65);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-glow: rgba(108, 92, 231, 0.3);
    --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4);

    color-scheme: dark;
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Hide default focus ring but keep accessibility */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Custom Scrollbar for Website */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==========================================================================
   SPACE BACKGROUND & NEBULA
   ========================================================================== */

.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--bg-gradient);
    overflow: hidden;
}

/* Nebulae Blobs */
.nebula-1,
.nebula-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    mix-blend-mode: multiply;
    pointer-events: none;
    animation: nebulaFloat 20s infinite alternate ease-in-out;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.nebula-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.3) 0%, rgba(var(--accent-cyan-rgb), 0.1) 100%);
}

.nebula-2 {
    bottom: -10%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(253, 121, 168, 0.2) 0%, rgba(var(--accent-rgb), 0.15) 100%);
    animation-delay: -5s;
}

/* Stars Background */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, rgba(108, 92, 231, 0.4), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 206, 201, 0.4), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 90px 40px, rgba(108, 92, 231, 0.3), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 150px 120px, rgba(253, 121, 168, 0.4), rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 220px 60px, rgba(108, 92, 231, 0.4), rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 300px 300px;
    opacity: 0.6;
    animation: starsTwinkle 6s infinite ease-in-out;
    will-change: opacity;
    transform: translateZ(0);
}

/* ==========================================================================
   GLASSMORPHISM CARDS & BUTTONS
   ========================================================================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    will-change: transform, border-color, box-shadow;
}

.glass-card:hover {
    border-color: rgba(var(--accent-rgb), 0.25);
    box-shadow: 0 15px 45px -10px rgba(108, 92, 231, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    will-change: transform, box-shadow;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #5b4bc4 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(var(--accent-rgb), 0.4);
    color: var(--accent);
}

.btn-outline:hover {
    background: rgba(var(--accent-rgb), 0.05);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth), background-color 0.4s ease, border-color 0.4s ease;
    will-change: background-color, backdrop-filter, box-shadow;
}

.header.scrolled {
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
}

body.dark-theme .header {
    background: rgba(12, 12, 32, 0.4);
}

body.dark-theme .header.scrolled {
    background: var(--glass-bg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--accent);
    filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.5));
}

.logo span {
    color: var(--accent-cyan);
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

/* Nav Link Underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    padding: 120px 25px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    animation: pulse 1.5s infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.avatar-wrapper {
    position: relative;
    width: 440px;
    height: 440px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.profile-img {
    width: 380px;
    height: 380px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    object-fit: cover;
    object-position: center 40%;
    z-index: 5;
    border: 5px solid var(--bg-secondary);
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.15);
    animation: morphAvatar 8s ease-in-out infinite alternate;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

body.dark-theme .profile-img {
    border-color: var(--bg-secondary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 390px;
    height: 390px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.45) 0%, rgba(var(--accent-cyan-rgb), 0.25) 70%, transparent 100%);
    filter: blur(20px);
    z-index: 1;
    animation: morphAvatar 8s ease-in-out infinite alternate;
    animation-delay: -2s;
}

/* Planetary Orbits */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px dashed rgba(var(--accent-rgb), 0.25);
    animation: spin 30s infinite linear;
}

.orbit-1 {
    width: 420px;
    height: 420px;
    border-radius: 40% 60% 65% 35% / 40% 45% 55% 60%;
    border-color: rgba(var(--accent-rgb), 0.25);
    animation-duration: 20s;
}

.orbit-1::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.orbit-2 {
    width: 460px;
    height: 460px;
    border-radius: 65% 35% 45% 55% / 40% 60% 65% 35%;
    border-color: rgba(var(--accent-cyan-rgb), 0.20);
    animation-duration: 35s;
    animation-direction: reverse;
}

.orbit-2::before {
    content: '';
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.scroll-arrow {
    font-size: 1rem;
    color: var(--accent);
    animation: bounce 2s infinite;
}

/* ==========================================================================
   COMMON SECTION STYLES
   ========================================================================== */

.scroll-section {
    padding: 100px 25px;
    min-height: auto;
    overflow: hidden;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.about-text-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 25px;
    opacity: 0.8;
}

.about-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 25px;
}

.detail-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.detail-item h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.detail-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Highlight Stats Card */
.about-highlight-card {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05) 0%, rgba(0, 206, 201, 0.05) 100%);
    border-color: rgba(var(--accent-rgb), 0.15);
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.skills-chart-container {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skills-chart-container h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.chart-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

.skills-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skills-category {
    padding: 25px;
}

.skills-category h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-accent {
    color: var(--accent);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(108, 92, 231, 0.15);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

/* Horizontally Scrollable Project List */
.portfolio-scroll-wrapper {
    position: relative;
    width: 100%;
}

.portfolio-scroll-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 92, 231, 0.2) transparent;
    -webkit-overflow-scrolling: touch;
}

.portfolio-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.portfolio-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.2);
    border-radius: 10px;
}

.portfolio-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Project Cards */
.project-card {
    position: relative;
    flex: 0 0 360px;
    display: flex;
    flex-direction: column;
    height: 480px;
    background: var(--glass-bg);
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--border-radius-md);
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg) translateY(0);
    transition:
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        background-color 0.4s ease,
        opacity 0.4s ease,
        flex-basis 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        margin 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, border-color, box-shadow;
}

.project-card:hover {
    transition: transform 0.1s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    border-color: var(--accent);
    box-shadow: 0 25px 50px -10px rgba(108, 92, 231, 0.22);
}

body.dark-theme .project-card:hover {
    box-shadow: 0 25px 50px -10px rgba(108, 92, 231, 0.45);
}

/* Mouse-Tracking Spotlight Overlay */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(var(--accent-rgb), 0.06),
            transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover::after {
    opacity: 1;
}

body.dark-theme .project-card::after {
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(var(--accent-cyan-rgb), 0.12),
            transparent 40%);
}

.screenshot-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 15, 30, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #e2e8f0;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 25, 50, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.btn-detail {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.project-card:hover .btn-detail {
    transform: scale(1);
}

.project-info {
    padding: 25px;
}

.project-tag-badge {
    display: inline-block;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    height: 54px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.project-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-card-tech span {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
}

/* Horizontal Scroll Navigation Buttons */
.scroll-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.scroll-nav-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.scroll-prev {
    left: -20px;
}

.scroll-next {
    right: -20px;
}

.swipe-hint {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 15px;
    text-align: center;
}

/* Hide cards that are filtered out */
.project-card.filtered-out {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    flex-basis: 0 !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-width: 0 !important;
}

/* ==========================================================================
   CERTIFICATES SECTION
   ========================================================================== */

.certificates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cert-card {
    padding: 20px;
    cursor: pointer;
    overflow: hidden;
}

.cert-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.414;
    /* Standard landscape certificate aspect ratio */
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.cert-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    will-change: transform;
}

.cert-card:hover .cert-img-container img {
    transform: scale(1.03);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 92, 231, 0.2);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.cert-card:hover .cert-overlay {
    opacity: 1;
}

.cert-overlay i {
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.cert-info {
    margin-top: 15px;
    text-align: center;
}

.cert-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.cert-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

.info-icon {
    font-size: 1.8rem;
    color: var(--accent);
    width: 50px;
    height: 50px;
    background: rgba(var(--accent-rgb), 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-details h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.interactive-card {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.interactive-card:hover {
    transform: translateX(6px);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 6px;
    text-transform: uppercase;
}

/* Contact Message Form */
.contact-form-container {
    padding: 40px;
}

.contact-form-container h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 18px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
    outline: none;
}

.btn-submit {
    width: 100%;
    font-size: 1rem;
    padding: 14px;
}

.form-status {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    display: none;
}

.form-status.success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
    display: block;
}

.form-status.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
    display: block;
}

/* Social Connect section */
.social-connect {
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 40px;
}

.social-connect h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 25px;
}

.social-links-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.linkedin-btn {
    background: #0077b5;
}

.linkedin-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.35);
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-btn:hover {
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.35);
}

.whatsapp-btn {
    background: #25d366;
}

.whatsapp-btn:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: rgba(25, 25, 50, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding: 40px 25px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-sub {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
}

/* ==========================================================================
   INTERACTIVE PORTFOLIO DETAILS MODAL
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 30, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
    z-index: 10;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 20;
}

.modal-close:hover {
    background: var(--accent);
    color: #ffffff;
}

.modal-body {
    padding: 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

/* Project Carousel Slider */
.project-carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.5;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: #edf2f7;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.carousel-track-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #191932;
    /* Black/Dark backing for slides to look professional */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #191932;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--accent);
    color: #ffffff;
}

.c-prev {
    left: 15px;
}

.c-next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.carousel-dot.active {
    background: #ffffff;
    width: 16px;
    border-radius: 4px;
}

/* Modal Right Column Details */
.project-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 15px;
}

.project-detail-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 8px;
}

.project-detail-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: justify;
}

.project-features-block h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.features-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.features-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.features-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-size: 0.8rem;
}

.modal-footer-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* ==========================================================================
   CERTIFICATE LIGHTBOX
   ========================================================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 30, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 85vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-cyan);
    transform: rotate(90deg);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    color: #ffffff;
    margin-top: 15px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   SCROLL INTERACTION ANIMATIONS (ON SCROLL EVENT)
   ========================================================================== */

.animate-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.animate-play {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
    }
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

@keyframes nebulaFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(50px, 40px, 0) scale(1.1);
    }
}

@keyframes starsTwinkle {
    0%, 100% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.85;
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        order: 1;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .project-carousel-container {
        aspect-ratio: 1.4;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .header {
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
        gap: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-smooth);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .avatar-wrapper {
        width: 300px;
        height: 300px;
    }

    .profile-img {
        width: 240px;
        height: 240px;
    }

    .orbit-1 {
        width: 270px;
        height: 270px;
    }

    .orbit-2 {
        width: 295px;
        height: 295px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .profile-glow {
        width: 250px;
        height: 250px;
    }

    .scroll-section {
        padding: 60px 15px;
    }

    .about-text-card,
    .about-highlight-card,
    .skills-chart-container,
    .skills-3d-cloud-container,
    .skills-list-container,
    .github-card,
    .analytics-card,
    .contact-form-container,
    .cv-preview-card,
    .resume-info-card {
        padding: 20px !important;
        min-width: 0 !important;
    }

    .timeline-detail-card {
        padding: 20px 15px;
    }

    .project-card {
        flex: 0 0 290px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .scroll-nav-btn {
        display: none !important;
        /* Hide arrows on mobile and rely on swipe */
    }

    .swipe-hint {
        display: flex;
    }
}

@keyframes morphAvatar {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 45% 55% 60% 40% / 50% 60% 40% 50%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Action alignment for Theme Toggle & Mobile Toggle */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.2);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    background: var(--accent);
    color: #ffffff;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

body.dark-theme .theme-toggle {
    background: rgba(0, 206, 201, 0.08);
    border-color: rgba(0, 206, 201, 0.2);
    color: var(--accent-cyan);
}

body.dark-theme .theme-toggle:hover {
    background: var(--accent-cyan);
    color: #070714;
    box-shadow: 0 4px 12px rgba(0, 206, 201, 0.3);
}

/* Dark mode compatibility fixes for specific sections */
body.dark-theme .header .logo {
    color: #ffffff;
}

body.dark-theme .nav-link {
    color: #a4a7c6;
}

body.dark-theme .nav-link:hover,
body.dark-theme .nav-link.active {
    color: var(--accent-cyan);
}

body.dark-theme .nav-link::after {
    background: linear-gradient(90deg, var(--accent-cyan), #fd79a8);
}

body.dark-theme .nav-menu {
    background: rgba(12, 12, 32, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-theme .stat-number {
    color: var(--accent-cyan);
}

body.dark-theme .skill-tag {
    background: rgba(12, 12, 32, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
    color: #a4a7c6;
}

body.dark-theme .skill-tag:hover {
    background: var(--accent-cyan);
    color: #070714;
    border-color: var(--accent-cyan);
}

body.dark-theme .project-card-tech span {
    background: rgba(255, 255, 255, 0.04);
    color: #74779a;
}

body.dark-theme .modal-content {
    background: rgba(12, 12, 32, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .modal-close {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

body.dark-theme .modal-close:hover {
    background: var(--accent-cyan);
    color: #070714;
}

body.dark-theme .project-detail-title {
    color: #ffffff;
}

body.dark-theme .features-list li::before {
    color: var(--accent-cyan);
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
    background: rgba(12, 12, 32, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 206, 201, 0.15);
}

body.dark-theme .btn-submit {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #00cec9 100%);
    color: #070714;
    box-shadow: 0 4px 15px rgba(0, 206, 201, 0.2);
}

body.dark-theme .btn-submit:hover {
    box-shadow: 0 8px 25px rgba(0, 206, 201, 0.4);
}

@media (max-width: 768px) {
    body.dark-theme .nav-menu {
        background: rgba(12, 12, 32, 0.95);
    }
}

/* ==========================================================================
   11. TYPEWRITER EFFECT & ANIMATIONS
   ========================================================================== */

.typewriter-text {
    color: var(--accent);
    font-weight: 600;
}

body.dark-theme .typewriter-text {
    color: var(--accent-cyan);
}

.typewriter-cursor {
    color: var(--accent);
    font-weight: 400;
    animation: blinkCursor 0.8s infinite;
}

body.dark-theme .typewriter-cursor {
    color: var(--accent-cyan);
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ==========================================================================
   12. PROJECT DETAIL MODAL ACTION BUTTONS
   ========================================================================== */

.modal-actions-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 20px;
}

body.dark-theme .modal-actions-row {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.modal-actions-row .btn {
    padding: 10px 18px;
    font-size: 0.85rem;
    flex: 1;
    white-space: nowrap;
}

/* ==========================================================================
   13. RESUME / CV SECTION
   ========================================================================== */
.resume-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(var(--accent-rgb), 0.02) 50%, rgba(255, 255, 255, 0) 100%);
}

body.dark-theme .resume-section {
    background: linear-gradient(180deg, rgba(7, 7, 20, 0) 0%, rgba(var(--accent-cyan-rgb), 0.02) 50%, rgba(7, 7, 20, 0) 100%);
}

.resume-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 45px;
    align-items: center;
}

.cv-preview-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.cv-preview-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    aspect-ratio: 0.707;
    /* Standard A4 paper ratio */
    background: #ffffff;
    max-width: 100%;
    will-change: transform, border-color, box-shadow;
}

.cv-preview-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -10px rgba(var(--accent-rgb), 0.2);
}

body.dark-theme .cv-preview-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px -10px rgba(var(--accent-cyan-rgb), 0.4);
}

.cv-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
    display: block;
    will-change: transform;
}

.cv-preview-card:hover .cv-preview-img {
    transform: scale(1.04);
}

.cv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 25, 50, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: var(--transition-fast);
}

.cv-preview-card:hover .cv-overlay {
    opacity: 1;
}

.cv-overlay i {
    font-size: 2.2rem;
}

.resume-info-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resume-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.resume-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.resume-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.resume-actions .btn {
    padding: 12px 24px;
}

@media (max-width: 992px) {
    .resume-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cv-preview-card {
        max-width: 420px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   INTERACTIVE TIMELINE STYLES
   ========================================================================== */

.timeline-wrapper {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(108, 92, 231, 0.15);
}

.timeline-heading {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.timeline-heading i {
    color: var(--accent);
    filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.4));
}

.timeline-visual-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto 35px;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-cyan) 100%);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 50px;
    opacity: 0.3;
}

.timeline-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.node-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 4px solid var(--text-muted);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.timeline-node:hover .node-dot {
    transform: scale(1.2);
    border-color: var(--accent);
}

.timeline-node.active .node-dot {
    width: 24px;
    height: 24px;
    border-color: var(--accent);
    background: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(var(--accent-cyan-rgb), 0.8);
}

.node-year {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 10px;
    transition: var(--transition-fast);
}

.timeline-node.active .node-year {
    color: var(--accent);
    transform: scale(1.1);
}

.timeline-detail-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.timeline-detail-card.animating {
    opacity: 0;
    transform: translateY(10px);
}

.timeline-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.detail-year-badge {
    background: linear-gradient(135deg, var(--accent) 0%, #5b4bc4 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 4px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.2);
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.detail-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-techs span {
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
}

/* ==========================================================================
   GITHUB STATS & DATA ANALYTICS SECTION STYLES
   ========================================================================== */

.stats-section {
    position: relative;
    z-index: 5;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-top: 20px;
}

.github-card,
.analytics-card {
    padding: 35px;
    display: flex;
    flex-direction: column;
}

.github-card h3,
.analytics-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.github-card h3 i {
    color: var(--accent);
}

.analytics-card h3 i {
    color: var(--accent-cyan);
}

.github-loading {
    padding: 60px 0;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.gh-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
}

.gh-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.2);
}

.gh-info h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.gh-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.gh-btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
    border-radius: 30px;
}

.gh-stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.gh-stat-box {
    flex: 1;
    padding: 15px 10px;
    background: rgba(var(--accent-rgb), 0.04);
    border: 1px solid rgba(var(--accent-rgb), 0.08);
    border-radius: var(--border-radius-sm);
    text-align: center;
    transition: var(--transition-fast);
}

.gh-stat-box:hover {
    background: rgba(var(--accent-rgb), 0.08);
    transform: translateY(-2px);
}

.gh-stat-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1.1;
}

.gh-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.gh-repos-block h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.gh-repos-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gh-repos-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

body.dark-theme .gh-repos-list li {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.03);
}

.gh-repos-list li:hover {
    transform: translateX(4px);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.gh-repo-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gh-repo-link:hover {
    color: var(--accent);
}

.gh-repo-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.gh-repo-meta span i {
    margin-right: 3px;
}

.gh-repo-meta .lang-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Analytics Card Styles */
.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.analytics-header h3 {
    margin-bottom: 0;
}

.analytics-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-filter label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.analytics-filter select {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
}

.analytics-filter select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 206, 201, 0.1);
}

.mini-metrics-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.metric-box {
    flex: 1;
    padding: 15px 10px;
    background: rgba(var(--accent-cyan-rgb), 0.04);
    border: 1px solid rgba(var(--accent-cyan-rgb), 0.08);
    border-radius: var(--border-radius-sm);
    text-align: center;
    transition: var(--transition-smooth);
}

.metric-box:hover {
    transform: translateY(-2px);
    background: rgba(var(--accent-cyan-rgb), 0.08);
    box-shadow: 0 5px 15px -5px rgba(0, 206, 201, 0.15);
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--accent-cyan);
    display: block;
    line-height: 1.1;
    transition: var(--transition-fast);
}

.metric-lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.chart-wrapper-analytics {
    position: relative;
    width: 100%;
    height: 250px;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ASTROBOT VIRTUAL ASSISTANT (CHATBOT) STYLES
   ========================================================================== */

.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chatbot-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #5b4bc4 100%);
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.4);
    position: relative;
    transition: var(--transition-smooth);
}

.chatbot-trigger:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.6);
}

.chat-pulse-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: var(--accent-cyan);
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    height: 480px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) translateY(20px);
    transition:
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}

.chatbot-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(var(--accent-rgb), 0.05);
}

.bot-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar-wrapper {
    position: relative;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent) 0%, #5b4bc4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border: 1.5px solid var(--bg-secondary);
    border-radius: 50%;
}

.bot-info-header h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.bot-info-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.chatbot-close-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.chatbot-close-btn:hover {
    color: var(--accent-pink);
    transform: scale(1.1);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.4;
    animation: messageSlideIn 0.3s ease forwards;
}

.chat-message p {
    margin: 0;
}

.bot-msg {
    align-self: flex-start;
    background: rgba(var(--accent-rgb), 0.05);
    border: 1px solid rgba(var(--accent-rgb), 0.08);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

body.dark-theme .bot-msg {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.user-msg {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent) 0%, #5b4bc4 100%);
    color: #ffffff;
    border-bottom-right-radius: 2px;
    box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.15);
}

.chatbot-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 15px 20px;
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.2);
}

body.dark-theme .chatbot-quick-replies {
    background: rgba(0, 0, 0, 0.1);
}

.reply-chip {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.reply-chip:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* Typing Indicator Animation */
.typing-indicator {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 8px 14px;
    background: rgba(var(--accent-rgb), 0.05);
    border: 1px solid rgba(var(--accent-rgb), 0.08);
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    animation: messageSlideIn 0.3s ease forwards;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        bottom: 20px;
        right: 20px;
    }

    .chatbot-window {
        width: calc(100vw - 40px);
        height: 400px;
    }
}

/* ==========================================================================
   WHATSAPP FLOATING WIDGET STYLES
   ========================================================================== */

.wa-widget-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.wa-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    position: relative;
    transition: var(--transition-smooth);
}

.wa-trigger:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Wiggle shake animation for attention */
.wa-trigger.shake-animation {
    animation: waWiggle 1s ease-in-out;
}

.wa-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background-color: var(--accent-pink);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--bg-secondary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.wa-popup-box {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 320px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) translateY(20px);
    transition:
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom left;
}

.wa-popup-box.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.wa-popup-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #075E54;
    color: #ffffff;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.wa-popup-header i {
    font-size: 2rem;
    color: #25D366;
    filter: drop-shadow(0 0 4px rgba(37, 211, 102, 0.4));
}

.wa-popup-header h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.wa-popup-header p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.wa-popup-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wa-welcome-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.wa-quick-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-quick-msg {
    padding: 10px 14px;
    font-size: 0.78rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-align: left;
    background: rgba(37, 211, 102, 0.06);
    border: 1px solid rgba(37, 211, 102, 0.15);
    color: #075E54;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

body.dark-theme .wa-quick-msg {
    color: #25D366;
    background: rgba(37, 211, 102, 0.03);
    border-color: rgba(37, 211, 102, 0.1);
}

.wa-quick-msg:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
    transform: translateX(3px);
}

.wa-input-row {
    display: flex;
    gap: 8px;
}

.wa-input-row input {
    flex: 1;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
}

.wa-input-row input:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.wa-send-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: #128C7E;
    color: #ffffff;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.wa-send-btn:hover {
    background: #075E54;
    transform: scale(1.08);
}

@keyframes waWiggle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    15% {
        transform: scale(1.1) rotate(-15deg);
    }

    30% {
        transform: scale(1.1) rotate(10deg);
    }

    45% {
        transform: scale(1.1) rotate(-10deg);
    }

    60% {
        transform: scale(1.1) rotate(5deg);
    }

    75% {
        transform: scale(1.1) rotate(-5deg);
    }
}

@media (max-width: 480px) {
    .wa-widget-container {
        bottom: 20px;
        left: 20px;
    }

    .wa-popup-box {
        width: calc(100vw - 40px);
    }
}

.gmail-btn {
    background: #db4437;
}

.gmail-btn:hover {
    box-shadow: 0 8px 25px rgba(219, 68, 55, 0.35);
}

/* ==========================================================================
   COLOR ACCENT PICKER STYLES
   ========================================================================== */

.accent-picker-container {
    position: relative;
    display: inline-block;
}

.accent-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    padding: 10px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) translateY(-10px);
    transition:
        opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: var(--border-radius-sm);
    min-width: 140px;
    justify-content: center;
    box-shadow: var(--glass-shadow);
}

.accent-dropdown.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.accent-opt {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
}

.accent-opt:hover {
    transform: scale(1.15);
}

.accent-opt.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 10px var(--accent);
}

.color-purple {
    background-color: #6c5ce7;
}

.color-cyan {
    background-color: #00cec9;
}

.color-pink {
    background-color: #fd79a8;
}

.color-green {
    background-color: #2ecc71;
}

/* ==========================================================================
   GEOLOCATION & WEATHER WELCOMING CARD STYLES
   ========================================================================== */

.geo-greeting-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    max-width: 480px;
    margin-top: 10px;
    margin-bottom: 30px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.geo-greeting-card:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    transform: translateY(-2px);
}

.geo-icon-wrapper {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.geo-icon-pulse {
    animation: geoSatellitePulse 4s infinite linear;
}

.geo-text-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.geo-status-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    display: inline-block;
    animation: pulse 1.5s infinite;
}

.geo-greeting-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

@keyframes geoSatellitePulse {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* ==========================================================================
   NASA APOD WIDGET STYLES
   ========================================================================== */

.nasa-apod-container {
    margin-top: 40px;
    padding: 30px;
}

.nasa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.nasa-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nasa-header h3 i {
    color: var(--accent);
}

.nasa-badge-tag {
    padding: 4px 12px;
    font-size: 0.72rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
    border-radius: var(--border-radius-sm);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.25);
}

.nasa-loading {
    padding: 50px 0;
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
}

.nasa-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: center;
}

.nasa-media-wrapper {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
}

.nasa-media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.nasa-media-wrapper img:hover {
    transform: scale(1.05);
}

.nasa-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#nasaTitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

#nasaExplanation {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

#nasaDate {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .nasa-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nasa-media-wrapper {
        height: 200px;
    }
}

/* ==========================================================================
   3D SKILL TAG CLOUD STYLES
   ========================================================================== */

.skills-3d-cloud-container {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skills-3d-cloud-container h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.skills-3d-cloud-container h3 i {
    color: var(--accent);
}

.canvas-wrapper-3d {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

#skillsCanvas {
    max-width: 100%;
    height: auto;
    outline: none;
    display: block;
}

.canvas-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.canvas-hint i {
    color: var(--accent);
}

/* ==========================================================================
   21. ASTRO-JUMP MINIGAME STYLES
   ========================================================================== */

.btn-game {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15) 0%, rgba(var(--accent-rgb), 0.05) 100%);
    border: 1px dashed var(--accent);
    color: var(--accent);
    padding: 10px 22px;
    border-radius: 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-game:hover {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3) 0%, rgba(var(--accent-rgb), 0.1) 100%);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.4);
    transform: translateY(-2px);
}

.game-modal-content {
    max-width: 650px;
    background: rgba(10, 10, 25, 0.9) !important;
    border: 1px solid rgba(var(--accent-rgb), 0.3) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(var(--accent-rgb), 0.25) !important;
    color: #ffffff;
}

/* Ensure the close button is visible in dark theme game modal */
.game-modal-content .modal-close {
    color: rgba(255, 255, 255, 0.7);
}

.game-modal-content .modal-close:hover {
    color: var(--accent);
}

.game-modal-body {
    padding: 30px 25px;
    text-align: center;
}

.game-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ffffff 0%, #a4a7c6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-header p {
    font-size: 0.9rem;
    color: #a4a7c6;
    margin-bottom: 20px;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.game-scoreboard {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    padding: 0 10px;
}

.score-box {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(var(--accent-rgb), 0.4);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: #050510;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.game-start-overlay,
.game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 15, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
}

.play-icon {
    font-size: 3rem;
    color: var(--accent);
    animation: pulseGlow 2s infinite alternate;
}

.death-icon {
    font-size: 2.8rem;
    color: #ff7675;
    animation: shakeDeath 0.5s infinite;
}

.overlay-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    margin-top: 5px;
}

.overlay-content p {
    font-size: 0.85rem;
    color: #a4a7c6;
}

.game-controls {
    margin-top: 5px;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

#gameJumpBtn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#gameJumpBtn:active {
    background: var(--accent);
    color: #ffffff;
    transform: scale(0.98);
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
    }

    100% {
        transform: scale(1.1);
        text-shadow: 0 0 25px rgba(var(--accent-rgb), 0.9);
    }
}

@keyframes shakeDeath {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(0px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(2px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(2px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

@media (max-width: 768px) {
    .game-modal-body {
        padding: 20px 15px;
    }

    .game-scoreboard {
        max-width: 100%;
    }

    .game-canvas-wrapper {
        height: 160px;
    }

    /* Disable scroll transitions on mobile for maximum scrolling performance */
    .animate-init {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Disable fixed background twinkling/floating animations on mobile to reduce GPU composite overhead */
    .stars {
        animation: none !important;
        opacity: 0.45 !important;
    }
    
    .nebula-1,
    .nebula-2 {
        animation: none !important;
        mix-blend-mode: normal !important; /* Multiply is extremely expensive on mobile */
        filter: blur(80px) !important;      /* Lower blur value requires less GPU fill-rate */
    }

    /* Disable backdrop-filter (blur) on mobile to completely prevent scrolling stutter */
    .glass-card,
    .header,
    .nav-menu,
    .accent-dropdown,
    .wa-popup-box,
    .chatbot-window {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Fallback solid/translucent background colors for cards & elements without blur */
    .glass-card {
        background: rgba(255, 255, 255, 0.94) !important;
        border-color: rgba(108, 92, 231, 0.15) !important;
    }
    
    body.dark-theme .glass-card {
        background: rgba(12, 12, 32, 0.96) !important;
        border-color: rgba(255, 255, 255, 0.06) !important;
    }

    .header {
        background: rgba(255, 255, 255, 0.96) !important;
    }

    body.dark-theme .header {
        background: rgba(7, 7, 20, 0.96) !important;
    }

    .nav-menu {
        background: rgba(255, 255, 255, 0.98) !important;
    }

    body.dark-theme .nav-menu {
        background: rgba(12, 12, 32, 0.98) !important;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .avatar-wrapper {
        width: 240px;
        height: 240px;
    }

    .profile-img {
        width: 190px;
        height: 190px;
    }

    .profile-glow {
        width: 200px;
        height: 200px;
    }

    .orbit-1 {
        width: 215px;
        height: 215px;
    }

    .orbit-2 {
        width: 235px;
        height: 235px;
    }
}