:root {
    --bg-color: #0a0a1a;
    --text-color: #ffffff;
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-red: #ff073a; /* From logo red */
    --neon-cyan: #0affc2;
    --glass-bg: rgba(20, 20, 40, 0.6);
    --font-main: 'Rajdhani', sans-serif;
    --font-display: 'Poiret One', 'Jura', 'Exo 2', 'Russo One', 'Orbitron', sans-serif;
    --gradient-main: linear-gradient(135deg, #0a0a1a 0%, #1a0b2e 100%);
    --card-border: 1px solid rgba(188, 19, 254, 0.5);
    --planet-radius: 70px;
}

body.light-theme {
    --bg-color: #f0f0f5;
    --text-color: #1a1a2e;
    --neon-blue: #0056b3;
    --neon-purple: #6a00ff;
    --neon-red: #d00000;
    --neon-cyan: #008f7a;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --gradient-main: linear-gradient(135deg, #f0f0f5 0%, #e6e6fa 100%);
}

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

body {
    background: var(--gradient-main);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(188, 19, 254, 0.1) 0%, rgba(0,0,0,0) 70%);
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.neon-blue { color: var(--neon-blue); text-shadow: 0 0 15px var(--neon-blue), 0 0 30px var(--neon-blue); }
.neon-purple { color: var(--neon-purple); text-shadow: 0 0 15px var(--neon-purple), 0 0 30px var(--neon-purple); }
.neon-cyan { color: var(--neon-cyan); text-shadow: 0 0 15px var(--neon-cyan), 0 0 30px var(--neon-cyan); }

/* Logo Handling */
.nav-logo-img {
    height: 50px;
    filter: drop-shadow(0 0 5px var(--neon-red));
    transition: filter 0.3s;
}

.nav-logo-img:hover {
    filter: drop-shadow(0 0 10px var(--neon-red)) drop-shadow(0 0 20px var(--neon-purple));
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(255, 7, 58, 0.5));
    animation: pulse-logo 3s infinite alternate;
}

@keyframes pulse-logo {
    from { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255, 7, 58, 0.5)); }
    to { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(255, 7, 58, 0.8)); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(15px);
    z-index: 100;
    border-bottom: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
    transition: background 0.3s;
}

.hamburger {
    display: none;
}

body.light-theme .navbar {
    background: rgba(240, 240, 245, 0.9);
    border-bottom: 1px solid var(--neon-blue);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.5rem;
    user-select: none;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s;
    text-transform: uppercase;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--neon-red);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-red);
}

.nav-links a:hover {
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
}

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

/* Sections */
.section {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #bc13fe 0%, #00f3ff 60%, #0a0a1a 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.6), 0 0 30px rgba(0, 243, 255, 0.4);
    backdrop-filter: blur(6px);
    z-index: 1100;
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.to-top.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.to-top::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(188, 19, 254, 0.6);
    animation: pulseTop 2s infinite ease-in-out;
}

 .to-top::after {
     content: '';
     position: absolute;
     inset: -6px;
     border-radius: 50%;
     background: conic-gradient(#bc13fe, #00f3ff, #bc13fe);
     filter: blur(6px);
     animation: spinGlow 4s linear infinite;
     z-index: -1;
 }
 
 .to-top .arrow-svg {
     filter: drop-shadow(0 0 6px rgba(0, 243, 255, 0.7));
 }
 
 .to-top .arrow-svg path {
     stroke-dasharray: 42;
     stroke-dashoffset: 42;
     animation: drawArrow 1.6s ease-in-out infinite;
 }
 
 .to-top:hover .arrow-svg path {
     animation-duration: 1s;
 }
 
@keyframes pulseTop {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

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

@keyframes arrowBounce {
    0% { transform: translateY(2px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(2px); }
}

@keyframes drawArrow {
    0% { stroke-dashoffset: 42; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 42; }
}
 
.chat-toggle {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #bc13fe 0%, #00f3ff 60%, #0a0a1a 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.6), 0 0 30px rgba(0, 243, 255, 0.4);
    backdrop-filter: blur(6px);
    z-index: 1100;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.chat-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(188, 19, 254, 0.6);
    animation: pulseTop 2s infinite ease-in-out;
}

.chat-toggle::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(#bc13fe, #00f3ff, #bc13fe);
    filter: blur(6px);
    animation: spinGlow 4s linear infinite;
    z-index: -1;
}

.chat-toggle .astronaut-svg {
    filter: drop-shadow(0 0 6px rgba(0, 243, 255, 0.7));
}

.chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 28px rgba(188, 19, 254, 0.8), 0 0 36px rgba(0, 243, 255, 0.6);
}

.chat-widget {
    position: fixed;
    left: 20px;
    bottom: 90px;
    width: 320px;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 25, 0.95);
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 40px rgba(188, 19, 254, 0.3);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(10px);
}

.chat-widget.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chat-widget.hidden {
    display: none;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(188, 19, 254, 0.4);
}

.chat-title {
    font-family: var(--font-display);
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.chat-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    cursor: pointer;
    filter: drop-shadow(0 0 6px rgba(0, 243, 255, 0.7));
}

.chat-close {
    font-size: 1.6rem;
    color: var(--neon-blue);
    cursor: pointer;
}

.chat-close:hover {
    color: var(--neon-red);
}

.chat-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.chat-tg-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, var(--neon-purple) 0%, var(--neon-blue) 60%, #0a0a1a 100%);
    color: #fff;
    border: 1px solid var(--neon-cyan);
    border-radius: 50%;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.4), 0 0 20px rgba(188, 19, 254, 0.3);
}

