/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338ca;
    --secondary-color: #EC4899;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --bg-gradient-1: #EEF2FF;
    --bg-gradient-2: #FDF2F8;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 40px -10px rgba(79, 70, 229, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.1);
    --sidebar-width: 280px;
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, #FFFFFF 50%, var(--bg-gradient-2) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Animated text gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), #8B5CF6, var(--primary-color));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {

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

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

/* ========================
   CURSOR GLOW FOLLOWER
   ======================== */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: left, top;
}

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

/* ========================
   GLASS MORPHISM (Enhanced)
   ======================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative;
}

/* ========================
   SIDEBAR (Enhanced)
   ======================== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(236, 72, 153, 0.05));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-nav-link:hover::before,
.sidebar-nav-link.active::before {
    opacity: 1;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
    color: var(--primary-color);
    padding-left: 1.25rem;
    transform: translateX(4px);
}

.sidebar-nav-link.active {
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.sidebar-nav-link i {
    transition: transform 0.3s ease;
}

.sidebar-nav-link:hover i {
    transform: scale(1.2) rotate(-5deg);
}

/* ========================
   MAIN CONTENT
   ======================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    position: relative;
    z-index: 1;
}

/* ========================
   HERO SECTION (Enhanced)
   ======================== */
.hero-bg {
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

/* Typing cursor blink */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary-color);
    margin-left: 4px;
    animation: blink 0.8s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ========================
   3D TILT CARDS
   ======================== */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease-out;
}

.tilt-card-inner {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tilt-card:hover .tilt-card-inner {
    transform: translateZ(20px);
}

/* ========================
   ANIMATED GRADIENT BORDER
   ======================== */
.gradient-border {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), #8B5CF6, #06B6D4, var(--primary-color));
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderRotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }

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

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

/* ========================
   FEATURE & PROJECT CARDS
   ======================== */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on hover */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::after {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 70, 229, 0.3);
}

.project-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    transform-style: preserve-3d;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.2), 0 0 30px -10px rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.3);
}

.project-image-wrapper {
    overflow: hidden;
    height: 200px;
    position: relative;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================
   BUTTONS (Enhanced)
   ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

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

.btn-outline:hover {
    background: rgba(79, 70, 229, 0.05);
    transform: translateY(-2px);
}

/* ========================
   LINKEDIN CTA (Enhanced)
   ======================== */
.linkedin-cta-card {
    background: linear-gradient(135deg, #0077b5 0%, #005582 50%, #003d5c 100%);
    background-size: 200% 200%;
    animation: linkedinGradient 5s ease infinite;
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 35px -5px rgba(0, 119, 181, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.linkedin-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: linkedinShine 6s linear infinite;
}

@keyframes linkedinGradient {

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

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

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

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

.linkedin-cta-btn {
    background: white;
    color: #0077b5;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.linkedin-cta-btn:hover {
    transform: scale(1.08) translateY(-2px);
    background: #f0f9ff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ========================
   SCROLLBAR (Gradient)
   ======================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--primary-hover), #db2777);
}

/* ========================
   SCROLL REVEAL ANIMATIONS
   ======================== */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* ========================
   SCAN / BEAM ANIMATION
   ======================== */
@keyframes scan {
    0% {
        top: 0;
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0.3;
    }
}

.animate-scan {
    animation: scan 2.5s ease-in-out infinite alternate;
}

/* ========================
   GLOW PULSE
   ======================== */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(79, 70, 229, 0.3), 0 0 60px rgba(79, 70, 229, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(79, 70, 229, 0.5), 0 0 100px rgba(79, 70, 229, 0.2);
    }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* ========================
   SHIMMER LOADING
   ======================== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

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

.shimmer-effect {
    background: linear-gradient(90deg, transparent 25%, rgba(255, 255, 255, 0.5) 50%, transparent 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ========================
   FLOATING TAGS
   ======================== */
.floating-tag {
    transition: all 0.3s ease;
    cursor: default;
}

.floating-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================
   MOBILE RESPONSIVENESS
   ======================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding-top: 4rem;
    }

    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .cursor-glow {
        display: none;
    }
}

/* ========================
   FOCUS STYLES FOR ACCESSIBILITY
   ======================== */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.sidebar-nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 0;
    background: rgba(79, 70, 229, 0.1);
}

/* ========================
   MOCK BROWSER STYLES
   ======================== */
.mock-browser {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mock-browser-header {
    background: #f3f4f6;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.mock-browser-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
}

.mock-browser-dot.red {
    background-color: #ef4444;
}

.mock-browser-dot.yellow {
    background-color: #f59e0b;
}

.mock-browser-dot.green {
    background-color: #10b981;
}

.mock-browser-content {
    flex: 1;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    position: relative;
    overflow: hidden;
}

/* ========================
   BLOB ANIMATIONS
   ======================== */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

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

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.project-image-wrapper .mock-browser {
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: none;
}

/* ========================
   CERTIFICATION GRID
   ======================== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Horizontal Scroll Layout for "Show All" */
.cert-grid.horizontal {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #4F46E5 transparent;
}

.cert-grid.horizontal::-webkit-scrollbar {
    height: 8px;
}

.cert-grid.horizontal::-webkit-scrollbar-track {
    background: rgba(79, 70, 229, 0.1);
    border-radius: 4px;
}

.cert-grid.horizontal::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #4F46E5, #EC4899);
    border-radius: 4px;
}

.cert-grid.horizontal .certification-card {
    flex: 0 0 300px;
    min-width: 300px;
    max-width: 300px;
}

/* Hide scrollbar for mobile but keep functionality */
@media (max-width: 768px) {
    .cert-grid.horizontal {
        scrollbar-width: none;
    }

    .cert-grid.horizontal::-webkit-scrollbar {
        display: none;
    }
}

.certification-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on card hover */
.certification-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.04), transparent);
    transition: left 0.5s ease;
}

