/* ===== CSS Variables - Dark Mode (Default) ===== */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #00d4ff;
    --accent-color: #ffd23f;
    --dark-bg: #0a1128;
    --darker-bg: #001242;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --gradient-1: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    --gradient-2: linear-gradient(135deg, #ff6b35 0%, #00d4ff 100%);
    --gradient-3: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    --gradient-4: linear-gradient(135deg, #ffd23f 0%, #ff6b35 100%);
    --shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
    --shadow-hover: 0 30px 80px rgba(255, 107, 53, 0.5);
    --shadow-cyan: 0 20px 60px rgba(0, 212, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --primary-glow: rgba(255, 107, 53, 0.6);
    --secondary-glow: rgba(0, 212, 255, 0.6);
    --accent-glow: rgba(255, 210, 63, 0.6);
}

/* ===== Light Mode Variables ===== */
[data-theme="light"] {
    --primary-color: #ff6b35;
    --secondary-color: #0099ff;
    --accent-color: #f39c12;
    --dark-bg: #f5f7fa;
    --darker-bg: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --gradient-1: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    --gradient-2: linear-gradient(135deg, #ff6b35 0%, #0099ff 100%);
    --gradient-3: linear-gradient(135deg, #0099ff 0%, #00d4ff 100%);
    --gradient-4: linear-gradient(135deg, #f39c12 0%, #ff6b35 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-cyan: 0 10px 40px rgba(0, 153, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.1);
    --primary-glow: rgba(255, 107, 53, 0.4);
    --secondary-glow: rgba(0, 153, 255, 0.4);
    --accent-glow: rgba(243, 156, 18, 0.4);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    overflow-y: auto !important;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 53, 0.5) rgba(0, 0, 0, 0.1);
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

html::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.5);
    border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.7);
}

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    width: 100%;
    transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 210, 63, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: scale(1.1) rotate(5deg); opacity: 0.8; }
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(10, 17, 40, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    z-index: 999999 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform-style: preserve-3d;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.8));
    animation: rotate3d 10s linear infinite;
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg); filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.8)); }
    50% { transform: rotateY(180deg); filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.8)); }
    100% { transform: rotateY(360deg); filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.8)); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

.theme-toggle {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin-right: 20px;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(20deg) scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255, 107, 53, 0.15) 2px, transparent 2px),
        radial-gradient(circle, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    background-position: 0 0, 25px 25px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    transform: rotateX(60deg);
}

@keyframes gridMove {
    0% { transform: rotateX(60deg) translateY(0); }
    100% { transform: rotateX(60deg) translateY(50px); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

[data-theme="light"] .hero-title {
    color: #1a1a2e;
}

.wave {
    display: inline-block;
    animation: wave 2s infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

.highlight {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.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;
}

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

.btn-primary {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.8), 0 0 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--darker-bg);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-style: preserve-3d;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--gradient-2);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-icon:hover {
    transform: translateY(-8px) rotateZ(10deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.7), 0 0 30px rgba(0, 212, 255, 0.5);
    color: white;
}

.social-icon:hover::before {
    opacity: 1;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.robot-illustration {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: float3d 6s ease-in-out infinite;
}

.robot-illustration i {
    font-size: 150px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.6));
    animation: pulse3d 3s ease-in-out infinite;
}

@keyframes float3d {
    0%, 100% { 
        transform: translateY(0px) rotateY(0deg) rotateX(0deg);
    }
    25% { 
        transform: translateY(-30px) rotateY(90deg) rotateX(10deg);
    }
    50% { 
        transform: translateY(0px) rotateY(180deg) rotateX(0deg);
    }
    75% { 
        transform: translateY(-30px) rotateY(270deg) rotateX(-10deg);
    }
}

@keyframes pulse3d {
    0%, 100% { 
        filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.6));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 20px 60px rgba(139, 92, 246, 0.8));
        transform: scale(1.1);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator a {
    color: var(--primary-color);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

/* ===== Section Styles ===== */
section {
    padding: 100px 20px;
    scroll-snap-align: none !important;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.5));
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: var(--gradient-2);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.6);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 5px 20px rgba(255, 107, 53, 0.7); 
    }
    50% { 
        box-shadow: 0 5px 40px rgba(0, 212, 255, 0.9), 0 0 60px rgba(255, 107, 53, 0.5); 
    }
}

/* ===== 3D Cube Animation ===== */
.cube-container {
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

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

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 107, 53, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 53, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
    box-shadow: 
        inset 0 0 50px rgba(255, 107, 53, 0.3),
        0 0 50px rgba(0, 212, 255, 0.4);
}

.cube-face i {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.8));
}

.cube-face.front {
    transform: rotateY(0deg) translateZ(150px);
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(150px);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(150px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(150px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(150px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

/* ===== Particles Canvas ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* ===== Floating Shapes ===== */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShape 20s infinite ease-in-out;
}

.shape.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-2);
}

.shape.square {
    width: 80px;
    height: 80px;
    background: var(--gradient-3);
    transform: rotate(45deg);
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid;
    border-bottom-color: rgba(139, 92, 246, 0.5);
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
    }
}

