:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0f;
    --bg-card: #0d1117;
    --bg-card-hover: #161b22;
    --accent-cyan: #00f5ff;
    --accent-blue: #0080ff;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.5);
    --glow-blue: 0 0 20px rgba(0, 128, 255, 0.5);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.5);
    --border-color: rgba(0, 245, 255, 0.2);
    --gradient-cyber: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 4px;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    top: -200px;
    right: -200px;
    background: var(--accent-cyan);
    animation: float 8s ease-in-out infinite;
}

.bg-glow-2 {
    bottom: -200px;
    left: -200px;
    background: var(--accent-purple);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo svg {
    filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.6));
    transition: all 0.3s ease;
}

.logo:hover svg {
    filter: drop-shadow(0 0 15px rgba(0, 245, 255, 0.9));
    transform: scale(1.1);
}

/* Logo ring rotation */
.logo-ring {
    animation: ringRotate 20s linear infinite;
    transform-origin: 20px 20px;
}

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

/* Logo hexagon pulse */
.logo-hex {
    animation: hexPulse 3s ease-in-out infinite;
}

@keyframes hexPulse {
    0%, 100% {
        opacity: 1;
        filter: url(#glow);
    }
    50% {
        opacity: 0.8;
    }
}

/* Code brackets animation */
.bracket-left {
    animation: bracketLeft 2s ease-in-out infinite;
    transform-origin: 10px 20px;
}

@keyframes bracketLeft {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-2px);
    }
}

.bracket-right {
    animation: bracketRight 2s ease-in-out infinite;
    transform-origin: 30px 20px;
}

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

/* Center dot glow */
.logo-dot {
    animation: dotGlow 1.5s ease-in-out infinite;
}

@keyframes dotGlow {
    0%, 100% {
        r: 3;
        opacity: 1;
    }
    50% {
        r: 4;
        opacity: 0.8;
    }
}

/* Floating particles */
.particle-sp {
    animation: particleFloat 3s ease-in-out infinite;
}

.particle-sp.p1 {
    animation-delay: 0s;
}

.particle-sp.p2 {
    animation-delay: 0.5s;
}

.particle-sp.p3 {
    animation-delay: 1s;
}

.particle-sp.p4 {
    animation-delay: 1.5s;
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* Logo text accent */
.logo .accent,
.logo-icon ~ .highlight {
    background: linear-gradient(135deg, #00f5ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer logo styling */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.footer-logo svg {
    color: var(--accent-cyan);
}

.footer-logo .accent {
    background: linear-gradient(135deg, #00f5ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
    transition: width 0.4s ease;
    border-radius: 2px;
}

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

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a:hover::after {
    width: 60%;
}

.nav-links a:hover {
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

/* Active state */
.nav-links a.active {
    color: var(--accent-cyan);
}

.nav-links a.active::after {
    width: 60%;
}

/* Nav link icon effect */
.nav-links li {
    position: relative;
}

.nav-links li::marker {
    color: var(--accent-cyan);
}

/* Shimmer hover effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.nav-links a .nav-text {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-links a:hover .nav-text {
    background: linear-gradient(
        90deg,
        var(--accent-cyan) 0%,
        var(--text-primary) 25%,
        var(--accent-purple) 50%,
        var(--text-primary) 75%,
        var(--accent-cyan) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Nav link glow animation on hover */
@keyframes navGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 245, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.4), 0 0 40px rgba(168, 85, 247, 0.2);
    }
}

.nav-links a:hover {
    animation: navGlow 2s ease-in-out infinite;
}

/* Dot indicator under active link */
.nav-links a .dot-indicator {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-links a:hover .dot-indicator,
.nav-links a.active .dot-indicator {
    opacity: 1;
    bottom: 0;
    box-shadow: 0 0 8px var(--accent-cyan);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: var(--accent-cyan);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

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

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.btn {
    padding: 15px 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-cyber);
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.6);
}

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

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
}

