/* Enhanced style.css with Complete Blue Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #2563eb;
    --blue-600: #1d4ed8;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --blue-300: #93c5fd;
    --blue-200: #bfdbfe;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-color: var(--primary-blue);
    --accent-hover: var(--blue-600);
    --border-color: #e2e8f0;
    --text-on-dark: #ffffff;
    --success-color: #10b981;
    --error-color: #ef4444;
    --card-shadow: 0 4px 6px -1px rgba(30, 41, 59, 0.1), 0 2px 4px -1px rgba(30, 41, 59, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(30, 41, 59, 0.1), 0 10px 10px -5px rgba(30, 41, 59, 0.04);
    --card-shadow-3d: 0 25px 50px -12px rgba(30, 41, 59, 0.25);
}

:root[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --card-shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Prevent scroll jumps on mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: auto;
    }
    
    html:not(:hover) {
        scroll-behavior: smooth;
    }
    
    body {
        overflow-x: hidden;
        position: relative;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent layout shifts from images */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Prevent focus from causing scroll */
    *:focus {
        scroll-margin-top: 80px;
    }
    
    /* Prevent animation from causing scroll */
    .reveal {
        will-change: transform, opacity;
    }
    
    .reveal.active {
        will-change: auto;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    perspective: 1000px;
}

/* 3D Blue Background Elements */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    filter: blur(1px);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    background: linear-gradient(135deg, var(--blue-300), var(--blue-500));
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
    background: linear-gradient(135deg, var(--blue-200), var(--blue-400));
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 20%;
    animation-delay: 1s;
    background: linear-gradient(135deg, var(--blue-300), var(--blue-500));
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(180deg) scale(1.1);
    }
}

/* Particle Canvas with Blue Theme */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--blue-600);
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
    font-weight: 500;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Lazy loading styles */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy-loaded {
    opacity: 1;
}

.lazy-image {
    background: var(--bg-secondary);
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.lazy-loaded {
    opacity: 1;
}

.lazy-image.lazy-error {
    opacity: 1;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
    transition: all 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Stagger animations */
.skill-item:nth-child(1) {
    transition-delay: 0.1s;
}

.skill-item:nth-child(2) {
    transition-delay: 0.2s;
}

.skill-item:nth-child(3) {
    transition-delay: 0.3s;
}

.skill-item:nth-child(4) {
    transition-delay: 0.4s;
}

.project-card:nth-child(1) {
    transition-delay: 0.1s;
}

.project-card:nth-child(2) {
    transition-delay: 0.2s;
}

.project-card:nth-child(3) {
    transition-delay: 0.3s;
}

.page-transition {
    padding: 100px 0;
    background: var(--bg-primary);
    opacity: 0;
    transform: translateY(20px) rotateX(5deg);
    animation: slideUp 0.6s ease forwards;
}

#home {
    animation-delay: 0.1s;
}

#about {
    animation-delay: 0.2s;
}

#skills {
    animation-delay: 0.3s;
}

#projects {
    animation-delay: 0.4s;
}

#contact {
    animation-delay: 0.5s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.max-width {
    max-width: 1200px;
    padding: 0 2rem;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
    transform-style: preserve-3d;
}

.section-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
    margin-left: 2rem;
    max-width: 200px;
}

.section-header::before {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
    margin-right: 2rem;
    max-width: 200px;
}

/* Enhanced Home Section with Split Layout */
.home {
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--bg-primary) 50%, var(--blue-100) 100%);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    padding: 120px 0 80px;
}