.chat-tg-btn.active {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    box-shadow: 0 0 12px rgba(188, 19, 254, 0.4);
}

.chat-body {
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-msg {
    max-width: 85%;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-msg.user {
    align-self: flex-end;
    background: rgba(0, 243, 255, 0.15);
    border: 1px solid rgba(0, 243, 255, 0.35);
    color: #eaffff;
}

.chat-msg.bot {
    align-self: flex-start;
    background: rgba(188, 19, 254, 0.12);
    border: 1px solid rgba(188, 19, 254, 0.35);
    color: #f7e8ff;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid rgba(188, 19, 254, 0.4);
}

.chat-input input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-left: 3px solid var(--neon-purple);
    color: #fff;
    border-radius: 0 6px 6px 0;
}

.chat-send {
    padding: 0.6rem 1rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(188, 19, 254, 0.3);
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.chat-rules {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    background: rgba(5, 5, 15, 0.96);
    border-radius: 16px;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.25);
}

.chat-rules.hidden {
    display: none;
}

.chat-rules-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
}

.chat-rules-title {
    font-family: var(--font-display);
    color: var(--neon-blue);
}

.chat-rules-close {
    font-size: 1.4rem;
    color: var(--neon-blue);
    cursor: pointer;
}

.chat-rules-body {
    padding: 0.75rem;
    flex: 1;
}

.chat-input-ctrl {
    padding: 0.5rem 0.7rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-left: 3px solid var(--neon-purple);
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
}

.chat-rules-form {
    display: grid;
    grid-template-columns: 1fr 1fr 0.6fr 1.6fr auto;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.chat-rules-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.rule-item {
    display: grid;
    grid-template-columns: auto 1fr 1.6fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(188, 19, 254, 0.3);
    border-radius: 10px;
    background: rgba(188, 19, 254, 0.08);
}

.rule-type {
    font-family: var(--font-display);
    color: var(--neon-cyan);
    font-size: 0.85rem;
}

.rule-pattern {
    color: #ddd;
    font-size: 0.9rem;
}

.rule-reply {
    color: #fff;
    font-size: 0.95rem;
}

.rule-remove {
    background: transparent;
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}
.chat-rules-textarea {
    width: 100%;
    height: 100%;
    resize: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-left: 3px solid var(--neon-purple);
    color: #fff;
    border-radius: 8px;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
}

.chat-rules-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid rgba(0, 243, 255, 0.3);
}
/* Home Section */
.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 90%;
    max-width: 1200px;
    z-index: 1;
}

.intro-text h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