.hero-terminal {
    margin-top: 60px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-line {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.terminal-line .prompt {
    color: var(--accent-cyan);
}

.terminal-line .command {
    color: var(--text-primary);
}

.terminal-line .output {
    color: var(--accent-purple);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: var(--accent-cyan);
    animation: blink 1s infinite;
}

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

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

/* Section Styles */
section {
    padding: 120px 40px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--accent-cyan);
    position: relative;
    overflow: hidden;
}

.section-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 245, 255, 0.2),
        rgba(168, 85, 247, 0.2),
        transparent
    );
    animation: tagShine 3s ease-in-out infinite;
}

@keyframes tagShine {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}

.section-tag::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-frame {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient-cyber);
    border-radius: 20px;
    padding: 3px;
}

.about-image-inner {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 8rem;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-cyan);
    border-radius: 20px;
    z-index: -1;
}

.about-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-5px);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-cyber);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.skill-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-10px);
    box-shadow: var(--glow-cyan);
}

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

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-cyber);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.skill-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

.skill-tag {
    padding: 5px 12px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.project-image {
    height: 200px;
    background: var(--gradient-cyber);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: visible;
}

.project-icon svg {
    width: 55px;
    height: 55px;
    filter: drop-shadow(0 0 12px rgba(0, 245, 255, 0.5));
}

.project-card:hover .project-icon {
    transform: scale(1.12) rotate(3deg);
    background: rgba(0, 245, 255, 0.12);
    box-shadow: 0 0 35px rgba(0, 245, 255, 0.35), inset 0 0 20px rgba(0, 245, 255, 0.1);
    border-color: rgba(0, 245, 255, 0.4);
}

.project-card:hover .project-icon svg {
    filter: drop-shadow(0 0 25px rgba(0, 245, 255, 0.8));
}

/* SaaS Cloud Icon Animations */
.cloud-main {
    animation: cloud-float 4s ease-in-out infinite;
}

.arrow-line {
    animation: arrow-pulse 1.5s ease-in-out infinite;
}

.arrow-head {
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

.particle.p1 { animation: float 2s ease-in-out infinite; }
.particle.p2 { animation: float 2.5s ease-in-out infinite 0.3s; }
.particle.p3 { animation: float 1.8s ease-in-out infinite 0.6s; }

/* E-commerce Cart Icon Animations */
.cart-body {
    animation: cart-shake 3s ease-in-out infinite;
}

.wheel.w1, .wheel.w2 {
    animation: wheel-spin 2s linear infinite;
}

.wheel.w1 { transform-origin: 22px 48px; }
.wheel.w2 { transform-origin: 42px 48px; }

.item.i1 { animation: item-bounce 2s ease-in-out infinite; }
.item.i2 { animation: item-bounce 2s ease-in-out infinite 0.3s; }

.sparkle {
    animation: sparkle-rotate 3s linear infinite;
    transform-origin: 50px 12px;
}

/* Data Chart Icon Animations */
.bar.b1 { animation: bar-grow 2s ease-in-out infinite; }
.bar.b2 { animation: bar-grow 2s ease-in-out infinite 0.15s; }
.bar.b3 { animation: bar-grow 2s ease-in-out infinite 0.3s; }
.bar.b4 { animation: bar-grow 2s ease-in-out infinite 0.45s; }

.trend-line {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: trend-draw 2s ease-out infinite;
}

.dot.d1 { animation: dot-pulse 2s ease-in-out infinite; }
.dot.d2 { animation: dot-pulse 2s ease-in-out infinite 0.2s; }
.dot.d3 { animation: dot-pulse 2s ease-in-out infinite 0.4s; }
.dot.d4 { animation: dot-pulse 2s ease-in-out infinite 0.6s; }

/* Component Library Icon Animations */
.grid-item.gi1 { animation: grid-pop 3s ease-in-out infinite; }
.grid-item.gi2 { animation: grid-pop 3s ease-in-out infinite 0.2s; }
.grid-item.gi3 { animation: grid-pop 3s ease-in-out infinite 0.4s; }
.grid-item.gi4 { animation: grid-pop 3s ease-in-out infinite 0.6s; }

.inner.i1 { animation: inner-spin 4s linear infinite; transform-origin: 17px 17px; }
.inner.i2 { animation: inner-slide 2s ease-in-out infinite; }
.inner.i3 { animation: inner-fade 2s ease-in-out infinite; }
.inner.i4 { animation: inner-spin 3s linear infinite reverse; transform-origin: 43px 43px; }

/* AI Chatbot Icon Animations */
.robot-head {
    animation: head-tilt 4s ease-in-out infinite;
}

.antenna-light {
    animation: antenna-blink 1s ease-in-out infinite;
}

.eye.e1, .eye.e2 {
    animation: eye-look 5s ease-in-out infinite;
}

.pupil.p1, .pupil.p2 {
    animation: pupil-look 5s ease-in-out infinite;
}

.mouth {
    animation: mouth-talk 0.5s ease-in-out infinite;
}

.sound.s1, .sound.s2 {
    animation: sound-wave 1s ease-in-out infinite;
}

.sound.s1 { animation-delay: 0.2s; }
.sound.s2 { animation-delay: 0.4s; }

.bubble.b1 { animation: bubble-rise 3s ease-out infinite; }
.bubble.b2 { animation: bubble-rise 3s ease-out infinite 0.5s; }

/* DevOps Icon Animations */
.infinity {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: infinity-draw 3s ease-in-out infinite;
}

.bracket.left {
    animation: bracket-move 3s ease-in-out infinite;
}

.bracket.right {
    animation: bracket-move 3s ease-in-out infinite reverse;
}

.gear-center {
    animation: gear-spin 4s linear infinite;
    transform-origin: 30px 30px;
}

.gear-teeth {
    animation: gear-spin 4s linear infinite;
    transform-origin: 30px 30px;
}

.orbit-dot.od1 {
    animation: orbit-float 3s ease-in-out infinite;
}

.orbit-dot.od2 {
    animation: orbit-float 3s ease-in-out infinite 1.5s;
}

/* Project Icon Keyframes */
@keyframes cloud-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes arrow-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes cart-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

@keyframes wheel-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes item-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

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

@keyframes bar-grow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes trend-draw {
    0% { stroke-dashoffset: 50; }
    100% { stroke-dashoffset: 0; }
}

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

@keyframes grid-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes inner-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes inner-slide {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(2px); }
}

@keyframes inner-fade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes head-tilt {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

@keyframes antenna-blink {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes eye-look {
    0%, 45%, 55%, 100% { transform: translateX(0); }
    50% { transform: translateX(1px); }
}

@keyframes pupil-look {
    0%, 45%, 55%, 100% { transform: translateX(0); }
    50% { transform: translateX(1px); }
}

@keyframes mouth-talk {
    0%, 100% { stroke-width: 2; }
    50% { stroke-width: 3; }
}

@keyframes sound-wave {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes bubble-rise {
    0% { opacity: 0.6; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes infinity-draw {
    0% { stroke-dashoffset: 120; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -120; }
}

@keyframes bracket-move {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(2px); }
}

@keyframes gear-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbit-float {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-5px); opacity: 1; }
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    padding: 12px 30px;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    border-radius: 4px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-content {
    padding: 25px;
}

.project-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid var(--accent-purple);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.blog-image {
    height: 180px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: visible;
}

.blog-icon svg {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.6));
}

.blog-card:hover .blog-icon {
    transform: scale(1.15);
    background: rgba(0, 245, 255, 0.15);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.4), inset 0 0 20px rgba(0, 245, 255, 0.1);
    border-color: rgba(0, 245, 255, 0.5);
}

.blog-card:hover .blog-icon svg {
    filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.9));
}