:root[data-theme="dark"] .home {
    background: linear-gradient(135deg, #0c4a6e 0%, var(--bg-primary) 50%, #1e3a8a 100%);
}

.home .max-width {
    position: relative;
    z-index: 1;
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    padding-right: 2rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Orbital System for Profile */
.orbital-system {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit {
    position: absolute;
    border: 2px solid var(--blue-200);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.orbit-1 {
    width: 300px;
    height: 300px;
    border-color: var(--blue-300);
    animation-duration: 25s;
}

.orbit-2 {
    width: 350px;
    height: 350px;
    border-color: var(--blue-200);
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 400px;
    height: 400px;
    border-color: var(--blue-100);
    animation-duration: 35s;
}

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

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

.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: var(--blue-400);
    animation: floatOrb 4s ease-in-out infinite;
}

.orb-1 {
    width: 12px;
    height: 12px;
    top: 50px;
    left: 50px;
    animation-delay: 0s;
    background: var(--blue-500);
}

.orb-2 {
    width: 8px;
    height: 8px;
    bottom: 80px;
    right: 60px;
    animation-delay: 1.5s;
    background: var(--blue-400);
}

.orb-3 {
    width: 6px;
    height: 6px;
    top: 100px;
    right: 100px;
    animation-delay: 2.5s;
    background: var(--blue-300);
}

@keyframes floatOrb {

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

    50% {
        transform: translateY(-10px) scale(1.2);
    }
}

.profile-container {
    position: relative;
    z-index: 10;
}

.image-3d-container {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* 3D Animated Shape */
.animated-3d-shape {
    width: 280px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 20s linear infinite;
}

.shape-3d-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(45deg) rotateY(45deg);
}

.cube-face {
    position: absolute;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    border: 2px solid var(--blue-400);
    opacity: 0.9;
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.cube-face.front {
    transform: rotateY(0deg) translateZ(70px);
    background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(70px);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(70px);
    background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(70px);
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(70px);
    background: linear-gradient(135deg, var(--blue-400), var(--blue-300));
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(70px);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
}

.particle-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 2px solid var(--blue-400);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse-ring 2s ease-in-out infinite;
}

.particle-ring::before,
.particle-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border: 1px solid var(--blue-300);
    border-radius: 50%;
    opacity: 0.4;
}

.particle-ring::before {
    animation: pulse-ring 2s ease-in-out infinite 0.5s;
}

.particle-ring::after {
    width: 340px;
    height: 340px;
    animation: pulse-ring 2s ease-in-out infinite 1s;
}

@keyframes rotate3d {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@keyframes pulse-ring {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

.animated-3d-shape:hover {
    animation-duration: 10s;
}

.animated-3d-shape:hover .shape-3d-inner {
    transform: rotateX(60deg) rotateY(60deg) scale(1.1);
}

.blue-orbital-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--blue-400), var(--blue-600), var(--blue-400));
    animation: rotate 15s linear infinite;
    z-index: -1;
    filter: blur(1px);
    opacity: 0.7;
}

.blue-orbital-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, var(--blue-300), var(--blue-500), var(--blue-300));
    animation: rotate 12s linear infinite reverse;
    z-index: -2;
    opacity: 0.5;
}

/* Hero Text Styling */
.hero-text .text-1 {
    font-size: 1.4rem;
    color: var(--blue-600);
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: slideUpFade 0.8s ease 0.2s forwards;
}

.hero-text .text-2 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: slideUpFade 0.8s ease 0.4s forwards;
}

.hero-text .text-3 {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideUpFade 0.8s ease 0.6s forwards;
}

.hero-text .text-3 > span {
    opacity: 1;
}

.hero-text .text-3.visible,
.hero-text .text-3[style*="opacity"] {
    opacity: 1 !important;
}

.hero-text .text-3 span {
    color: var(--blue-500);
    font-weight: 600;
    display: inline-block;
    min-width: auto;
}

.hero-text .text-3 span.typing {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--blue-400) !important;
    min-width: auto;
    height: auto;
    line-height: 1.5;
    font-weight: 600;
    position: relative;
    margin-left: 3px;
}

/* Force visibility even when parent has opacity animation */
.hero-text .text-3 {
    opacity: 0;
    animation: slideUpFade 0.8s ease 0.6s forwards;
}