/* ===== Small Decorative Robots ===== */
.decorative-robots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

.small-robot {
    position: fixed;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.small-robot .robot-head {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.small-robot i {
    font-size: 40px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.small-robot:hover i {
    opacity: 0.6;
}

.robot-top-left {
    top: 120px;
    left: 30px;
}

.robot-top-left i {
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.robot-top-right {
    top: 120px;
    right: 30px;
}

.robot-top-right i {
    color: var(--secondary-color);
    filter: drop-shadow(0 0 8px var(--secondary-glow));
}

.robot-bottom-left {
    bottom: 100px;
    left: 30px;
}

.robot-bottom-left i {
    color: var(--accent-color);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.robot-bottom-right {
    bottom: 100px;
    right: 30px;
}

.robot-bottom-right i {
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

@media (max-width: 768px) {
    .decorative-robots {
        display: none;
    }
}

/* ===== 3D Robot Decorations ===== */
.robot-decoration {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.robot-decoration.top-left {
    top: 10%;
    left: 5%;
    font-size: 120px;
    color: var(--primary-color);
    animation: robotFloat1 8s ease-in-out infinite;
}

.robot-decoration.top-right {
    top: 15%;
    right: 5%;
    font-size: 100px;
    color: var(--secondary-color);
    animation: robotFloat2 10s ease-in-out infinite;
}

.robot-decoration.bottom-left {
    bottom: 10%;
    left: 8%;
    font-size: 90px;
    color: var(--accent-color);
    animation: robotFloat3 12s ease-in-out infinite;
}

@keyframes robotFloat1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(15deg); }
}

@keyframes robotFloat2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(-10deg); }
}

@keyframes robotFloat3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(20deg); }
}

/* ===== Enhanced Skill Hexagon ===== */
.skill-hexagon {
    width: 180px;
    height: 180px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.4s ease;
}

.skill-hexagon:hover {
    transform: scale(1.1) rotateZ(10deg);
}

.skill-hexagon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.3;
    transition: all 0.3s;
}

.skill-hexagon:hover::before {
    opacity: 0.6;
    transform: scale(1.05);
}

/* ===== About Section ===== */
.about {
    background: transparent;
    position: relative;
    z-index: 1;
}

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

.about-intro {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .highlight-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .highlight-item:hover {
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s;
}

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

.highlight-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.5);
    border-color: var(--primary-color);
}

.highlight-item i {
    font-size: 2.5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 50px;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.7));
}

.highlight-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.highlight-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== Skills Section ===== */
.skills {
    background: transparent;
    position: relative;
    z-index: 1;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.skill-category {
    background: linear-gradient(145deg, rgba(10, 17, 40, 0.9), rgba(0, 18, 66, 0.8));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-left: 4px solid var(--primary-color);
    padding: 3rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 107, 53, 0.1),
        0 0 20px rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

[data-theme="light"] .skill-category {
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-left: 4px solid #ff6b35;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 107, 53, 0.2),
        0 0 20px rgba(255, 107, 53, 0.2);
}

.skill-category::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    box-shadow: 
        0 0 10px var(--primary-color),
        15px 0 0 var(--secondary-color),
        15px 0 10px var(--secondary-color);
    opacity: 1;
    transition: opacity 0.3s;
}

.skill-category:hover {
    transform: translateX(5px);
    border-left-width: 6px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 107, 53, 0.2),
        0 0 30px rgba(255, 107, 53, 0.4);
}

.skill-category:hover::after {
    animation: techPulse 1s infinite;
}