.subtitle {
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Pixel Avatar - Hidden for now to focus on Logo */
.avatar-container {
    display: none; 
}

/* Portfolio Planets - Realistic CSS */
.solar-system {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
    perspective: 1000px;
    padding: 2rem 0;
}

.planet {
    position: relative;
    cursor: pointer;
    transition: transform 0.5s;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.planet:hover {
    transform: scale(1.2) translateZ(30px);
}

.planet-body {
    width: calc(var(--planet-radius) * 2);
    height: calc(var(--planet-radius) * 2);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: block;
    clip-path: circle(50%);
    -webkit-mask-image: radial-gradient(circle, #000 99%, transparent 100%);
    mask-image: radial-gradient(circle, #000 99%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    /* Base sphere shading */
    box-shadow: inset 0 0 50px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.5);
}

.planet-body svg {
    width: 100%;
    height: 100%;
    display: block;
    transform-origin: 50% 50%;
    transform-box: fill-box;
    animation: spin-slow 90s linear infinite;
}

.p1, .p2, .p3 {
    background: none !important;
    animation: none !important;
    transform: none !important;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.planet-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0) 20%);
    z-index: 2;
}

/* Realistic Textures via Gradients */
/* Earth */
.p1 { 
    background: 
        /* Clouds */
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.8) 0%, transparent 20%),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.6) 0%, transparent 15%),
        /* Continents (Green) */
        radial-gradient(circle at 70% 20%, #228b22 0%, transparent 25%),
        radial-gradient(circle at 30% 60%, #228b22 0%, transparent 30%),
        /* Oceans (Blue) radial for symmetric sphere */
        radial-gradient(circle at 50% 50%, #0044cc 0%, #001133 100%);
    box-shadow: inset -25px -25px 40px rgba(0,0,0,0.9), 0 0 30px rgba(0, 100, 255, 0.3);
    background-size: 200% 200%;
    animation: rotateEarth 60s linear infinite;
}

/* Mars */
.p2 { 
    background: 
        radial-gradient(circle at 50% 50%, #a0522d 0%, #3f0000 100%),
        radial-gradient(circle at 30% 70%, rgba(139,69,19,0.8) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(205,92,92,0.7) 0%, transparent 35%);
    box-shadow: inset -25px -25px 40px rgba(0,0,0,0.9), 0 0 30px rgba(255, 69, 0, 0.3);
    background-size: 150% 150%;
    animation: rotateMars 80s linear infinite;
}

/* Jupiter */
.p3 { 
    background: 
        repeating-linear-gradient(
            0deg,
            #d2b48c 0px,
            #8b4513 10px,
            #d2b48c 20px,
            #deb887 30px,
            #cd853f 40px
        );
    box-shadow: inset -25px -25px 40px rgba(0,0,0,0.9), 0 0 30px rgba(218, 165, 32, 0.3);
    transform: rotate(-15deg); /* Tilt */
    animation: moveJupiter 40s linear infinite;
}

/* Saturn (Requires extra element for rings, but we'll simulate the look for now on the sphere or add ::before) */
/* We'll stick to 3 planets for the existing HTML structure: Earth, Mars, Jupiter */

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

@keyframes rotateMars {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes moveJupiter {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}

.orbit-label {
    margin-top: 1.5rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue);
    background: rgba(0,0,0,0.7);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    z-index: 10;
}

/* Skills Waves */
.skills-container {
    width: 80%;
    max-width: 800px;
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.1);
}

.skill-wave {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease;
}

.skill-wave.visible {
    opacity: 1;
    transform: translateX(0);
}

.skill-name {
    width: 180px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.wave-visual {
    flex-grow: 1;
    height: 14px;
    background: rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.1);
}

.wave-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    /* Enhanced gradient for flow effect */
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-red), var(--neon-blue));
    background-size: 200% 100%;
    box-shadow: 0 0 15px var(--neon-blue);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-wave.visible .wave-visual::after {
    animation: flowEnergy 2s linear infinite;
}

@keyframes flowEnergy {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Skill Level Widths - Triggered when parent is visible */
.skill-wave.visible .w1::after { width: 95%; }
.skill-wave.visible .w2::after { width: 90%; }
.skill-wave.visible .w3::after { width: 85%; }
.skill-wave.visible .w4::after { width: 80%; }
.skill-wave.visible .w5::after { width: 75%; }

/* Add hover effect to skill items */
.skill-wave:hover .skill-name {
    color: var(--neon-red);
    text-shadow: 0 0 15px var(--neon-red);
    transform: scale(1.05);
    transition: all 0.3s;
}

.skill-wave:hover .wave-visual::after {
    filter: brightness(1.3);
    box-shadow: 0 0 25px var(--neon-purple);
}

/* Workflow Section */
.workflow-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1200px;
    position: relative;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.workflow-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.workflow-step:hover {
    transform: translateY(-10px);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    font-weight: bold;
}

.workflow-step h3 {
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: var(--font-display);
}

.workflow-step p {
    font-size: 0.95rem;
    color: #ccc;
}

/* Downloads Section */
.downloads-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 90%;
    max-width: 1200px;
}

