:root {
    /* Color Palette - Premium Dark Theme */
    --bg-color: #0f1219;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --bg-surface-hover: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary: #00f0ff;      /* Cyan */
    --secondary: #ff0055;    /* Pink/Red */
    --accent: #8a2be2;       /* Purple */
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1100px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Background Animated Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.blob-2 {
    bottom: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 150px) scale(1.2); }
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(90deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 18, 25, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    margin: 5px 0;
    transition: 0.4s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary) !important;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-color) !important;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.greeting {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.bio-short {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.image-wrapper {
    width: 400px;
    height: 400px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: morph 8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    opacity: 0.2;
    z-index: 0;
}

.placeholder-avatar {
    font-size: 8rem;
    color: var(--primary);
    z-index: 1;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

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

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    padding: 2.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.contact-info {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.info-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Education Section */
.education-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.education-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--text-main);
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border-color);
}

.education-dot {
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.education-item h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.education-item span {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.experience-timeline {
    padding: 2.5rem;
    max-height: 500px;
    overflow-y: auto;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-left: 0;
    font-weight: 500;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge.remote {
    background: rgba(30, 215, 96, 0.15);
    color: #1ed760;
    border: 1px solid rgba(30, 215, 96, 0.3);
}
.badge.onsite {
    background: rgba(96, 165, 250, 0.15);
    color: var(--primary);
    border: 1px solid rgba(96, 165, 250, 0.3);
}
.badge.ongoing {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}
/* Custom Scrollbar for Experience Timeline */
.experience-timeline::-webkit-scrollbar {
    width: 6px;
}
.experience-timeline::-webkit-scrollbar-track {
    background: transparent;
}
.experience-timeline::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.experience-timeline h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--text-main);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
    border-left: 2px solid var(--border-color);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.timeline-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.timeline-date {
    display: inline-block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Professional Journey Slider */
.journey-section {
    padding: 2rem;
    overflow: hidden;
}

.journey-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.journey-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-main);
}

.slider-controls {
    display: flex;
    gap: 0.8rem;
}

.btn-icon {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-icon:focus {
    outline: none;
}

.btn-icon:hover {
    background: var(--primary);
    color: var(--bg-color);
}

.journey-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem;
}

.journey-slider::-webkit-scrollbar {
    height: 8px;
}
.journey-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.journey-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.journey-card {
    flex: 0 0 320px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.journey-card h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.journey-date, .journey-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.journey-card i {
    color: var(--primary);
    width: 15px;
}


/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.skill-card {
    padding: 2rem;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: var(--bg-surface-hover);
    border-color: var(--primary);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    position: relative;
}
/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-15px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card:hover::before {
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.pricing-card.popular {
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.05) inset, 0 10px 30px rgba(0, 0, 0, 0.4);
    background: rgba(0, 240, 255, 0.03);
}

.pricing-card.popular::before {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    height: 4px;
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #fff;
    padding: 0.3rem 3rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header {
    margin-bottom: 1rem;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.pricing-header .badge {
    margin-bottom: 0;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    min-height: 60px;
}

.pricing-price {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
}

.pricing-price .currency {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-weight: 600;
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(90deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.custom-price {
    align-items: center;
}

.custom-price .amount {
    font-size: 2rem;
    margin-top: 0;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
}

.pricing-features li i {
    color: var(--primary);
    margin-top: 0.2rem;
    font-size: 1rem;
}

.mt-auto {
    margin-top: auto;
}

/* Contact Section */
.contact-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
}

.contact-card p {
    color: var(--text-muted);
    margin: 1rem 0 2rem;
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Modal Game Pop-up */
.modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    z-index: 2001;
    border-radius: 20px;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(15, 18, 25, 0.8);
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    background: rgba(255, 0, 0, 0.5);
}

@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.game-container {
    overflow: hidden;
    position: relative;
    padding: 0;
}

.memory-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 2rem;
    perspective: 1000px;
}

.memory-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.memory-card:active {
    transform: scale(0.97);
    transition: transform 0.2s;
}

.memory-card.flip {
    transform: rotateY(180deg);
}

.front-face,
.back-face {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 12px;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.front-face {
    transform: rotateY(180deg);
    background: rgba(138, 43, 226, 0.15); /* Accent Purple */
    color: var(--text-main);
    border: 1px solid rgba(138, 43, 226, 0.4);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.5rem;
}

.back-face {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.back-face::after {
    content: '</>';
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.3);
    font-weight: 800;
    font-size: 1.5rem;
}

.memory-card.matched .front-face {
    background: rgba(16, 185, 129, 0.2); /* Emerald Green */
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.win-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 25, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 600px) {
    .memory-board {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 1rem;
    }
    .front-face, .back-face {
        font-size: 1.8rem;
    }
    .back-face::after {
        font-size: 1rem;
    }
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

/* Animation Classes */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container,
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
        gap: 1.5rem;
    }

    .pricing-grid::-webkit-scrollbar {
        height: 6px;
    }
    .pricing-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    .pricing-grid::-webkit-scrollbar-thumb {
        background-color: var(--primary);
        border-radius: 10px;
    }

    .pricing-card {
        flex: 0 0 280px;
        min-width: 280px;
        width: 280px;
        scroll-snap-align: start;
        padding: 1.5rem;
    }

    .pricing-header h3 {
        font-size: 1.5rem;
    }

    .pricing-price .amount {
        font-size: 2.3rem;
    }

    .custom-price .amount {
        font-size: 1.8rem;
    }

    .pricing-desc {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        min-height: unset;
    }

    .pricing-features {
        margin-bottom: 1.5rem;
        gap: 0.6rem;
    }

    .pricing-features li {
        font-size: 0.85rem;
        gap: 0.6rem;
    }

    .pricing-features li i {
        font-size: 0.85rem;
    }
    
    .hero {
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .bio-short {
        margin: 0 auto 2rem;
    }
    
    .image-wrapper {
        margin: 0 auto;
        width: 100%;
        max-width: 300px;
        aspect-ratio: 1 / 1;
        height: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 18, 25, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        transition: 0.3s;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .journey-card {
        flex: 0 0 280px;
        padding: 1.2rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .about-text, .experience-timeline, .journey-section {
        padding: 1.5rem;
    }

    /* Natural Flow for Career Portfolio on Mobile */
    .experience-timeline {
        max-height: none;
        overflow-y: visible;
    }

    .experience-timeline h3, .about-text h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .timeline-item h4, .education-item h4 {
        font-size: 1.05rem;
        line-height: 1.4;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.4rem;
    }

    .badge {
        display: inline-block;
        margin-left: 0;
        margin-top: 0;
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }

    .timeline-date, .education-item span {
        font-size: 0.85rem;
        display: block;
        margin-bottom: 0.5rem;
    }

    .timeline-item, .education-item {
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }

    .journey-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

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

    .pricing-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 2rem;
        gap: 1.5rem;
    }

    .pricing-grid::-webkit-scrollbar {
        height: 6px;
    }
    .pricing-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    .pricing-grid::-webkit-scrollbar-thumb {
        background-color: var(--primary);
        border-radius: 10px;
    }

    .pricing-card {
        flex: 0 0 280px;
        min-width: 280px;
        width: 280px;
        scroll-snap-align: start;
    }
}

/* Casino Card UI */
.mini-card-back {
    display: inline-block; width: 45px; height: 60px; 
    background: linear-gradient(135deg, #2a2a35 25%, #1f1f2e 25%, #1f1f2e 50%, #2a2a35 50%, #2a2a35 75%, #1f1f2e 75%, #1f1f2e 100%); 
    background-size: 8px 8px; border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 4px; margin: 2px; box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mini-card-front {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
    width: 45px; height: 60px; background: #f9fafb; border: 1px solid #d1d5db; 
    border-radius: 4px; margin: 2px; font-weight: 800; font-family: Arial, sans-serif; 
    font-size: 1rem; box-shadow: 0 2px 4px rgba(0,0,0,0.3); cursor: pointer;
    user-select: none;
    transition: 0.2s;
}

.mini-card-front:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,240,255,0.4);
}

.mini-card-front span.suit { font-size: 1.2rem; }

/* Responsive tweaks for the modal spacing to prevent scroll */
@media (max-width: 768px) {
    .modal-content.glass { max-height: 98vh !important; width: 95% !important; border-radius: 12px; }
    .game-stats { padding: 0.5rem 1rem !important; padding-right: 3rem !important; }
    #poker-board, #rummy-board { padding: 0.2rem !important; }
    
    .mini-card-back, .mini-card-front {
        width: 28px; height: 42px; font-size: 0.75rem; margin: 1px;
    }
    .mini-card-front span.suit { font-size: 0.9rem; }
    .game-stats h4 { font-size: 0.9rem; margin: 0; }
    .game-stats span, .btn-back-hub { font-size: 0.85rem !important; }
    .btn-poker-action { padding: 0.3rem 0.6rem !important; font-size: 0.75rem !important; }
}

/* Chess UI */
.chessboard {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 320px;
    height: 320px;
    border: 3px solid #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    background: #555;
}

.chess-square {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 2rem;
    user-select: none;
    position: relative;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    line-height: 1;
    overflow: hidden;
}

.chess-square.light { background-color: #f0d9b5; color: #000; }
.chess-square.dark { background-color: #b58863; color: #000; }
.chess-square.selected { background-color: #7b61ff !important; }
.chess-square.valid-move::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .chessboard { width: 280px; height: 280px; }
    .chess-square { width: 35px; height: 35px; font-size: 1.8rem; }
    
    .poker-layout { flex-direction: column; }
    .poker-log-panel { width: 100% !important; height: 100px; border-left: none !important; border-top: 1px solid rgba(255,255,255,0.1); }
}

/* Poker Advanced Layout */
.poker-layout {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.poker-table-panel {
    flex: 3;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
}

.poker-log-panel {
    width: 140px;
    background: rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(255,255,255,0.1);
    padding: 8px;
    overflow-y: auto;
    font-size: 0.65rem;
    color: #cbd5e1;
}

/* Range Slider Styling */
.bet-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    outline: none;
    border-radius: 4px;
    margin: 10px 0;
}
.bet-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
}

/* Fixed Close Button (outside modal box) */
.close-modal-fixed {
    position: fixed;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid rgba(255,255,255,0.25);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
}
.close-modal-fixed:hover {
    background: #ef4444;
    transform: scale(1.1);
    border-color: #ef4444;
}
@media (max-width: 768px) {
    .close-modal-fixed {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.anim-pop { animation: pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

@keyframes slide-down {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.anim-slide { animation: slide-down 0.4s ease-out forwards; }

@keyframes pulse-win {
    0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}
.anim-win { animation: pulse-win 1s infinite; border: 2px solid #00f0ff !important; }