.certification-card:hover::after {
    left: 100%;
}

.certification-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(79, 70, 229, 0.3);
}

.cert-issuer {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.125rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.cert-meta {
    border-top: 1px solid #f3f4f6;
    padding-top: 0.75rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.cert-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

/* Animated underline on links */
.cert-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.cert-link:hover::after {
    width: 100%;
}

.cert-link:hover {
    color: var(--primary-hover);
}

/* ALL Buttons - Prevent Transform Issues */
button,
.btn,
[role="button"],
button:hover,
.btn:hover,
[role="button"]:hover,
button:active,
.btn:active,
[role="button"]:active,
button:focus,
.btn:focus,
[role="button"]:focus {
    transform: none !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease !important;
    contain: layout style paint !important;
    isolation: isolate !important;
}

/* Cert Tabs - Prevent 3D Transform Issues */
.cert-tab,
.cert-tab[data-magnetic-init],
.cert-tab:hover,
.cert-tab:active,
.cert-tab:focus {
    transform: none !important;
    transition: all 0.3s ease !important;
    contain: layout style paint !important;
    isolation: isolate !important;
}

/* Show More Button - Prevent Transform Issues - NO HOVER SCALE */
#show-more-certifications,
#show-more-certifications[data-magnetic-init],
#show-more-certifications:hover,
#show-more-certifications:active,
#show-more-certifications:focus {
    transform: none !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
    contain: layout style paint !important;
    isolation: isolate !important;
}

/* Mobile Menu Button - Prevent Transform Issues - NO HOVER SCALE */
#mobile-menu-btn,
#mobile-menu-btn[data-magnetic-init],
#mobile-menu-btn:hover,
#mobile-menu-btn:active,
#mobile-menu-btn:focus {
    transform: none !important;
    transition: background-color 0.3s ease !important;
    contain: layout style paint !important;
    isolation: isolate !important;
}

/* Sidebar Nav Links - Keep Clean */
.sidebar-nav-link,
.sidebar-nav-link:hover,
.sidebar-nav-link:active,
.sidebar-nav-link:focus {
    transform: none !important;
}

/* ========================
   SKILLS DYNAMIC CONTAINER
   ======================== */
.skills-category {
    margin-bottom: 2rem;
}

.skills-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
    display: inline-block;
}

