/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Prevent any transformation issues on mobile */
    transform-style: flat;
    backface-visibility: hidden;
}

html {
    scroll-behavior: smooth;
    /* Prevent zoom on iOS */
    -webkit-text-size-adjust: 100%;
    /* Ensure stable viewport */
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e0e6ed;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Simplified Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #30363d;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* Enhanced Logo Section */
.nav-logo-section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
}

.logo-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.logo-icon i {
    font-size: 1.8rem;
    color: #58a6ff;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.logo-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-logo:hover .logo-glow {
    opacity: 1;
}

.nav-logo:hover .logo-icon i {
    transform: scale(1.1);
    color: #79c0ff;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f0f6fc;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #8b949e;
    font-weight: 400;
    line-height: 1;
}

/* Enhanced Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(33, 38, 45, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #30363d;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-indicator:hover {
    background: rgba(33, 38, 45, 1);
    transform: translateY(-1px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7c3aed;
    position: relative;
}

.status-dot.online {
    background: #39d353;
    animation: blink-green 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(57, 211, 83, 0.4);
}

@keyframes blink-green {
    0% {
        background: #39d353;
        box-shadow: 0 0 0 0 rgba(57, 211, 83, 0.7);
        opacity: 1;
    }

    25% {
        background: #39d353;
        box-shadow: 0 0 0 2px rgba(57, 211, 83, 0.5);
        opacity: 0.8;
    }

    50% {
        background: #7ee787;
        box-shadow: 0 0 0 4px rgba(57, 211, 83, 0.3);
        opacity: 0.6;
    }

    75% {
        background: #39d353;
        box-shadow: 0 0 0 2px rgba(57, 211, 83, 0.5);
        opacity: 0.8;
    }

    100% {
        background: #39d353;
        box-shadow: 0 0 0 0 rgba(57, 211, 83, 0.7);
        opacity: 1;
    }
}

.status-text {
    font-size: 0.8rem;
    color: #e6edf3;
    font-weight: 500;
    white-space: nowrap;
}

/* Enhanced Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e6ed;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    width: 48px;
    height: 48px;
    padding: 12px;
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.nav-link i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-link span {
    transition: all 0.3s ease;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #58a6ff, #79c0ff);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}

.nav-link:hover .nav-indicator {
    width: 80%;
}

.nav-link:hover i {
    transform: scale(1.1);
}

.nav-link.active {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.15);
}

.nav-link.active .nav-indicator {
    width: 100%;
}

/* Enhanced Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(33, 38, 45, 0.8);
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #8b949e;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.quick-action-btn:hover {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    border-color: #58a6ff;
    transform: translateY(-1px);
}

.quick-action-btn .tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #21262d;
    color: #f0f6fc;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #30363d;
}

.quick-action-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

.nav-github-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(33, 38, 45, 0.8);
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 48px;
    height: 48px;
}

.nav-github-btn:hover {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    border-color: #58a6ff;
    transform: translateY(-1px);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(88, 166, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-github-btn:hover .btn-glow {
    opacity: 1;
}

.nav-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(135deg, #58a6ff 0%, #79c0ff 100%);
    border: none;
    border-radius: 8px;
    color: #0d1117;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
    width: 48px;
    height: 48px;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.nav-cta-btn:hover .btn-shine {
    left: 100%;
}

/* Enhanced Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(88, 166, 255, 0.1);
}

.bar {
    width: 20px;
    height: 2px;
    background: #e0e6ed;
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger-bg {
    position: absolute;
    inset: 0;
    background: rgba(33, 38, 45, 0.8);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hamburger.active .hamburger-bg {
    opacity: 1;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation Progress Indicator */
.nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #58a6ff, #79c0ff, #a5f3fc);
    transition: width 0.1s ease;
    z-index: 1001;
}

/* Theme Support */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #f0f6fc;
    --text-secondary: #e6edf3;
    --text-muted: #8b949e;
    --accent-primary: #58a6ff;
    --accent-secondary: #79c0ff;
    --border-primary: #30363d;
    --border-secondary: #21262d;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #f1f3f4;
    --text-primary: #24292f;
    --text-secondary: #57606a;
    --text-muted: #656d76;
    --accent-primary: #0969da;
    --accent-secondary: #218bff;
    --border-primary: #d1d9e0;
    --border-secondary: #d8dee4;
}

/* Status Tooltip */
.status-tooltip {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 8px 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 1000;
}

.status-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #21262d;
}

.status-indicator:hover .status-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -50px;
}

.tooltip-content {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #e6edf3;
}

.text-green {
    color: #238636;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #21262d 100%);
}

.hero-container {
    max-width: 1200px;
    width: 100%;
}

.hero-content {
    text-align: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #58a6ff;
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #58a6ff, #79c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #7d8590;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: #8b949e;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.1rem;
    color: #58a6ff;
    margin-bottom: 3rem;
    font-style: italic;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    font-size: 2rem;
    color: #58a6ff;
}