.file-card {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    width: 300px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.file-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.file-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-purple);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.2);
}

.file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.file-card:hover::before {
    left: 100%;
}

.file-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--neon-blue));
}

.file-card h3 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.file-card p {
    color: #bbb;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    position: relative;
    z-index: 1;
    overflow: hidden;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.download-btn:hover::after {
    opacity: 1;
}

.download-btn:hover {
    box-shadow: 0 0 25px rgba(188, 19, 254, 0.6);
    transform: scale(1.05);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.download-btn:hover .btn-icon {
    transform: translateY(3px);
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 90%;
    max-width: 1200px;
}

.advantage-card {
    background: rgba(10, 10, 26, 0.6);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(188, 19, 254, 0.3);
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: scale(0.9);
}

.advantage-card.visible {
    opacity: 1;
    transform: scale(1);
}

.advantage-card:hover {
    background: rgba(188, 19, 254, 0.1);
    border-color: var(--neon-purple);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.2);
    transform: translateY(-5px) scale(1.02);
}

.adv-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--neon-purple));
}

.advantage-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Contact Terminal */
.terminal-window {
    width: 100%;
    max-width: 700px;
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.2);
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.terminal-header {
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.2), transparent);
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--neon-blue);
    font-size: 1rem;
    font-weight: bold;
    color: var(--neon-blue);
    display: flex;
    align-items: center;
}

.terminal-form {
    padding: 3rem;
}

.form-group label {
    color: var(--neon-cyan);
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.form-group input, .form-group textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-left: 3px solid var(--neon-purple);
    color: #fff;
    font-size: 1.1rem;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 0 5px 5px 0;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.terminal-btn {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border: none;
    color: #fff;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.terminal-btn:hover {
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.6);
    transform: translateY(-2px);
}

/* Modal */
.modal-content {
    background: rgba(10, 10, 25, 0.95);
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 50px rgba(188, 19, 254, 0.3);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 12px;
}

.terminal-view {
    margin-top: 2rem;
    background: #000;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #333;
}

/* Blog Cards */
.blog-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 90%;
    max-width: 1200px;
}

.blog-post {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer; /* Clickable */
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.blog-post:hover {
    transform: translateY(-10px);
    border-color: var(--neon-blue);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
}

.blog-post:hover::before {
    width: 6px;
    box-shadow: 0 0 20px var(--neon-blue);
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--neon-cyan);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.post-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-post h3 {
    color: var(--neon-purple);
    margin-bottom: 1rem;
}

/* Blog Modal Specifics */
.blog-modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-color: var(--neon-blue);
    padding: 1.5rem;
    border-radius: 12px;
}

.blog-body {
    margin-top: 1.5rem;
    line-height: 1.8;
    color: #ddd;
    font-size: 1.1rem;
}

.close-blog-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--neon-blue);
    transition: color 0.3s;
}

.close-blog-modal:hover {
    color: var(--neon-red);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    /* Chat Widget: mobile layout fix */
    .chat-widget {
        left: 4vw;
        right: 4vw;
        width: auto;
        bottom: 20px;
        max-height: 75vh;
        border-radius: 14px;
    }
    .chat-header {
        padding: 0.6rem 0.8rem;
    }
    .chat-title {
        font-size: 0.95rem;
    }
    .chat-body {
        padding: 0.75rem;
        max-height: calc(75vh - 120px);
    }
    .chat-input {
        padding: 0.6rem;
        gap: 0.4rem;
    }
    .chat-input input {
        padding: 0.55rem 0.7rem;
        font-size: 0.95rem;
    }
    .chat-send {
        padding: 0.55rem 0.9rem;
        font-size: 0.95rem;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 101;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--neon-cyan);
        box-shadow: 0 0 5px var(--neon-cyan);
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px; /* Below navbar */
        gap: 0;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid var(--neon-purple);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        padding: 2rem 0;
    }

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

    .nav-links li {
        margin: 1.5rem 0;
    }

    .intro-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-logo {
        max-width: 200px;
    }

    .subtitle {
        font-size: 1.2rem;
    }

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

    .solar-system {
        gap: 2rem;
    }

    .planet {
        width: 120px;
        height: 120px;
    }

    .planet-body {
        width: 100px;
        height: 100px;
    }

    .skills-container {
        width: 95%;
        padding: 1.5rem;
    }

    .skill-wave {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .skill-name {
        width: 100%;
    }

    .wave-visual {
        width: 100%;
    }

    .terminal-window {
        max-width: 100%;
    }

    .terminal-form {
        padding: 1.5rem;
    }
    
    .terminal-btn {
        width: 100%;
        padding: 1rem;
    }

    /* Mobile Modal Fixes */
    .modal-content, .blog-modal-content {
        width: 90%;
        max-width: 90%;
        margin: 0 auto;
        padding: 1.5rem;
        max-height: 85vh;
        overflow-y: auto;
    }

    .close-modal, .close-blog-modal {
        top: 10px;
        right: 15px;
        font-size: 2rem;
    }
}