/* Microservices Icon Animations */
.microservices-icon {
    --ms-color: #00f5ff;
}

.microservices-icon .core-circle {
    animation: pulse-ring 2s ease-in-out infinite;
}

.microservices-icon .node-1, 
.microservices-icon .node-2, 
.microservices-icon .node-3 {
    animation: float 3s ease-in-out infinite;
}

.microservices-icon .node-1 { animation-delay: 0s; }
.microservices-icon .node-2 { animation-delay: 0.5s; }
.microservices-icon .node-3 { animation-delay: 1s; }

.microservices-icon .line-1,
.microservices-icon .line-2,
.microservices-icon .line-3 {
    animation: dash-flow 1.5s linear infinite;
}

/* React Icon Animations */
.react-icon {
    --react-color: #61DAFB;
}

.react-icon .orbit-1,
.react-icon .orbit-2,
.react-icon .orbit-3 {
    transform-origin: center;
    animation: spin-orbit 8s linear infinite;
}

.react-icon .orbit-2 { animation-delay: -2.6s; }
.react-icon .orbit-3 { animation-delay: -5.3s; }

.react-icon .nucleus {
    animation: nucleus-pulse 1.5s ease-in-out infinite;
}

.react-icon .electron-1,
.react-icon .electron-2,
.react-icon .electron-3 {
    animation: electron-orbit 8s linear infinite;
}