.stat-label {
    font-size: 1rem;
    color: #8b949e;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #238636, #2ea043);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #2ea043, #238636);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 160, 67, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #58a6ff, #79c0ff);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #79c0ff, #58a6ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: #58a6ff;
    border: 2px solid #58a6ff;
}

.btn-outline:hover {
    background: #58a6ff;
    color: white;
    transform: translateY(-2px);
}

/* Hero Scroll Indicator Styles */
.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 3rem;
    color: #8b949e;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #58a6ff;
    border-radius: 13px;
    position: relative;
    background: transparent;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #58a6ff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
}

@keyframes scroll-wheel {
    0% {
        top: 6px;
        opacity: 1;
    }
    50% {
        top: 16px;
        opacity: 0.7;
    }
    100% {
        top: 6px;
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.hero-scroll-indicator span {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-scroll-indicator:hover .scroll-mouse {
    border-color: #79c0ff;
    box-shadow: 0 0 20px rgba(121, 192, 255, 0.5);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.hero-scroll-indicator:hover .scroll-wheel {
    background: #79c0ff;
    box-shadow: 0 0 15px rgba(121, 192, 255, 0.7);
}

.hero-scroll-indicator:hover span {
    color: #e6edf3;
    transition: color 0.3s ease;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #e0e6ed;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #58a6ff, #79c0ff);
    border-radius: 2px;
}

/* About Section */
.about {
    background: #161b22;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.intro-text {
    font-size: 1.3rem;
    color: #58a6ff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #8b949e;
}

.fun-fact,
.currently-learning {
    background: #21262d;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #58a6ff;
}

.fun-fact h4,
.currently-learning h4,
.personal-interests h4 {
    color: #58a6ff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced Personal Interests Section */
.personal-interests {
    background: linear-gradient(135deg, #21262d 0%, #1c2128 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid #30363d;
    position: relative;
    overflow: hidden;
}

.personal-interests::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #58a6ff, #79c0ff, #a5a6ff, #d2a8ff);
    border-radius: 16px 16px 0 0;
}

.interests-intro {
    color: #8b949e;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.interest-item {
    background: rgba(33, 38, 45, 0.6);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.interest-item:hover {
    transform: translateY(-4px);
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.08);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.15);
}

.interest-item.featured {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(121, 192, 255, 0.05) 100%);
    border-color: #58a6ff;
}

.interest-item.featured .interest-icon {
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    color: #0d1117;
}

.interest-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.interest-item:hover::before {
    left: 100%;
}

.interest-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.interest-icon i {
    font-size: 1.4rem;
    color: #58a6ff;
    transition: all 0.3s ease;
}

.interest-item:hover .interest-icon {
    transform: scale(1.1);
    background: #58a6ff;
}

.interest-item:hover .interest-icon i {
    color: #0d1117;
}

.interest-content h5 {
    color: #e6edf3;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.interest-content p {
    color: #8b949e;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.interest-item:hover .interest-content h5 {
    color: #58a6ff;
}

.interest-item:hover .interest-content p {
    color: #c9d1d9;
}

.interests-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #30363d;
}

.interests-quote {
    color: #8b949e;
    font-style: italic;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.interests-quote i {
    color: #58a6ff;
    font-size: 0.7rem;
    opacity: 0.6;
}

.interests-quote .fa-quote-left {
    margin-right: 0.5rem;
}

.interests-quote .fa-quote-right {
    margin-left: 0.5rem;
}

/* Enhanced Quick Stats Section */
.enhanced-stats {
    background: linear-gradient(135deg, #1c2128 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.enhanced-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f85149, #ff7b72, #ffa657, #ffdf5d, #7ee787, #39d353, #56d4dd, #58a6ff, #a5a6ff);
    border-radius: 16px 16px 0 0;
}

.stats-header {
    text-align: center;
    margin-bottom: 2rem;
}

.stats-header h3 {
    color: #e6edf3;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stats-subtitle {
    color: #8b949e;
    font-size: 0.9rem;
    font-style: italic;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    position: relative;
    background: rgba(33, 38, 45, 0.4);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-8px);
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.05);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.2);
}

.stat-item.special {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-color: #a855f7;
}

.stat-item.special:hover {
    border-color: #ec4899;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.stat-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.stat-icon.experience {
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    color: #0d1117;
}

.stat-icon.projects {
    background: linear-gradient(135deg, #7ee787, #39d353);
    color: #0d1117;
}

.stat-icon.contributions {
    background: linear-gradient(135deg, #ffa657, #ffdf5d);
    color: #0d1117;
}

.stat-icon.coffee {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #ffffff;
}

.stat-icon i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
}

.stat-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.stat-content {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e6edf3;
    line-height: 1;
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.stat-number.infinite {
    font-size: 2.2rem;
    background: linear-gradient(90deg, #a855f7, #ec4899, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 3s ease-in-out infinite;
}

@keyframes rainbow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.stat-unit {
    font-size: 0.8rem;
    color: #58a6ff;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #e6edf3;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.stat-description {
    font-size: 0.75rem;
    color: #8b949e;
    line-height: 1.3;
}

.stat-item:hover .stat-number {
    color: #58a6ff;
    transform: scale(1.1);
}

.stat-item.special:hover .stat-number {
    color: #ec4899;
}

.stats-footer {
    border-top: 1px solid #30363d;
    padding-top: 1.5rem;
}

.achievement-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid #58a6ff;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: #58a6ff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.badge:hover {
    background: #58a6ff;
    color: #0d1117;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.badge i {
    font-size: 0.7rem;
}

/* Experience Section */
.experience {
    background: #0d1117;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #58a6ff;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 2rem;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: #58a6ff;
    border-radius: 50%;
    border: 4px solid #0d1117;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: #21262d;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #30363d;
}

.timeline-content h3 {
    color: #58a6ff;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #e0e6ed;
    margin-bottom: 0.5rem;
}

.timeline-content h4 a {
    color: #58a6ff;
    text-decoration: none;
}

.timeline-period {
    color: #7d8590;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Skills Section */
.skills {
    background: #161b22;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.skill-category {
    background: #21262d;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #30363d;
}

.skill-category h3 {
    color: #58a6ff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-item {
    background: #0d1117;
    color: #e0e6ed;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: #58a6ff;
    color: white;
    transform: translateY(-2px);
}

.expertise-highlight {
    background: #21262d;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #30363d;
    text-align: center;
}

.expertise-highlight h3 {
    color: #58a6ff;
    margin-bottom: 1.5rem;
}

.expertise-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.expertise-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #0d1117;
    border-radius: 8px;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
}

.expertise-item i {
    font-size: 2rem;
    color: #58a6ff;
}

/* Projects Section */
.projects {
    background: #0d1117;
}

.section-subtitle {
    text-align: center;
    color: #8b949e;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Project Statistics Overview */
.project-stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #30363d;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #58a6ff, #79c0ff);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
    box-shadow: 0 15px 40px rgba(88, 166, 255, 0.1);
}

.stat-card i {
    font-size: 2.5rem;
    color: #58a6ff;
    opacity: 0.8;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #e0e6ed;
    line-height: 1;
}

.stat-label {
    color: #8b949e;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced Project Filters */
.projects-filter-section {
    background: #161b22;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #30363d;
    margin-bottom: 3rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-header h3 {
    color: #58a6ff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box {
    position: relative;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8b949e;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 25px;
    color: #e0e6ed;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: #8b949e;
    border: 2px solid #30363d;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    color: white;
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    transform: translateY(-2px);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.sort-options label {
    color: #8b949e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options select {
    padding: 0.6rem 1rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e0e6ed;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-options select:focus {
    outline: none;
    border-color: #58a6ff;
}

/* Enhanced Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #58a6ff, #79c0ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #58a6ff;
    box-shadow: 0 15px 40px rgba(88, 166, 255, 0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title a {
    color: #58a6ff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: #79c0ff;
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-links a {
    padding: 0.5rem;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 8px;
    color: #58a6ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: #58a6ff;
    color: white;
    transform: translateY(-2px);
}

.project-description {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #8b949e;
    font-size: 0.85rem;
}

.project-stats .stat-item i {
    color: #58a6ff;
    font-size: 0.9rem;
}

.language-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.project-footer {
    padding-top: 1rem;
    border-top: 1px solid #30363d;
    margin-top: 1rem;
}

.updated-date {
    color: #7d8590;
    font-size: 0.8rem;
}

/* Enhanced Loading State */
.loading-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: #8b949e;
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
    border-radius: 16px;
    border: 1px solid #30363d;
}

.loading-spinner {
    margin-bottom: 2rem;
}

.loading-spinner i {
    font-size: 4rem;
    color: #58a6ff;
    animation: spin 2s linear infinite;
}

.loading-placeholder h3 {
    color: #58a6ff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: #30363d;
    border-radius: 2px;
    margin: 2rem auto 0;
    overflow: hidden;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #58a6ff, #79c0ff);
    border-radius: 2px;
    animation: loading-progress 2s ease-in-out infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loading-progress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #8b949e;
    background: #161b22;
    border-radius: 16px;
    border: 1px solid #30363d;
}

.no-results i {
    font-size: 4rem;
    color: #58a6ff;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    color: #58a6ff;
    margin-bottom: 0.5rem;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-bottom: 3rem;
}

.showing-count {
    color: #8b949e;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Enhanced View All Projects */
.view-all-projects {
    text-align: center;
}

.cta-section {
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid #30363d;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(88, 166, 255, 0.05), rgba(121, 192, 255, 0.05));
    z-index: 0;
}

.cta-section>* {
    position: relative;
    z-index: 1;
}

.cta-section h3 {
    color: #58a6ff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #8b949e;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    margin: 0.5rem;
}

/* Project Topics/Tags */
.project-topics {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-badge {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(88, 166, 255, 0.2);
    transition: all 0.3s ease;
}

.topic-badge:hover {
    background: rgba(88, 166, 255, 0.2);
    transform: translateY(-1px);
}

/* Enhanced Project Meta */
.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.repo-size {
    color: #7d8590;
    font-size: 0.8rem;
}

/* Error Message Styling */
.error-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #8b949e;
    background: #161b22;
    border-radius: 16px;
    border: 1px solid #30363d;
}

.error-message i {
    font-size: 4rem;
    color: #f85149;
    margin-bottom: 1rem;
}

.error-message h3 {
    color: #f85149;
    margin-bottom: 0.5rem;
}

.error-message p {
    margin-bottom: 2rem;
}

/* Enhanced Responsive Design for Projects */
@media (max-width: 768px) {

    /* Enhanced Mobile Navigation */
    .nav-container {
        padding: 0 16px;
        height: 60px;
    }

    .nav-logo-section {
        gap: 12px;
    }

    .logo-name {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        display: none;
    }

    .status-indicator {
        padding: 4px 8px;
    }

    .status-text {
        font-size: 0.7rem;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(13, 17, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 40px 0;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid #30363d;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-item {
        width: 100%;
        padding: 0 24px;
    }

    .nav-link {
        padding: 20px 16px;
        justify-content: flex-start;
        border-radius: 12px;
        margin-bottom: 8px;
        width: 100%;
        height: auto;
        gap: 12px;
    }

    .nav-link i {
        font-size: 1.1rem;
    }

    .nav-indicator {
        display: none;
    }

    .quick-actions {
        display: none;
    }

    .nav-github-btn,
    .nav-cta-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .project-stats-overview {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-card i {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .filter-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

    .projects-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .sort-options {
        flex-direction: column;
        gap: 0.5rem;
    }

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

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

    .project-stats {
        flex-wrap: wrap;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }

    .cta-section .btn {
        display: block;
        margin: 0.5rem auto;
        width: fit-content;
    }

    /* Mobile Personal Interests */
    .interests-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
    }

    .interest-item {
        padding: 1rem;
    }

    .interest-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.6rem;
    }

    .interest-icon i {
        font-size: 1.2rem;
    }

    .interest-content h5 {
        font-size: 0.85rem;
    }

    .interest-content p {
        font-size: 0.75rem;
    }

    .interests-quote {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }

    /* Mobile Enhanced Quick Stats */
    .enhanced-stats {
        padding: 1.5rem;
        text-align: center;
    }

    .stats-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .stats-header h3 {
        justify-content: center;
    }

    .stats-subtitle {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center;
        align-items: center;
    }

    .stat-item {
        padding: 1.2rem 0.8rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 0.5rem;
    }

    .stat-number {
        font-size: 1.4rem;
        text-align: center;
    }

    .stat-unit {
        font-size: 0.7rem;
        text-align: center;
    }

    .stat-label {
        font-size: 0.8rem;
        text-align: center;
    }

    .stat-description {
        font-size: 0.7rem;
        text-align: center;
    }

    .achievement-badges {
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
    }

    .badge {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .projects-filter-section {
        padding: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .project-stats-overview {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .stat-info {
        align-items: center;
    }

    /* Small Mobile Enhanced Quick Stats */
    .enhanced-stats {
        text-align: center;
    }

    .stats-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        justify-items: center;
    }

    .stat-item {
        padding: 1rem 0.6rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 280px;
    }

    .achievement-badges {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .badge {
        width: 100%;
        justify-content: center;
        max-width: 200px;
        text-align: center;
    }
}

/* Stats Section */
.stats {
    background: #161b22;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stats-card {
    background: #21262d;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #30363d;
    text-align: center;
}

.stats-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.language-stats-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.flag-section {
    text-align: center;
    padding: 2rem;
    background: #21262d;
    border-radius: 12px;
    border: 1px solid #30363d;
}

.flag-img {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.contribution-section,
.activity-section,
.snake-section,
.badges-section,
.quote-section {
    margin-bottom: 3rem;
}

.contribution-section h3,
.activity-section h3,
.snake-section h3,
.badges-section h3,
.quote-section h3 {
    text-align: center;
    color: #58a6ff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contribution-graph,
.activity-graph,
.snake-animation,
.holopin-badges,
.dev-quote {
    text-align: center;
    background: #21262d;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #30363d;
}

.contribution-graph img,
.activity-graph img,
.snake-animation img,
.holopin-badges img,
.dev-quote img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Contact Section */
.contact {
    background: #0d1117;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #58a6ff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    color: #8b949e;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #21262d;
    border-radius: 8px;
    border: 1px solid #30363d;
    color: #e0e6ed;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}

.contact-link i {
    font-size: 1.5rem;
    color: #58a6ff;
}

.contact-form {
    background: #21262d;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #30363d;
}

.contact-form h3 {
    color: #58a6ff;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e0e6ed;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #161b22;
    padding: 2rem 0;
    border-top: 1px solid #30363d;
}

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

.footer-left,
.footer-right {
    color: #8b949e;
    text-align: center;
}

.footer-left p,
.footer-right p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.4rem;
        text-align: center;
    }

    .hero-description {
        text-align: center;
    }

    .hero-tagline {
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

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

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
    }

    .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .language-stats-section {
        grid-template-columns: 1fr;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

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

    .expertise-items {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

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

    .section-title {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 15px 60px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        text-align: center;
    }

    .hero-description {
        text-align: center;
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-tagline {
        text-align: center;
        font-size: 1rem;
    }

    .hero-stats {
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .hero-buttons {
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    section {
        padding: 60px 0;
    }

    .skill-category,
    .contact-form {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #161b22;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #58a6ff;
}

/* Enhanced Footer Styles */
.footer {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    color: #e6edf3;
    padding: 60px 0 20px;
    border-top: 1px solid #30363d;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #58a6ff, transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #58a6ff;
}

.footer-logo i {
    font-size: 2rem;
}

.footer-tagline {
    color: #8b949e;
    margin-bottom: 24px;
    font-style: italic;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #8b949e;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: #58a6ff;
    color: #0d1117;
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: #f0f6fc;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #8b949e;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: #58a6ff;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid #30363d;
    align-items: center;
}

.footer-left p,
.footer-right p {
    margin: 4px 0;
    color: #8b949e;
    font-size: 0.9rem;
}

.footer-right {
    text-align: right;
}

.footer-credits {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6e7681;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #30363d;
    background: #161b22;
}

.modal-header h3 {
    margin: 0;
    color: #f0f6fc;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-close {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #21262d;
    color: #f0f6fc;
}

.modal-body {
    padding: 32px 24px;
}

.resume-info {
    text-align: center;
}

.resume-info p {
    color: #e6edf3;
    margin-bottom: 16px;
    line-height: 1.6;
}

.resume-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.resume-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.loading-content {
    text-align: center;
    max-width: 400px;
}

.loading-logo {
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

.loading-logo i {
    font-size: 4rem;
    color: #58a6ff;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading-text h2 {
    color: #f0f6fc;
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 700;
}

.loading-text p {
    color: #8b949e;
    margin-bottom: 32px;
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: #21262d;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #58a6ff, #79c0ff);
    border-radius: 2px;
    animation: loadingProgress 1.5s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #58a6ff;
    color: #0d1117;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(88, 166, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #79c0ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #21262d;
    z-index: 1001;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, #58a6ff, #79c0ff, #a5f3fc);
    transition: width 0.1s ease;
}

/* Loading Screen Hide */
body.loaded .loading-screen {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .resume-actions {
        flex-direction: column;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Enhanced Resume Section Styles */
.enhanced-resume {
    background: linear-gradient(135deg, #1a1f36 0%, #2d1b69 50%, #1a1f36 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.enhanced-resume::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    opacity: 0.1;
    z-index: 0;
}

.enhanced-resume>* {
    position: relative;
    z-index: 1;
}

.resume-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    font-size: 24px;
    color: white;
    animation: iconFloat 3s ease-in-out infinite;
}

.icon-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    opacity: 0.3;
    filter: blur(10px);
    z-index: -1;
    animation: iconGlow 2s ease-in-out infinite alternate;
}

.resume-title h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.resume-subtitle {
    color: #8b949e;
    font-size: 0.9rem;
    margin: 0;
}

.resume-preview {
    margin-bottom: 25px;
}

.resume-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea;
    transform: translateY(-2px);
}

.highlight-item i {
    color: #667eea;
    font-size: 1.1rem;
}

.highlight-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.resume-description {
    color: #c9d1d9;
    line-height: 1.6;
    margin-bottom: 20px;
}

.resume-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.resume-actions .btn {
    flex: 1;
    justify-content: center;
}

.resume-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #8b949e;
}

.last-updated {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resume-stats {
    display: flex;
    gap: 15px;
}

.resume-stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.resume-stats .stat i {
    color: #4ecdc4;
    font-size: 0.9rem;
}

/* Enhanced Modal Styles */
.enhanced-modal .modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #1a1f36 0%, #2d1b69 50%, #1a1f36 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.resume-modal-content {
    animation: modalSlideIn 0.5s ease-out;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-title i {
    color: #667eea;
    font-size: 1.5rem;
}

.resume-preview-content {
    padding: 20px 0;
}

.resume-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.resume-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #667eea;
}

.resume-header-section {
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    margin-bottom: 25px;
    padding-bottom: 25px;
}

.resume-profile {
    display: flex;
    align-items: center;
    gap: 25px;
}

.resume-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #667eea;
    object-fit: cover;
}

.resume-basic-info h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #e0e6ed;
}

.resume-basic-info h3 {
    font-size: 1.2rem;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 600;
}

.resume-location {
    color: #8b949e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resume-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resume-contact a {
    color: #4ecdc4;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.resume-contact a:hover {
    color: #667eea;
}

.resume-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.skill-category h5 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.resume-experience {
    margin-top: 15px;
}

.experience-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.experience-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #667eea;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.experience-header h5 {
    color: #e0e6ed;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Articles Section */
.articles {
    background: #0d1117;
}

.articles-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.articles-subtitle {
    color: #8b949e;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Articles Stats */
.articles-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.article-stat-card {
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f77b04, #ff8c42);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-stat-card:hover::before {
    transform: scaleX(1);
}

.article-stat-card:hover {
    transform: translateY(-8px);
    border-color: #f77b04;
    box-shadow: 0 15px 40px rgba(247, 123, 4, 0.15);
}

.article-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f77b04, #ff8c42);
    color: #ffffff;
    font-size: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.article-stat-card:hover .article-stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.article-stat-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f77b04, #ff8c42);
    opacity: 0;
    animation: articlePulse 2s infinite;
}

@keyframes articlePulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.article-stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e6edf3;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.article-stat-card:hover .article-stat-number {
    color: #f77b04;
    transform: scale(1.1);
}

.article-stat-label {
    font-size: 1rem;
    color: #e6edf3;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.article-stat-desc {
    font-size: 0.85rem;
    color: #8b949e;
    line-height: 1.3;
}

/* Dev.to Profile Section */
.devto-profile {
    background: linear-gradient(135deg, #1c2128 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.devto-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d1116, #f77b04, #0d1116);
    background-size: 200% 100%;
    animation: devtoGradient 3s ease-in-out infinite;
}

@keyframes devtoGradient {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 0%;
    }
}

.devto-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.devto-logo {
    width: 80px;
    height: 80px;
    background: #0d1116;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f77b04;
    position: relative;
    overflow: hidden;
}

.devto-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(247, 123, 4, 0.1), transparent);
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0% {
        transform: rotate(0deg) translate(-50%, -50%);
    }

    100% {
        transform: rotate(360deg) translate(-50%, -50%);
    }
}

.devto-logo i {
    color: #f77b04;
    font-size: 2.5rem;
    z-index: 2;
    position: relative;
}

.devto-info h3 {
    color: #f0f6fc;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.devto-info p {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.devto-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f77b04;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(247, 123, 4, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(247, 123, 4, 0.2);
    transition: all 0.3s ease;
}

.devto-link:hover {
    background: rgba(247, 123, 4, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 123, 4, 0.3);
}

.devto-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
}

.devto-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.devto-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f77b04;
    line-height: 1;
}

.devto-stat-label {
    font-size: 0.8rem;
    color: #8b949e;
    font-weight: 500;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f77b04, #ff8c42);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: #f77b04;
    box-shadow: 0 20px 50px rgba(247, 123, 4, 0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

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

.article-date {
    color: #f77b04;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-title {
    color: #f0f6fc;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: #f77b04;
}

.article-description {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.article-tag {
    background: rgba(247, 123, 4, 0.1);
    color: #f77b04;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(247, 123, 4, 0.2);
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: rgba(247, 123, 4, 0.2);
    transform: translateY(-1px);
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #30363d;
}

.article-stats {
    display: flex;
    gap: 1rem;
}

.article-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #8b949e;
    font-size: 0.85rem;
}

.article-stat i {
    color: #f77b04;
    font-size: 0.9rem;
}

.article-read-time {
    color: #8b949e;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-read-time i {
    color: #f77b04;
}

/* Loading States */
.articles-loading {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
    border-radius: 16px;
    border: 1px solid #30363d;
}

.articles-loading-spinner {
    margin-bottom: 2rem;
}

.articles-loading-spinner i {
    font-size: 4rem;
    color: #f77b04;
    animation: spin 2s linear infinite;
}

.articles-loading h3 {
    color: #f77b04;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.articles-loading p {
    color: #8b949e;
    margin-bottom: 2rem;
}

.articles-progress {
    width: 200px;
    height: 4px;
    background: #30363d;
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.articles-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f77b04, #ff8c42);
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out infinite;
}

/* No Articles State */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
    border-radius: 16px;
    border: 1px solid #30363d;
}

.no-articles i {
    font-size: 4rem;
    color: #f77b04;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-articles h3 {
    color: #f77b04;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-articles p {
    color: #8b949e;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Load More Section */
.load-more-articles {
    text-align: center;
    margin-bottom: 3rem;
}

.load-more-btn {
    background: linear-gradient(135deg, #f77b04, #ff8c42);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 123, 4, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.showing-articles {
    color: #8b949e;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Call to Action */
.articles-cta {
    background: linear-gradient(135deg, #1c2128 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.articles-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(247, 123, 4, 0.05), rgba(255, 140, 66, 0.05));
    z-index: 0;
}

.articles-cta>* {
    position: relative;
    z-index: 1;
}

.articles-cta h3 {
    color: #f77b04;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.articles-cta p {
    color: #8b949e;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    margin: 0.5rem;
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
    .articles-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .article-stat-card {
        padding: 1.5rem;
    }

    .article-stat-number {
        font-size: 1.8rem;
    }

    .devto-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .devto-stats {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .devto-stat {
        align-items: center;
    }

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

    .article-card {
        margin-bottom: 1rem;
    }

    .article-content {
        padding: 1.2rem;
    }

    .article-title {
        font-size: 1.1rem;
    }

    .articles-cta {
        padding: 2rem 1rem;
    }

    .articles-cta h3 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .articles-stats {
        grid-template-columns: 1fr;
    }

    .article-stat-card {
        padding: 1.2rem;
    }

    .article-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .article-stat-number {
        font-size: 1.5rem;
    }

    .devto-logo {
        width: 60px;
        height: 60px;
    }

    .devto-logo i {
        font-size: 2rem;
    }

    .devto-stats {
        gap: 1rem;
    }

    .article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .article-stats {
        width: 100%;
        justify-content: space-between;
    }
}

.experience-period {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.experience-item h6 {
    color: #4ecdc4;
    margin-bottom: 10px;
    font-size: 1rem;
}

.experience-item ul {
    list-style: none;
    padding-left: 0;
}

.experience-item li {
    color: #c9d1d9;
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.experience-item li::before {
    content: '▸';
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.education-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

.education-item h5 {
    color: #e0e6ed;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.education-item h6 {
    color: #4ecdc4;
    margin-bottom: 10px;
    font-size: 1rem;
}

.resume-actions-modal {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(102, 126, 234, 0.3);
}

.resume-actions-modal .btn {
    flex: 1;
    justify-content: center;
}

/* Animations */
@keyframes iconFloat {

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

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

@keyframes iconGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

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

/* Responsive Design for Resume */
@media (max-width: 768px) {
    .resume-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .resume-highlights {
        grid-template-columns: 1fr;
    }

    .resume-actions {
        flex-direction: column;
    }

    .resume-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .resume-profile {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .resume-actions-modal {
        flex-direction: column;
    }

    .experience-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

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

/* Enhanced Mobile Optimizations */

/* Mobile-first base styles improvements */
@media (max-width: 1024px) {

    /* Tablet optimizations */
    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Enhanced Mobile Styles for better UX */
@media (max-width: 768px) {

    /* Improved container and spacing */
    .container {
        padding: 0 16px;
        max-width: 100%;
    }

    /* Mobile layout stability - disable rotations that cause tilt issues */
    .stat-item:hover .stat-icon {
        transform: scale(1.1);
        /* Remove rotate(10deg) for mobile */
    }

    .article-stat-card:hover .article-stat-icon {
        transform: scale(1.05);
        /* Remove rotate(5deg) for mobile */
    }

    /* Ensure stable positioning for all hover effects */
    .interest-item:hover .interest-icon {
        transform: scale(1.1);
        /* Remove any rotation */
    }

    /* Disable complex transforms on mobile to prevent tilt issues */
    .stat-item,
    .interest-item,
    .article-stat-card,
    .project-card,
    .article-card {
        will-change: auto;
        /* Reset will-change for better performance */
    }

    /* Enhanced Hero Section Mobile */
    .hero {
        min-height: 90vh;
        padding: 100px 16px 60px;
        text-align: center;
    }

    .hero-container {
        max-width: 100%;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        margin: 0 auto 1.5rem;
    }

    .hero-title .name {
        font-size: 2.2rem;
        line-height: 1.2;
        text-align: center;
    }

    .hero-title .greeting {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        padding: 0 10px;
        text-align: center;
    }

    .hero-tagline {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0 10px;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .stat-item {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        background: rgba(33, 38, 45, 0.6);
        border-radius: 12px;
        border: 1px solid #30363d;
    }

    .stat-item i {
        font-size: 1.5rem;
        min-width: 24px;
    }

    .stat-info {
        flex: 1;
    }

    .stat-label {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.2rem;
    }

    .stat-detail {
        font-size: 0.8rem;
        color: #8b949e;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        justify-content: center;
        text-align: center;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
        justify-content: center;
    }

    .hero-scroll-indicator {
        margin-top: 2rem;
    }

    /* Enhanced Navigation Mobile */
    .nav-container {
        padding: 0 16px;
        height: 65px;
    }

    .nav-logo {
        gap: 8px;
    }

    .logo-name {
        font-size: 1.1rem;
    }

    .status-indicator {
        padding: 4px 8px;
        border-radius: 16px;
    }

    .status-text {
        font-size: 0.7rem;
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        height: calc(100vh - 65px);
        background: rgba(13, 17, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 30px 20px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid #30363d;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-item {
        width: 100%;
        margin-bottom: 8px;
    }

    .nav-link {
        padding: 16px 20px;
        justify-content: flex-start;
        border-radius: 12px;
        width: 100%;
        height: auto;
        gap: 12px;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .nav-link i {
        font-size: 1.2rem;
        min-width: 20px;
    }

    .nav-link span {
        display: inline;
    }

    .nav-link:hover {
        background: rgba(88, 166, 255, 0.15);
        transform: translateX(4px);
    }

    .nav-indicator {
        display: none;
    }

    .quick-actions {
        display: none;
    }

    .nav-github-btn,
    .nav-cta-btn {
        display: none;
    }

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

    /* Enhanced Section Titles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
        padding: 0 10px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
        text-align: center;
    }

    /* Enhanced About Section Mobile */
    .about-content {
        display: block;
    }

    .about-text {
        margin-bottom: 2rem;
    }

    .intro-text {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    /* Enhanced Cards for Mobile */
    .fun-fact,
    .currently-learning,
    .personal-interests {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }

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

    .interest-item {
        padding: 1.2rem 1rem;
        text-align: center;
    }

    .interest-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.8rem;
    }

    .interest-icon i {
        font-size: 1.2rem;
    }

    .interest-content h5 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .interest-content p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    /* Enhanced Stats Section Mobile */
    .enhanced-stats {
        padding: 1.5rem;
        text-align: center;
    }

    .stats-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center;
        align-items: center;
    }

    .stat-item {
        padding: 1.2rem 1rem;
        min-height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 0.8rem;
    }

    .stat-icon i {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
        text-align: center;
    }

    .stat-number.infinite {
        font-size: 2rem;
    }

    .stat-unit {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
        text-align: center;
    }

    .stat-label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
        text-align: center;
    }

    .stat-description {
        font-size: 0.7rem;
        text-align: center;
    }

    .achievement-badges {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        justify-content: center;
    }

    .badge {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    /* Enhanced Timeline Mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
        margin-bottom: 2rem;
    }

    .timeline-dot {
        left: 10px !important;
        right: auto !important;
        width: 16px;
        height: 16px;
    }

    .timeline-content {
        padding: 1.2rem;
        border-radius: 16px;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .timeline-period {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    /* Enhanced Skills Section Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .skill-category h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .skill-items {
        gap: 0.6rem;
    }

    .skill-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 16px;
    }

    .expertise-highlight {
        padding: 1.5rem;
        margin-top: 2rem;
        border-radius: 16px;
    }

    .expertise-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .expertise-item {
        padding: 1rem;
        border-radius: 12px;
        text-align: center;
    }

    .expertise-item i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .expertise-item span {
        font-size: 0.85rem;
    }

    /* Enhanced Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .contact-info p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        padding: 0 10px;
    }

    .contact-links {
        gap: 0.8rem;
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-link {
        padding: 1rem;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .contact-link i {
        font-size: 1.3rem;
    }

    .contact-form {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .contact-form h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }

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

    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 12px;
    }

    /* Enhanced Footer Mobile */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
    }

    /* Enhanced Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    /* Touch-friendly improvements */
    .btn {
        min-height: 44px;
        touch-action: manipulation;
        /* Prevent accidental zooming and ensure stable transforms */
        transform-origin: center center;
    }

    .nav-link {
        min-height: 48px;
        touch-action: manipulation;
        transform-origin: center center;
    }

    .contact-link {
        min-height: 48px;
        touch-action: manipulation;
        transform-origin: center center;
    }

    /* Prevent tilt issues with cards and interactive elements */
    .project-card,
    .article-card,
    .stat-item,
    .interest-item,
    .article-stat-card {
        transform-origin: center center;
        backface-visibility: hidden;
        /* Prevent rendering glitches */
        -webkit-backface-visibility: hidden;
    }

    /* Stable hover effects for mobile - no rotation */
    .project-card:hover,
    .article-card:hover {
        transform: translateY(-4px);
        /* Reduced movement for mobile */
    }

    .stat-item:hover,
    .interest-item:hover {
        transform: translateY(-2px);
        /* Minimal movement */
    }

    /* Override any desktop rotation effects on mobile */
    .stat-item:hover .stat-icon,
    .article-stat-card:hover .article-stat-icon,
    .interest-item:hover .interest-icon {
        transform: scale(1.05) !important;
        /* Force override, no rotation */
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {

    /* Ultra-compact mobile optimizations */
    .container {
        padding: 0 12px;
    }

    /* Prevent any tilt or layout issues on very small screens */
    * {
        transform-origin: center center;
    }

    /* Ensure stable layouts */
    .hero,
    .about,
    .experience,
    .skills,
    .projects,
    .articles,
    .stats,
    .contact {
        transform: none !important;
        position: relative;
    }

    .hero {
        padding: 90px 12px 50px;
    }

    .hero-title .name {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        max-width: 260px;
    }

    .hero-buttons .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Single column layouts for very small screens */
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .expertise-items {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
        min-height: auto;
    }

    /* Improved spacing */
    section {
        padding: 50px 0;
    }

    .nav-container {
        height: 60px;
        padding: 0 12px;
    }

    .nav-menu {
        top: 60px;
        padding: 20px 12px;
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    /* Compact cards */
    .fun-fact,
    .currently-learning,
    .personal-interests {
        padding: 1.2rem;
    }

    .skill-category {
        padding: 1.2rem;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    /* Smaller badges and buttons */
    .badge {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
}