.skill-category h3 {
    font-family: 'Orbitron', sans-serif;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

[data-theme="light"] .skill-category h3 {
    background: linear-gradient(135deg, #ff6b35 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.skill-category, .timeline-item, .project-card, .highlight-item, .project-card-flip {
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
}

.skill-item {
    width: 180px;
    height: 180px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 85%;
    padding: 0 10px;
}

.skill-info span:first-child {
    display: block;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

[data-theme="light"] .skill-info span:first-child {
    color: #1a1a2e;
    font-weight: 700;
}

.skill-info span:last-child {
    display: block;
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

[data-theme="light"] .skill-info span:last-child {
    color: #0099ff;
}

.skill-bar {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.skill-progress {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--primary-color) 0%,
        var(--secondary-color) var(--progress, 0%),
        rgba(255, 255, 255, 0.05) var(--progress, 0%)
    );
    position: relative;
    animation: rotateCircle 2s ease-out;
    box-shadow: 
        0 0 30px rgba(255, 107, 53, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .skill-progress {
    background: conic-gradient(
        from 0deg,
        #ff6b35 0%,
        #0099ff var(--progress, 0%),
        rgba(200, 200, 200, 0.3) var(--progress, 0%)
    );
    box-shadow: 
        0 0 20px rgba(255, 107, 53, 0.3),
        inset 0 0 15px rgba(0, 0, 0, 0.1);
}

.skill-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: rgba(10, 17, 40, 0.95);
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .skill-progress::before {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

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

@keyframes fillBar {
    from { width: 0; }
}

/* ===== Projects Section ===== */
.projects {
    background: transparent;
    position: relative;
    z-index: 1;
}

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

/* ===== 3D Flip Card Projects ===== */
.project-card-flip {
    background: transparent;
    perspective: 1500px;
    height: 450px;
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

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

.project-card-front,
.project-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.project-card-front {
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.95), rgba(0, 18, 66, 0.9));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 53, 0.3);
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.5),
        inset 2px 2px 0 rgba(255, 107, 53, 0.1);
}

[data-theme="light"] .project-card-front {
    background: linear-gradient(135deg, #ffffff, #f0f2f5);
    border: 2px solid rgba(255, 107, 53, 0.4);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.project-card-back {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(0, 212, 255, 0.1));
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    border-left: 4px solid var(--primary-color);
    box-shadow: 
        0 10px 30px rgba(255, 107, 53, 0.5),
        inset 0 0 20px rgba(255, 107, 53, 0.1);
    transform: rotateY(180deg);
}

[data-theme="light"] .project-card-back {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(0, 212, 255, 0.05));
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.project-card-front h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

[data-theme="light"] .project-card-front h3 {
    color: #1a1a2e;
    font-weight: 700;
}

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

[data-theme="light"] .project-card-front p {
    color: #4a5568;
}

.project-card-back h3 {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-card-back .detail-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

[data-theme="light"] .project-card-back .detail-text {
    color: #2d3748;
    font-weight: 500;
}

.flip-hint {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-top: auto;
    padding-top: 1rem;
    animation: bounceHint 2s ease-in-out infinite;
}

@keyframes bounceHint {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

@keyframes techPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 
            0 0 10px var(--primary-color),
            15px 0 0 var(--secondary-color),
            15px 0 10px var(--secondary-color);
    }
    50% {
        opacity: 0.5;
        box-shadow: 
            0 0 5px var(--primary-color),
            15px 0 0 var(--secondary-color),
            15px 0 5px var(--secondary-color);
    }
}

.project-card-front .project-icon {
    margin-bottom: 1.5rem;
}

.project-card-back .project-links {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 107, 53, 0.3);
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
}

.project-card:hover::before {
    opacity: 0.1;
}

.project-card:hover {
    transform: translateY(-20px) rotateX(10deg) scale(1.02);
    box-shadow: 0 35px 90px rgba(255, 107, 53, 0.5), 0 0 50px rgba(0, 212, 255, 0.3);
    border-color: var(--primary-color);
}

.project-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.6), 0 0 20px rgba(0, 212, 255, 0.4);
    transform-style: preserve-3d;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateZ(0) rotateY(0deg); }
    50% { transform: translateZ(20px) rotateY(10deg); }
}

.project-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(255, 107, 53, 0.15);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 107, 53, 0.4);
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(255, 107, 53, 0.3);
    transform: scale(1.05);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

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

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s;
    margin-right: 10px;
    margin-top: 10px;
}

.project-link:hover {
    color: var(--text-primary);
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.5);
}

.project-card-back .project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.project-card-front .project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

/* ===== Experience Section ===== */
.experience {
    background: transparent;
    position: relative;
    z-index: 1;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-2);
}

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

.timeline-icon {
    position: absolute;
    left: -38px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 0 4px var(--darker-bg);
}

.timeline-content {
    background: linear-gradient(145deg, rgba(10, 17, 40, 0.9), rgba(0, 18, 66, 0.8));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-left: 4px solid var(--secondary-color);
    padding: 2.5rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

[data-theme="light"] .timeline-content {
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-left: 4px solid #0099ff;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(0, 153, 255, 0.2);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(0, 212, 255, 0.4);
    border-left-width: 6px;
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

[data-theme="light"] .timeline-content h3 {
    color: #1a1a2e;
    font-weight: 700;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

[data-theme="light"] .timeline-content h4 {
    color: #ff6b35;
    font-weight: 600;
}

.timeline-content ul {
    color: var(--text-secondary);
}

[data-theme="light"] .timeline-content ul {
    color: #4a5568;
}

.timeline-content li {
    color: var(--text-secondary);
}

[data-theme="light"] .timeline-content li {
    color: #4a5568;
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

[data-theme="light"] .timeline-date {
    color: #4a5568;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

[data-theme="light"] .timeline-content p {
    color: #4a5568;
}

/* ===== Contact Section ===== */
.contact {
    background: transparent;
    position: relative;
    z-index: 1;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.4s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2), 0 10px 30px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* ===== Footer ===== */
.footer {
    background: var(--darker-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .robot-illustration {
        width: 200px;
        height: 200px;
        font-size: 100px;
    }

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

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

    .project-card-flip {
        height: auto;
        min-height: 400px;
    }

    .project-card-flip:active .project-card-inner {
        transform: rotateY(180deg);
    }

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

    .timeline {
        padding-left: 40px;
    }

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

    section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

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