/* Skill items with 3D effect */
.skill-item {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-item:hover {
    transform: perspective(1000px) rotateX(3deg) rotateY(-3deg) translateZ(15px);
}

/* Skill tags */
.skill-tag,
.tech-tag {
    transition: all 0.3s ease;
    cursor: default;
}

/* Learning cards */
.learning-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.learning-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateZ(20px);
    box-shadow: var(--shadow-hover);
}

/* ========================
   STAT NUMBER GRADIENT
   ======================== */
.stat-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}

/* ========================
   PAGE LOAD ANIMATION
   ======================== */
.page-loaded .main-content {
    animation: fadeInUp 0.8s ease-out;
}

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

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

/* ========================
   RIPPLE CLICK
   ======================== */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.15);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========================
   LIGHTWEIGHT 3D EFFECTS
   ======================== */

/* Floating 3D Shapes Background */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(60px);
    animation: float3D 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #4F46E5, #8B5CF6);
    top: 10%;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #EC4899, #F472B6);
    top: 40%;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #06B6D4, #8B5CF6);
    bottom: 20%;
    right: 10%;
    animation-delay: -10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #4F46E5, #06B6D4);
    top: 60%;
    left: 20%;
    animation-delay: -15s;
}

.shape-5 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #EC4899, #4F46E5);
    bottom: 10%;
    left: -80px;
    animation-delay: -8s;
}

@keyframes float3D {

    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
    }

    25% {
        transform: translateY(-30px) rotateX(5deg) rotateY(10deg) scale(1.05);
    }

    50% {
        transform: translateY(-20px) rotateX(-3deg) rotateY(-5deg) scale(0.95);
    }

    75% {
        transform: translateY(-40px) rotateX(8deg) rotateY(-10deg) scale(1.02);
    }
}

/* Enhanced 3D Card Tilt */
.tilt-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

.tilt-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(20px);
}

/* 3D Flip Entrance */
.flip-in {
    animation: flipIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(90deg);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg);
    }
}