.hero-text .text-3 span.typing,
.hero-text .text-3 span[data-i18n="iam"] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* About section typing animation */
.about .text span.typing-2 {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--blue-400) !important;
    min-width: auto;
    height: auto;
    line-height: 1.5;
    font-weight: 600;
    position: relative;
    margin-left: 3px;
}

.about .text .typed-cursor {
    color: var(--blue-400) !important;
    opacity: 1 !important;
    font-weight: 600;
    animation: blink 1s infinite;
    margin-left: 2px;
    display: inline-block;
}

.about .text span[data-i18n="aboutTitle"],
.about .text span.typing-2 {
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-text .text-3 span.typing:empty::before {
    content: 'IT Student';
    color: var(--blue-400);
    opacity: 1;
    font-weight: 600;
}

/* Ensure typed content is visible */
.hero-text .text-3 span.typing span,
.hero-text .text-3 span.typing .typed-cursor {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-text .text-3 .typed-cursor {
    color: var(--blue-400) !important;
    opacity: 1 !important;
    font-weight: 600;
    animation: blink 1s infinite;
    margin-left: 2px;
    display: inline-block;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
    opacity: 0;
    animation: slideUpFade 0.8s ease 0.8s forwards;
}

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

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

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUpFade 0.8s ease 1s forwards;
}

.primary-btn {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: white;
    border: none;
}

.primary-btn:hover {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    transform: translateY(-3px) translateZ(10px);
}

.secondary-btn {
    background: transparent;
    color: var(--blue-600);
    border: 2px solid var(--blue-600);
}

.secondary-btn:hover {
    background: var(--blue-600);
    color: white;
}

/* Enhanced Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: slideUpFade 0.8s ease 1.2s forwards;
}

.social-link {
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    color: var(--blue-600);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    border: 2px solid var(--blue-200);
    transform-style: preserve-3d;
    box-shadow: var(--card-shadow);
    position: relative;
    padding: 0;
    margin: 0;
    text-decoration: none;
}

.social-link i {
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.social-link:hover {
    background: var(--blue-600);
    color: white;
    transform: translateY(-5px) rotateY(180deg) scale(1.1);
    border-color: var(--blue-600);
    box-shadow: var(--card-shadow-hover);
}

:root[data-theme="dark"] .social-link {
    background: var(--bg-secondary);
    border-color: var(--blue-600);
    color: var(--blue-300);
}

:root[data-theme="dark"] .social-link i {
    color: var(--blue-300);
}

:root[data-theme="dark"] .social-link:hover {
    background: var(--blue-600);
    color: white;
    border-color: var(--blue-500);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--blue-600);
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

    40% {
        transform: translateY(-10px);
    }

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

/* Enhanced Navigation with Blue Theme */
.navbar,
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--blue-100);
    z-index: 1000;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

:root[data-theme="dark"] .navbar,
:root[data-theme="dark"] nav {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--blue-900);
}

.navbar {
    padding: 1rem 0;
}

.navbar.sticky {
    padding: 0.6rem 0;
    box-shadow: var(--card-shadow);
}

.navbar .max-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-3d {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.logo-3d:hover {
    transform: translateZ(10px) rotateY(5deg);
}

.logo-3d span {
    color: var(--blue-600);
}

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

.nav-link-3d {
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    transform-style: preserve-3d;
}

.nav-link-3d:hover {
    color: var(--blue-600);
    transform: translateZ(5px);
}

.nav-link-3d::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-600);
    transition: width 0.3s ease;
    transform: translateZ(-1px);
}

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