/* Modal Styles */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal.hidden {
    display: none;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--neon-blue);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.close-modal:hover {
    color: var(--neon-red);
}

@media (max-width: 480px) {
    .intro-text h1 {
        font-size: 2rem;
    }

    /* Extra-small screens: tighter chat widget */
    .chat-widget {
        left: 3vw;
        right: 3vw;
        max-height: 80vh;
    }
    .chat-title {
        font-size: 0.9rem;
    }

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

    .section {
        padding: 7rem 1rem 4rem 1rem; /* Increased top padding to clear navbar */
        justify-content: flex-start; /* Align to top to prevent cut-off */
    }

    /* Mobile Planets Fix */
    .solar-system {
        gap: 3rem; /* Increase gap slightly for vertical spacing */
        flex-direction: column;
        align-items: center;
    }

    .planet {
        width: auto;
        height: auto;
    }

    .planet-body {
        width: calc(var(--planet-radius) * 2);
        height: calc(var(--planet-radius) * 2);
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        clip-path: circle(50%);
        -webkit-mask-image: radial-gradient(circle, #000 99%, transparent 100%);
        mask-image: radial-gradient(circle, #000 99%, transparent 100%);
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
    }

    /* Workflow & Advantages & Blog Mobile */
    .workflow-container {
        gap: 1.5rem;
    }

    .workflow-step {
        width: 100%;
        min-width: unset;
    }

    .advantages-grid, .blog-feed {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 2rem;
    }

    .advantage-card, .blog-post {
        width: 100%;
        max-width: 340px; /* Safe width for mobile */
        margin: 0;
        text-align: center;
    }

    .blog-post {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .blog-post::before {
        left: 0; /* Keep accent line on left or move to top? */
        /* If text is centered, left border might look odd. Let's keep it for now or adjust. */
    }
}

/* Footer & Clock */
footer {
    background: #050510;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--neon-purple);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.clock-widget {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.analog-clock {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan), inset 0 0 10px var(--neon-cyan);
    position: relative;
    background: rgba(0, 0, 0, 0.8);
}

.clock-face {
    width: 100%;
    height: 100%;
    position: relative;
}

.marker {
    position: absolute;
    background: var(--neon-purple);
    width: 2px;
    height: 6px;
    left: 50%;
    transform: translateX(-50%);
}

.m-12 { top: 2px; }
.m-6 { bottom: 2px; }
.m-3 { top: 50%; right: 2px; transform: translateY(-50%) rotate(90deg); }
.m-9 { top: 50%; left: 2px; transform: translateY(-50%) rotate(90deg); }

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    border-radius: 2px;
    z-index: 2;
}

.hour-hand {
    width: 2px;
    height: 20px;
    background: #fff;
}

.minute-hand {
    width: 2px;
    height: 30px;
    background: var(--neon-blue);
    box-shadow: 0 0 5px var(--neon-blue);
}

.second-hand {
    width: 1px;
    height: 35px;
    background: var(--neon-red);
    box-shadow: 0 0 5px var(--neon-red);
    z-index: 3;
}

.center-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    box-shadow: 0 0 5px #fff;
}

.time-info {
    text-align: left;
}

#digital-clock {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--neon-blue);
}

#current-date {
    font-family: var(--font-main);
    color: var(--neon-cyan);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .clock-widget {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Disable frontend rule editing UI */
.chat-settings { 
    display: none !important; 
}
.chat-rules { 
    display: none !important; 
}