/* 3D Hover Lift */
.hover-lift-3d {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.hover-lift-3d:hover {
    transform: translateY(-10px) translateZ(30px) rotateX(2deg);
    box-shadow:
        0 20px 40px -10px rgba(79, 70, 229, 0.3),
        0 0 0 1px rgba(79, 70, 229, 0.1);
}

/* 3D Perspective Container */
.perspective-container {
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* 3D Rotating Badge */
.badge-3d {
    transform-style: preserve-3d;
    animation: badgeRotate 4s ease-in-out infinite;
}

@keyframes badgeRotate {

    0%,
    100% {
        transform: rotateY(0deg) translateZ(20px);
    }

    50% {
        transform: rotateY(180deg) translateZ(20px);
    }
}

/* 3D Text Shadow */
.text-3d {
    text-shadow:
        1px 1px 0 rgba(79, 70, 229, 0.1),
        2px 2px 0 rgba(79, 70, 229, 0.08),
        3px 3px 0 rgba(79, 70, 229, 0.06),
        4px 4px 10px rgba(79, 70, 229, 0.1);
    transition: all 0.3s ease;
}

.text-3d:hover {
    text-shadow:
        1px 1px 0 rgba(79, 70, 229, 0.15),
        2px 2px 0 rgba(79, 70, 229, 0.12),
        3px 3px 0 rgba(79, 70, 229, 0.09),
        4px 4px 0 rgba(79, 70, 229, 0.06),
        8px 8px 20px rgba(79, 70, 229, 0.2);
    transform: translateZ(10px);
}

/* 3D Skill Bar */
.skill-bar-3d {
    transform-origin: left center;
    animation: skillGrow3D 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes skillGrow3D {
    from {
        transform: scaleX(0) rotateY(-45deg);
        opacity: 0;
    }

    to {
        transform: scaleX(1) rotateY(0deg);
        opacity: 1;
    }
}

/* 3D Parallax Scroll Effect */
.parallax-3d {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Glitch Effect for Tech Items */
.glitch-hover:hover {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {

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

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

/* Neumorphic 3D Cards */
.neumorphic-3d {
    background: linear-gradient(145deg, #ffffff, #f3f4f6);
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.08),
        -8px -8px 16px rgba(255, 255, 255, 0.9),
        inset 1px 1px 0 rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.neumorphic-3d:hover {
    box-shadow:
        12px 12px 24px rgba(0, 0, 0, 0.12),
        -12px -12px 24px rgba(255, 255, 255, 1),
        inset 2px 2px 4px rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
}

/* 3D Underline Animation */
.underline-3d {
    position: relative;
    display: inline-block;
}

.underline-3d::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4F46E5, #EC4899);
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.underline-3d:hover::after {
    width: 100%;
}

/* Pulse Glow Effect */
.pulse-glow {
    animation: pulseGlow3D 2s ease-in-out infinite;
}

@keyframes pulseGlow3D {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 40px rgba(79, 70, 229, 0.4), 0 0 80px rgba(79, 70, 229, 0.2);
        transform: scale(1.02);
    }
}

/* 3D Rotating Orbit for Icons */
.orbit-icon {
    animation: orbit3DIcon 6s linear infinite;
    transform-style: preserve-3d;
}

@keyframes orbit3DIcon {
    from {
        transform: rotateY(0deg) translateZ(30px) rotateY(0deg);
    }

    to {
        transform: rotateY(360deg) translateZ(30px) rotateY(-360deg);
    }
}

/* Smooth Entrance Animations */
.entrance-fade-up {
    animation: entranceFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes entranceFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.entrance-scale {
    animation: entranceScale 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes entranceScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

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

/* ==========================================
   EXTREME 3D EFFECTS - MAXIMUM DRAMA
   ========================================== */

/* Section 3D Perspective */
section {
    transform-style: preserve-3d;
    perspective: 2000px;
}

/* Card Flip Container */
.flip-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.flip-container:hover .flipper {
    transform: rotateY(180deg);
}

.flipper {
    transition: 0.6s;
    transform-style: preserve-3d;
    position: relative;
}

.front,
.back {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.back {
    transform: rotateY(180deg);
}

/* 3D Layer System */
.layer-1 {
    transform: translateZ(0px);
}

.layer-2 {
    transform: translateZ(50px);
}

.layer-3 {
    transform: translateZ(100px);
}

/* Super Float Animation */
.super-float {
    animation: superFloat 6s ease-in-out infinite;
}

@keyframes superFloat {

    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg) translateZ(0px);
    }

    25% {
        transform: translateY(-20px) rotateX(5deg) rotateY(10deg) translateZ(20px);
    }

    50% {
        transform: translateY(-10px) rotateX(-3deg) rotateY(-5deg) translateZ(10px);
    }

    75% {
        transform: translateY(-30px) rotateX(8deg) rotateY(-10deg) translateZ(30px);
    }
}

/* Neon Glow Effect */
.neon-glow {
    text-shadow:
        0 0 5px #4F46E5,
        0 0 10px #4F46E5,
        0 0 20px #4F46E5,
        0 0 40px #4F46E5;
    animation: neonPulse 1.5s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow:
            0 0 5px #4F46E5,
            0 0 10px #4F46E5,
            0 0 20px #4F46E5,
            0 0 40px #4F46E5;
    }

    to {
        text-shadow:
            0 0 10px #EC4899,
            0 0 20px #EC4899,
            0 0 40px #EC4899,
            0 0 80px #EC4899;
    }
}

/* 3D Shimmer Effect */
.shimmer-3d {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    background-size: 200% 100%;
    animation: shimmer3D 2s infinite;
}

@keyframes shimmer3D {
    0% {
        background-position: -200% 0;
    }

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

/* Warp Speed Scroll Effect */
.warp-speed {
    animation: warpSpeed 0.5s ease-out;
}

@keyframes warpSpeed {
    0% {
        transform: perspective(1000px) translateZ(-500px) scale(0.5);
        opacity: 0;
    }

    100% {
        transform: perspective(1000px) translateZ(0) scale(1);
        opacity: 1;
    }
}

/* Bouncing 3D Effect */
.bounce-3d {
    animation: bounce3D 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounce3D {

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

    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

/* Spin Entrance */
.spin-in {
    animation: spinIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spinIn {
    from {
        transform: perspective(1000px) rotateY(-180deg) scale(0);
        opacity: 0;
    }

    to {
        transform: perspective(1000px) rotateY(0) scale(1);
        opacity: 1;
    }
}

/* Elastic Bounce */
.elastic-bounce {
    animation: elasticBounce 1s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

@keyframes elasticBounce {
    0% {
        transform: scale(0) translateZ(-200px);
    }

    50% {
        transform: scale(1.2) translateZ(50px);
    }

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

/* Card Stack Effect */
.card-stack {
    transform-style: preserve-3d;
}

.card-stack>*:nth-child(1) {
    transform: translateZ(0px);
}

.card-stack>*:nth-child(2) {
    transform: translateZ(20px);
}

.card-stack>*:nth-child(3) {
    transform: translateZ(40px);
}

.card-stack>*:nth-child(4) {
    transform: translateZ(60px);
}

/* Morphing Border */
.morph-border {
    animation: morphBorder 4s ease-in-out infinite;
}

@keyframes morphBorder {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Liquid Effect */
.liquid {
    animation: liquid 3s ease-in-out infinite;
}

@keyframes liquid {

    0%,
    100% {
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }

    25% {
        border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%;
    }

    50% {
        border-radius: 45% 55% 40% 60% / 40% 60% 45% 55%;
    }

    75% {
        border-radius: 55% 45% 50% 50% / 60% 40% 55% 45%;
    }
}

/* Rainbow Border Animation */
.rainbow-border {
    background: linear-gradient(90deg, #4F46E5, #EC4899, #8B5CF6, #06B6D4, #4F46E5);
    background-size: 400% 100%;
    animation: rainbowMove 3s linear infinite;
    padding: 3px;
    border-radius: 16px;
}

.rainbow-border>* {
    background: white;
    border-radius: 13px;
}

@keyframes rainbowMove {
    0% {
        background-position: 0% 50%;
    }

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

/* Holographic Effect */
.holographic {
    background: linear-gradient(135deg,
            rgba(79, 70, 229, 0.1) 0%,
            rgba(236, 72, 153, 0.1) 25%,
            rgba(139, 92, 246, 0.1) 50%,
            rgba(6, 182, 212, 0.1) 75%,
            rgba(79, 70, 229, 0.1) 100%);
    background-size: 400% 400%;
    animation: holographicShift 8s ease infinite;
}

@keyframes holographicShift {
    0% {
        background-position: 0% 50%;
    }

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

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

/* ========================
   REDUCED MOTION SUPPORT
   ======================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-blob,
    .animate-float,
    .floating-shape,
    .animate-scan,
    .glow-pulse,
    .pulse-glow,
    .orbit-icon,
    .badge-3d,
    .super-float,
    .neon-glow,
    .morph-border,
    .liquid,
    .shimmer-effect,
    .shimmer-3d {
        animation: none !important;
    }

    .cursor-glow,
    .spotlight-effect,
    .ambient-particles {
        display: none !important;
    }

    .tilt-card:hover .tilt-card-inner,
    .hover-lift-3d:hover,
    .tilt-3d:hover,
    .skill-item:hover,
    .learning-card:hover {
        transform: none !important;
    }
}

/* ========================
   USER EFFECT CONTROLS
   ======================== */
/* Disable 3D Tilt Effects */
body.disable-tilt .project-card:hover,
body.disable-tilt .certification-card:hover,
body.disable-tilt .feature-card:hover,
body.disable-tilt .skill-item:hover,
body.disable-tilt .learning-card:hover {
    transform: translateY(-8px) !important;
}

/* Disable Floating Animations */
body.disable-float .animate-float,
body.disable-float .animate-blob,
body.disable-float .floating-shape,
body.disable-float .super-float,
body.disable-float .float-animated {
    animation: none !important;
}

body.disable-float [style*="staggerFloat"] {
    animation: none !important;
}

/* Floating animation for cards (class-based) */
.float-animated:not(:hover) {
    animation: subtleFloat 6s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}