.react-icon .electron-1 { animation-delay: 0s; }
.react-icon .electron-2 { animation-delay: -2.6s; }
.react-icon .electron-3 { animation-delay: -5.3s; }

/* K8s Icon Animations */
.k8s-icon {
    --k8s-color: #326CE5;
}

.k8s-icon .hex-outer {
    animation: hex-rotate 10s linear infinite;
    transform-origin: center;
}

.k8s-icon .hex-inner {
    animation: hex-rotate 10s linear infinite reverse;
    transform-origin: center;
}

.k8s-icon .center-dot {
    animation: k8s-pulse 2s ease-in-out infinite;
}

.k8s-icon .rays {
    animation: rays-pulse 2s ease-in-out infinite;
    opacity: 0.7;
}

/* Keyframes */
@keyframes pulse-ring {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05);
    }
}

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

@keyframes dash-flow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 12; }
}

@keyframes spin-orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes nucleus-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes electron-orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes hex-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes rays-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.blog-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
}

.blog-content {
    padding: 25px;
}

.blog-category {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.contact-item:hover {
    border-color: var(--accent-cyan);
    transform: translateX(10px);
    box-shadow: var(--glow-cyan);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-cyber);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-text span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

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

.form-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-cyber);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.6);
}

/* Footer */
footer {
    padding: 60px 40px 30px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
}

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

.footer-links a:hover::before {
    opacity: 1;
}

.footer-links a:hover .nav-text {
    background: linear-gradient(
        90deg,
        var(--accent-cyan) 0%,
        var(--text-primary) 50%,
        var(--accent-cyan) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: var(--glow-cyan);
}

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

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    nav {
        padding: 15px 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu {
        display: flex;
    }

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

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    section {
        padding: 80px 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

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

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

    .hero-terminal {
        display: none;
    }

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

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

    .footer-links {
        flex-wrap: wrap;
    }
}

/* Particle Effect */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.6;
    animation: particle-float 15s linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Navigation Logo Styles */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    gap: 4px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: #fff;
    text-shadow: var(--glow-cyan);
}

.nav-logo .highlight {
    background: linear-gradient(135deg, #00f5ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 2px;
}

.logo-icon svg {
    filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.6));
    transition: all 0.3s ease;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(0, 245, 255, 0.3);
    z-index: -1;
    transition: all 0.3s ease;
}

.nav-logo:hover .logo-icon::before {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.25), rgba(168, 85, 247, 0.25));
    border-color: rgba(0, 245, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.nav-logo:hover .logo-icon svg {
    filter: drop-shadow(0 0 12px rgba(0, 245, 255, 0.8));
    transform: scale(1.05);
}