/* Language Selector */
.menu-btn {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-btn:hover {
    transform: rotate(90deg);
    color: var(--blue-600);
}

.menu-btn i.active::before {
    content: "\f00d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.theme-toggle {
    background: none;
    border: 1px solid transparent;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.theme-toggle:hover {
    border-color: var(--blue-300);
    background: var(--blue-50);
    transform: rotate(15deg) translateZ(5px);
}

:root[data-theme="dark"] .theme-toggle:hover {
    border-color: var(--blue-600);
    background: var(--blue-900);
}

.scroll-up-btn {
    position: fixed;
    height: 45px;
    width: 42px;
    background: var(--blue-600);
    right: 30px;
    bottom: 20px;
    text-align: center;
    line-height: 45px;
    color: var(--text-on-dark);
    z-index: 999;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    transform-style: preserve-3d;
}

.scroll-up-btn:hover,
.scroll-up-btn:focus {
    transform: translateY(-3px) translateZ(5px);
    background: var(--blue-700);
    box-shadow: var(--card-shadow-hover);
}

.scroll-up-btn:active {
    transform: translateY(-1px) translateZ(2px);
}

.scroll-up-btn:focus {
    outline: 2px solid var(--blue-400);
    outline-offset: 2px;
}

.scroll-up-btn.show {
    opacity: 1;
    pointer-events: auto;
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
}

.magnetic-btn:hover {
    transform: translateZ(10px);
}

.btn-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    border-radius: inherit;
}

.magnetic-btn:hover .btn-hover-effect {
    transform: translateX(100%);
}

/* Enhanced Buttons with Blue Theme */
.cta-button,
.know-more-btn,
.send-btn,
.btn,
.view-portfolio {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: var(--text-on-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.cta-button:hover,
.send-btn:hover,
.btn:hover,
.view-portfolio:hover {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    transform: translateY(-3px) translateZ(10px);
    box-shadow: var(--card-shadow-3d);
}

.secondary-btn {
    background: transparent;
    color: var(--blue-600);
    border: 2px solid var(--blue-600);
}

.secondary-btn:hover {
    background: var(--blue-600);
    color: var(--text-on-dark);
}

/* Enhanced About Section with Blue Track */
.about .about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.about .column {
    flex: 1;
    min-width: 280px;
}

.about .text {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about .text span {
    color: var(--blue-600);
}

.imageContent {
    display: flex;
    justify-content: center;
    position: relative;
    transform-style: preserve-3d;
}

.blue-orbital-track {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 440px;
    border: 3px solid transparent;
    border-radius: 20px;
    background: conic-gradient(from 0deg, var(--blue-300), var(--blue-500), var(--blue-300));
    animation: rotate 20s linear infinite;
    z-index: -1;
    filter: blur(2px);
    opacity: 0.6;
}

.image-3d-wrapper {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.about-image-3d {
    border-radius: 20px;
    max-width: 320px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    box-shadow: var(--card-shadow-3d);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
    border: 3px solid var(--blue-200);
    display: block;
    object-fit: cover;
}

.about-image-3d:hover {
    transform: rotateX(5deg) rotateY(5deg) scale(1.02);
    border-color: var(--blue-400);
    box-shadow:
        0 25px 50px -12px rgba(37, 99, 235, 0.3),
        inset 0 0 0 1px var(--blue-100);
}

/* Enhanced Learning Section */
.learning-section {
    margin: 2rem 0;
}

.learning-section h4 {
    color: var(--blue-600);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.floating-tag {
    background: var(--blue-50);
    color: var(--blue-700);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--blue-200);
    transition: all 0.3s ease;
    animation: floatTag 3s ease-in-out infinite;
    cursor: pointer;
}

:root[data-theme="dark"] .floating-tag {
    background: var(--bg-secondary);
    color: var(--blue-300);
    border: 1px solid var(--blue-600);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.floating-tag:nth-child(1) {
    animation-delay: 0s;
}

.floating-tag:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-tag:nth-child(3) {
    animation-delay: 1s;
}

.floating-tag:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes floatTag {

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

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

.floating-tag:hover {
    background: var(--blue-600);
    color: white;
    transform: translateY(-3px) scale(1.05);
    border-color: var(--blue-600);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.about-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Learning Goals */
.learning-goals {
    margin: 2rem 0;
}

.learning-goals h4 {
    color: var(--blue-600);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.learning-goals ul {
    list-style: none;
    padding-left: 0;
}

.floating-list-item {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    animation: floatListItem 4s ease-in-out infinite;
}

.floating-list-item:nth-child(1) {
    animation-delay: 0s;
}

.floating-list-item:nth-child(2) {
    animation-delay: 0.2s;
}

.floating-list-item:nth-child(3) {
    animation-delay: 0.4s;
}

.floating-list-item:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes floatListItem {

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

    50% {
        transform: translateX(5px);
    }
}

.floating-list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue-600);
    font-weight: bold;
}

.floating-list-item:hover {
    color: var(--blue-600);
    transform: translateX(10px);
}

/* Skills Section */
.skills .skills-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.skills .column {
    flex: 1;
    min-width: 280px;
}

.skill-item {
    margin-bottom: 2rem;
    transform-style: preserve-3d;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.skill-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.skill-percent {
    font-weight: 600;
    color: var(--blue-600);
}

.skill-bar {
    background: var(--bg-secondary);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
}

.skill-progress {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
    position: relative;
    overflow: hidden;
    width: 0;
    transition: width 1s cubic-bezier(0.23, 1, 0.320, 1);
    transform: translateZ(1px);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Projects Section with 3D Cards */
.projects {
    background: var(--blue-50);
}

:root[data-theme="dark"] .projects {
    background: var(--bg-secondary);
}

.projects-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

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

.project-3d-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    height: 480px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
}

.project-3d-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.card-front {
    padding: 1.5rem;
}

.card-back {
    transform: rotateY(180deg);
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
}

.project-3d-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue-400), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-3d-card:hover::before {
    opacity: 1;
}

.project-3d-card:hover {
    box-shadow: var(--card-shadow-3d);
    border-color: var(--blue-400);
    transform: translateY(-10px) rotateX(5deg);
}

.project-3d-card img {
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-3d-card:hover img {
    transform: scale(1.05);
}

.project-3d-card .text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-3d-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-front .buttons {
    margin-top: auto;
    padding-top: 1rem;
}

.card-front img {
    margin-bottom: 1rem;
}

.card-front .text {
    margin-bottom: 0.75rem;
}

.card-front p {
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.tech-tag {
    background: var(--blue-50);
    color: var(--blue-700);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--blue-200);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--blue-600);
    color: white;
    transform: translateY(-2px) scale(1.05);
    border-color: var(--blue-600);
}

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

.buttons .btn {
    flex: 1;
    min-width: 120px;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: var(--text-on-dark);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.buttons .btn:hover {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.projects-note {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 2rem;
}

/* Contact Section */
.contact .contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact .column {
    flex: 1;
    min-width: 280px;
}

.contact-info {
    margin: 2rem 0;
}

.floating-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--blue-50);
    border: 1px solid var(--blue-200);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
    animation: floatContact 5s ease-in-out infinite;
}

:root[data-theme="dark"] .floating-contact-item {
    background: var(--bg-secondary);
    border: 1px solid var(--blue-800);
}

.floating-contact-item:nth-child(1) {
    animation-delay: 0s;
}

.floating-contact-item:nth-child(2) {
    animation-delay: 1s;
}

.floating-contact-item:nth-child(3) {
    animation-delay: 2s;
}

@keyframes floatContact {

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

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

.floating-contact-item:hover {
    background: var(--blue-100);
    border-color: var(--blue-300);
    transform: translateY(-5px) translateZ(10px);
    box-shadow: var(--card-shadow-3d);
}

:root[data-theme="dark"] .floating-contact-item:hover {
    background: var(--blue-900);
    border-color: var(--blue-600);
}

.floating-contact-item i {
    font-size: 1.5rem;
    color: var(--blue-600);
    width: 40px;
}

.contact-details h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-availability {
    background: var(--blue-50);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    transform-style: preserve-3d;
    animation: floatAvailability 6s ease-in-out infinite;
    border: 1px solid var(--blue-200);
}

:root[data-theme="dark"] .contact-availability {
    background: var(--bg-secondary);
    border: 1px solid var(--blue-800);
}

@keyframes floatAvailability {

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

    50% {
        transform: translateY(-3px) rotateX(1deg);
    }
}

.contact-availability h4 {
    margin-bottom: 1rem;
    color: var(--blue-600);
}

.contact-availability p {
    color: var(--text-secondary);
}

.contact-form {
    width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
    transform-style: preserve-3d;
}

.input-3d {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    font-size: 1rem;
    font-family: inherit;
    transform-style: preserve-3d;
}

.input-3d:focus {
    border-color: var(--blue-600);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateZ(5px);
}

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

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
    font-weight: 500;
    padding: 0 0.2rem;
    transform: translateZ(1px);
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:valid+label,
.form-group textarea:valid+label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background: var(--bg-primary);
    color: var(--blue-600);
    transform: translateZ(5px);
}

/* Real-time validation styles */
.form-group input.valid,
.form-group textarea.valid {
    border-color: var(--success-color);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: var(--error-color);
}

.form-error {
    color: var(--error-color);
    font-size: 0.8rem;
    display: block;
    margin-top: 0.25rem;
    font-weight: 500;
}

.send-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.send-btn::before {
    content: '';
    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.5s ease;
}

.send-btn:hover::before {
    left: 100%;
}

.btn-loading {
    display: none;
}

.send-btn.sending .btn-text {
    display: none;
}

.send-btn.sending .btn-loading {
    display: block;
}

/* Footer */
footer {
    background: var(--blue-50);
    border-top: 1px solid var(--blue-200);
    padding: 3rem 0 1rem;
    transform-style: preserve-3d;
}

:root[data-theme="dark"] footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--blue-800);
}

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

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: var(--blue-600);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--blue-600);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    color: var(--blue-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid var(--blue-200);
}

.footer-social a:hover {
    background: var(--blue-600);
    color: var(--text-on-dark);
    transform: translateY(-2px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: var(--blue-600);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--blue-200);
    padding-top: 1.5rem;
    text-align: center;
}

:root[data-theme="dark"] .footer-bottom {
    border-top: 1px solid var(--blue-800);
}

.footer-bottom p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.made-with {
    font-size: 0.9rem;
    opacity: 0.8;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.scroll-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
    width: 0%;
    transition: width 0.1s ease;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--blue-600);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #111111;
        --text-primary: #ffffff;
        --border-color: #666666;
        --accent-color: #60a5fa;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .magnetic-btn:hover {
        transform: none;
    }
}

/* Tablet and Medium Screens */
@media (max-width: 1024px) {
    .max-width {
        padding: 0 1.5rem;
    }

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

    .about .about-content,
    .skills .skills-content,
    .contact .contact-content {
        gap: 2rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .max-width {
        padding: 0 1.5rem;
    }

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

    .hero-text {
        padding-right: 0;
        order: 2;
    }

    .hero-visual {
        order: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .orbital-system {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .animated-3d-shape {
        width: 220px;
        height: 220px;
    }
    
    .animated-3d-shape .cube-face {
        width: 110px;
        height: 110px;
    }
    
    .animated-3d-shape .cube-face.front {
        transform: rotateY(0deg) translateZ(55px);
    }
    .animated-3d-shape .cube-face.back {
        transform: rotateY(180deg) translateZ(55px);
    }
    .animated-3d-shape .cube-face.right {
        transform: rotateY(90deg) translateZ(55px);
    }
    .animated-3d-shape .cube-face.left {
        transform: rotateY(-90deg) translateZ(55px);
    }
    .animated-3d-shape .cube-face.top {
        transform: rotateX(90deg) translateZ(55px);
    }
    .animated-3d-shape .cube-face.bottom {
        transform: rotateX(-90deg) translateZ(55px);
    }
    
    .animated-3d-shape .particle-ring {
        width: 240px;
        height: 240px;
    }
    
    .animated-3d-shape .particle-ring::before {
        width: 260px;
        height: 260px;
    }
    
    .animated-3d-shape .particle-ring::after {
        width: 280px;
        height: 280px;
    }

    .blue-orbital-ring {
        width: 250px;
        height: 250px;
    }

    .hero-text .text-2 {
        font-size: 2.5rem;
    }

    .hero-text .text-3 {
        font-size: 1.4rem;
    }

    .project-3d-card {
        height: auto;
        min-height: 450px;
    }

    .card-inner {
        transform: none !important;
    }

    .card-front,
    .card-back {
        position: relative;
        transform: none;
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
    }

    .card-back {
        display: none;
    }

    .about .about-content,
    .skills .skills-content {
        flex-direction: column;
    }

    .about .column.left,
    .skills .column.left {
        width: 100%;
        margin-bottom: 2rem;
    }

    .about .column.right,
    .skills .column.right {
        width: 100%;
    }

    .about-image-3d {
        max-width: 100%;
        height: auto;
    }

    .imageContent {
        margin-bottom: 2rem;
    }

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

    .contact .contact-content {
        flex-direction: column;
    }

    .contact .column {
        width: 100%;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

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

    .navbar {
        padding: 1rem 0;
    }

    .navbar .max-width {
        padding: 0 1.25rem;
    }

    .menu-btn {
        display: block;
        z-index: 1002;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--card-shadow);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        margin: 0.5rem 0;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem;
        width: 100%;
        text-align: center;
    }

    .theme-toggle-item {
        margin-top: 1rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .orbital-system {
        width: 250px;
        height: 250px;
    }

    .animated-3d-shape {
        width: 180px;
        height: 180px;
    }
    
    .animated-3d-shape .cube-face {
        width: 90px;
        height: 90px;
    }
    
    .animated-3d-shape .cube-face.front {
        transform: rotateY(0deg) translateZ(45px);
    }
    .animated-3d-shape .cube-face.back {
        transform: rotateY(180deg) translateZ(45px);
    }
    .animated-3d-shape .cube-face.right {
        transform: rotateY(90deg) translateZ(45px);
    }
    .animated-3d-shape .cube-face.left {
        transform: rotateY(-90deg) translateZ(45px);
    }
    .animated-3d-shape .cube-face.top {
        transform: rotateX(90deg) translateZ(45px);
    }
    .animated-3d-shape .cube-face.bottom {
        transform: rotateX(-90deg) translateZ(45px);
    }
    
    .animated-3d-shape .particle-ring {
        width: 200px;
        height: 200px;
    }
    
    .animated-3d-shape .particle-ring::before {
        width: 220px;
        height: 220px;
    }
    
    .animated-3d-shape .particle-ring::after {
        width: 240px;
        height: 240px;
    }

    .blue-orbital-ring {
        width: 220px;
        height: 220px;
    }

    .home .text-2 {
        font-size: 2rem;
    }

    .section-header {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .section-header::before,
    .section-header::after {
        display: none;
    }

    .home .text-3 {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .buttons .btn {
        min-width: auto;
        width: 100%;
    }

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

    .about-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .about-actions .cta-button {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions .cta-button {
        width: 100%;
    }

    .project-3d-card {
        padding: 1.25rem;
    }

    .project-3d-card img {
        height: 180px;
    }

    .project-3d-card .text {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .project-3d-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

    .floating-contact-item {
        padding: 0.75rem;
    }

    .contact-availability {
        margin-top: 1.5rem;
    }

    .skill-item {
        margin-bottom: 1.5rem;
    }

    .learning-section,
    .learning-goals {
        margin-top: 1.5rem;
    }

    .skills-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .about .text {
        font-size: 1.5rem;
    }
}

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

    .navbar .max-width {
        padding: 0 1rem;
    }

    .about .about-content,
    .skills .skills-content,
    .contact .contact-content {
        gap: 1.5rem;
    }

    .hero-text {
        padding: 0;
    }

    .home .text-1 {
        font-size: 1rem;
    }

    .home .text-2 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .home .text-3 {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        padding: 0;
        line-height: 1.6;
    }

    .orbital-system {
        width: 200px;
        height: 200px;
    }

    .animated-3d-shape {
        width: 150px;
        height: 150px;
    }
    
    .animated-3d-shape .cube-face {
        width: 75px;
        height: 75px;
    }
    
    .animated-3d-shape .cube-face.front {
        transform: rotateY(0deg) translateZ(37.5px);
    }
    .animated-3d-shape .cube-face.back {
        transform: rotateY(180deg) translateZ(37.5px);
    }
    .animated-3d-shape .cube-face.right {
        transform: rotateY(90deg) translateZ(37.5px);
    }
    .animated-3d-shape .cube-face.left {
        transform: rotateY(-90deg) translateZ(37.5px);
    }
    .animated-3d-shape .cube-face.top {
        transform: rotateX(90deg) translateZ(37.5px);
    }
    .animated-3d-shape .cube-face.bottom {
        transform: rotateX(-90deg) translateZ(37.5px);
    }
    
    .animated-3d-shape .particle-ring {
        width: 170px;
        height: 170px;
    }
    
    .animated-3d-shape .particle-ring::before {
        width: 190px;
        height: 190px;
    }
    
    .animated-3d-shape .particle-ring::after {
        width: 210px;
        height: 210px;
    }

    .blue-orbital-ring {
        width: 180px;
        height: 180px;
    }

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

    .project-3d-card {
        padding: 1rem;
        min-height: 420px;
    }

    .project-3d-card img {
        height: 160px;
        margin-bottom: 1rem;
    }

    .project-3d-card .text {
        font-size: 1.1rem;
    }

    .project-3d-card p {
        font-size: 0.85rem;
    }

    .floating-shapes .shape {
        display: none;
    }

    .section-header {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .about-image-3d {
        max-width: 100%;
        width: 100%;
    }

    .imageContent {
        width: 100%;
    }

    .about .text {
        font-size: 1.3rem;
    }

    .about p,
    .skills p {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .input-3d {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .cta-button,
    .send-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .scroll-text {
        font-size: 0.85rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .max-width {
        padding: 0 0.75rem;
    }

    .home .text-2 {
        font-size: 1.5rem;
    }

    .home .text-3 {
        font-size: 1rem;
    }

    .section-header {
        font-size: 1.3rem;
    }

    .project-3d-card {
        min-height: 400px;
    }

    .orbital-system {
        width: 180px;
        height: 180px;
    }

    .animated-3d-shape {
        width: 130px;
        height: 130px;
    }
    
    .animated-3d-shape .cube-face {
        width: 65px;
        height: 65px;
    }
    
    .animated-3d-shape .cube-face.front {
        transform: rotateY(0deg) translateZ(32.5px);
    }
    .animated-3d-shape .cube-face.back {
        transform: rotateY(180deg) translateZ(32.5px);
    }
    .animated-3d-shape .cube-face.right {
        transform: rotateY(90deg) translateZ(32.5px);
    }
    .animated-3d-shape .cube-face.left {
        transform: rotateY(-90deg) translateZ(32.5px);
    }
    .animated-3d-shape .cube-face.top {
        transform: rotateX(90deg) translateZ(32.5px);
    }
    .animated-3d-shape .cube-face.bottom {
        transform: rotateX(-90deg) translateZ(32.5px);
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 968px) and (orientation: landscape) {
    .home {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-visual {
        display: none;
    }

    .home-content {
        grid-template-columns: 1fr;
    }

    .orbital-system {
        display: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .project-3d-card:hover .card-inner {
        transform: none;
    }

    .magnetic-btn:hover {
        transform: none;
    }

    .magnetic-btn:active {
        transform: scale(0.95);
    }

    .nav-link-3d:hover {
        transform: none;
    }

    .nav-link-3d:active {
        transform: translateY(2px);
    }
}