/* Base Styles and Variables */
:root {
    /* Color Palette */
    --color-background: #050714;
    --color-background-alt: #0A1128;
    --color-neon-cyan: #00FFFF;
    --color-neon-purple: #9D00FF;
    --color-neon-pink: #FF00FF;
    --color-text: #E0E0E0;
    --color-text-dim: #A0A0A0;
    
    /* Shadows */
    --neon-cyan-glow: 0 0 5px rgba(0, 255, 255, 0.5), 0 0 10px rgba(0, 255, 255, 0.3), 0 0 15px rgba(0, 255, 255, 0.1);
    --neon-purple-glow: 0 0 5px rgba(157, 0, 255, 0.5), 0 0 10px rgba(157, 0, 255, 0.3), 0 0 15px rgba(157, 0, 255, 0.1);
    --neon-pink-glow: 0 0 5px rgba(255, 0, 255, 0.5), 0 0 10px rgba(255, 0, 255, 0.3), 0 0 15px rgba(255, 0, 255, 0.1);
    
    /* Fonts */
    --font-mono: 'Space Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-neon-cyan) var(--color-background-alt);
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-background-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--color-neon-cyan);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-neon-purple);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-neon-cyan);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--color-neon-purple);
    text-shadow: var(--neon-purple-glow);
}

strong {
    color: var(--color-neon-cyan);
    font-weight: 700;
}

em {
    color: var(--color-neon-purple);
    font-style: italic;
}

/* Container and Layout */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.section {
    padding: 2rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-icon {
    font-size: 2rem;
    color: var(--color-neon-cyan);
    margin-bottom: 1rem;
    text-shadow: var(--neon-cyan-glow);
}

.section-title {
    display: inline-block;
    position: relative;
    color: var(--color-neon-cyan);
    text-shadow: var(--neon-cyan-glow);
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-neon-purple);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.section-line {
    height: 2px;
    width: 100px;
    background: linear-gradient(90deg, transparent, var(--color-neon-cyan), transparent);
    margin: 0 auto;
    position: relative;
}

.section-line::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 8px;
    background-color: var(--color-neon-cyan);
    box-shadow: var(--neon-cyan-glow);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Background Effects */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(10, 17, 40, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 17, 40, 0.8) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.3;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Neon Text Effects */
.neon-text {
    color: var(--color-neon-cyan);
    text-shadow: var(--neon-cyan-glow);
}

.highlight {
    color: var(--color-neon-purple);
    text-shadow: var(--neon-purple-glow);
    font-weight: 600;
}

.highlight-text {
    font-size: 1.5rem;
    color: var(--color-neon-cyan);
    text-shadow: var(--neon-cyan-glow);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.quote {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--color-neon-pink);
    text-shadow: var(--neon-pink-glow);
    font-style: italic;
    padding: 0 0.5rem;
}

/* Glitch Effect - Reduced Movement */
.glitch {
    position: relative;
    color: var(--color-neon-cyan);
    text-shadow: var(--neon-cyan-glow);
    display: inline-block;
    animation: subtle-pulse 4s infinite alternate;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.glitch::before {
    left: 1px;
    text-shadow: -1px 0 var(--color-neon-pink);
    animation: subtle-glitch-1 8s infinite linear alternate-reverse;
    clip: rect(44px, 450px, 56px, 0);
}

.glitch::after {
    left: -1px;
    text-shadow: 1px 0 var(--color-neon-purple);
    animation: subtle-glitch-2 9s infinite linear alternate-reverse;
    clip: rect(24px, 450px, 36px, 0);
}

@keyframes subtle-glitch-1 {
    0%, 5%, 10%, 15%, 20%, 25%, 30%, 35%, 40%, 45%, 50%, 55%, 60%, 65%, 70%, 75%, 80%, 85%, 90%, 95%, 100% {
        clip: rect(44px, 450px, 56px, 0);
        opacity: 0.7;
    }
    7%, 27%, 47%, 67%, 87% {
        clip: rect(24px, 450px, 36px, 0);
        opacity: 0.8;
    }
    17%, 37%, 57%, 77%, 97% {
        clip: rect(10px, 450px, 15px, 0);
        opacity: 0.6;
    }
}

@keyframes subtle-glitch-2 {
    0%, 5%, 10%, 15%, 20%, 25%, 30%, 35%, 40%, 45%, 50%, 55%, 60%, 65%, 70%, 75%, 80%, 85%, 90%, 95%, 100% {
        clip: rect(24px, 450px, 36px, 0);
        opacity: 0.7;
    }
    3%, 23%, 43%, 63%, 83% {
        clip: rect(15px, 450px, 25px, 0);
        opacity: 0.8;
    }
    13%, 33%, 53%, 73%, 93% {
        clip: rect(45px, 450px, 65px, 0);
        opacity: 0.6;
    }
}

@keyframes subtle-pulse {
    0%, 100% {
        text-shadow: 0 0 5px rgba(0, 255, 255, 0.5), 0 0 10px rgba(0, 255, 255, 0.3), 0 0 15px rgba(0, 255, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 8px rgba(0, 255, 255, 0.7), 0 0 15px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
    }
}

/* Hero Section */
.hero-section {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.hero-text {
    margin-bottom: 2rem;
}

.typing-container {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typed-text {
    color: var(--color-neon-purple);
    text-shadow: var(--neon-purple-glow);
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.5rem;
    background-color: var(--color-neon-cyan);
    margin-left: 5px;
    animation: blink 1s infinite;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-top: 1rem;
}

.hero-cta {
    margin-top: 3rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--color-neon-cyan);
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--color-neon-cyan);
    animation: bounce 2s infinite;
}

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

/* Split Content Layout */
.split-content {
    display: flex;
    gap: 2rem;
}

.content-left, .content-right {
flex: 1;
}

/* Tech Icons */
.tech-icons {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-bottom: 30px;
}

.tech-icon {
width: 50px;
height: 50px;
border-radius: 50%;
background-color: var(--color-bg-secondary);
display: flex;
align-items: center;
justify-content: center;
border: 1px solid var(--color-neon-cyan);
box-shadow: var(--neon-cyan-glow);
position: relative;
cursor: pointer;
transition: all var(--transition-fast);
}

.tech-icon i {
font-size: 1.5rem;
color: var(--color-neon-cyan);
}

.tech-icon:hover {
transform: scale(1.1);
box-shadow: 0 0 15px var(--color-neon-cyan);
}

.tech-icon:hover i {
color: white;
}

.tech-icon::after {
content: attr(data-tooltip);
position: absolute;
bottom: -30px;
left: 50%;
transform: translateX(-50%);
background-color: var(--color-bg-secondary);
color: var(--color-neon-cyan);
padding: 5px 10px;
border-radius: 3px;
font-size: 0.7rem;
opacity: 0;
pointer-events: none;
transition: all var(--transition-fast);
white-space: nowrap;
}

.tech-icon:hover::after {
opacity: 1;
bottom: -25px;
}

/* Purple Icon Style */
.purple-icon {
color: var(--color-neon-purple) !important;
text-shadow: 0 0 5px var(--color-neon-purple), 0 0 10px rgba(191, 64, 255, 0.5);
}

.card-icon .purple-icon {
font-size: 1.8rem;
transition: all var(--transition-fast);
}

.build-card:hover .purple-icon {
transform: scale(1.2);
text-shadow: 0 0 8px var(--color-neon-purple), 0 0 15px rgba(191, 64, 255, 0.7);
}

/* Tech Icons Grid */
.tech-icons-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
margin-bottom: 2rem;
}

.tech-icon-grid {
display: flex;
align-items: center;
justify-content: center;
width: 80px;
height: 80px;
border: 1px solid var(--color-neon-cyan);
border-radius: 50%;
font-size: 2rem;
color: var(--color-neon-cyan);
position: relative;
transition: all var(--transition-medium);
cursor: pointer;
}

.tech-icon-grid::before {
content: attr(data-tooltip);
position: absolute;
bottom: -30px;
left: 50%;
transform: translateX(-50%);
background-color: var(--color-background-alt);
color: var(--color-neon-cyan);
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
opacity: 0;
transition: all var(--transition-fast);
pointer-events: none;
white-space: nowrap;
}

.tech-icon-grid:hover {
color: var(--color-neon-purple);
border-color: var(--color-neon-purple);
box-shadow: var(--neon-purple-glow);
transform: translateY(-5px);
}

.tech-icon-grid:hover::before {
opacity: 1;
bottom: -40px;
}

.tech-icon:hover::before {
opacity: 1;
bottom: -40px;
}

/* Rotating Cube */
.rotating-cube-container {
    perspective: 800px;
    width: 200px;
    height: 200px;
    margin: 5rem auto;
}

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

.cube-face {
    position: absolute;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-neon-cyan);
    border: 2px solid var(--color-neon-cyan);
    background-color: rgba(5, 7, 20, 0.8);
    box-shadow: var(--neon-cyan-glow);
}

.front  { transform: translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg)  translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg)  translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotateCube {
    0%   { transform: rotateX(0deg)   rotateY(0deg);   }
    25%  { transform: rotateX(90deg)  rotateY(120deg); }
    50%  { transform: rotateX(180deg) rotateY(240deg); }
    75%  { transform: rotateX(270deg) rotateY(360deg); }
    100% { transform: rotateX(360deg) rotateY(480deg); }
}

/* Horizontal Scroll Cards */
.intro-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-align: center;
}

.horizontal-scroll-container {
    position: relative;
    width: 100%;
    padding: 0 2rem;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    gap: 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(5, 7, 20, 0.8);
    border: 1px solid var(--color-neon-cyan);
    color: var(--color-neon-cyan);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
}

.scroll-arrow:hover {
    color: var(--color-neon-purple);
    border-color: var(--color-neon-purple);
    box-shadow: var(--neon-purple-glow);
}

.scroll-arrow.left {
    left: 0;
}

.scroll-arrow.right {
    right: 0;
}

.build-card {
    flex: 0 0 300px;
    background-color: rgba(10, 17, 40, 0.7);
    border: 1px solid var(--color-neon-cyan);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.build-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: all var(--transition-medium);
}

.build-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-cyan-glow);
}

.build-card:hover::before {
    opacity: 1;
    animation: card-shine 1.5s infinite;
}

@keyframes card-shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-neon-cyan);
    margin-bottom: 1rem;
    text-shadow: var(--neon-cyan-glow);
}

.build-card h3 {
    color: var(--color-neon-cyan);
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--color-neon-cyan);
    border-radius: 4px;
    color: var(--color-neon-cyan);
}

/* Hexagon Grid */
.hexagon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
}

.hexagon {
    width: 150px;
    height: 170px;
    margin: 25px 12px;
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: rgba(10, 17, 40, 0.7);
    border: 1px solid var(--color-neon-purple);
    transition: all var(--transition-medium);
    cursor: pointer;
    overflow: hidden;
}

.hexagon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(157, 0, 255, 0.1), transparent);
    opacity: 0;
    transition: all var(--transition-medium);
}

.hexagon-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.hexagon i {
    font-size: 2rem;
    color: var(--color-neon-purple);
    margin-bottom: 0.5rem;
    transition: all var(--transition-medium);
}

.hexagon span {
    font-size: 0.9rem;
    color: var(--color-neon-purple);
    transition: all var(--transition-medium);
}

.hexagon:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-purple-glow);
    border-color: var(--color-neon-cyan);
}

.hexagon:hover::before {
    opacity: 1;
    animation: hex-shine 1.5s infinite;
}

.hexagon:hover i,
.hexagon:hover span {
    color: var(--color-neon-cyan);
}

.hexagon::after {
    content: attr(data-content);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    background-color: rgba(5, 7, 20, 0.9);
    color: var(--color-neon-cyan);
    font-size: 0.9rem;
    opacity: 0;
    transition: all var(--transition-medium);
    pointer-events: none;
}

.hexagon:hover::after {
    opacity: 1;
}

@keyframes hex-shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.toggle-switch {
    position: relative;
    width: 200px;
    height: 50px;
    border-radius: 25px;
    background-color: var(--color-background-alt);
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.toggle-input {
    display: none;
}

.toggle-label {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.toggle-inner {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 95px;
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--color-neon-pink), var(--color-neon-purple));
    box-shadow: 0 0 10px var(--color-neon-pink);
    transition: all var(--transition-medium);
}

.toggle-input:checked + .toggle-label .toggle-inner {
    left: calc(100% - 100px);
    background: linear-gradient(45deg, var(--color-neon-purple), var(--color-neon-cyan));
    box-shadow: 0 0 10px var(--color-neon-cyan);
}

.toggle-switch-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    transition: all var(--transition-medium);
}

.toggle-switch-text.is-not {
    left: 25px;
    color: var(--color-text);
}

.toggle-switch-text.is {
    right: 25px;
    color: var(--color-text-dim);
}

.toggle-input:checked + .toggle-label .toggle-switch-text.is-not {
    color: var(--color-text-dim);
}

.toggle-input:checked + .toggle-label .toggle-switch-text.is {
    color: var(--color-text);
}

/* Toggle Content */
.toggle-content {
    position: relative;
    min-height: 300px;
}

.content-not,
.content-is {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(-20px);
    transition: all var(--transition-medium);
    pointer-events: none;
}

.content-not.active,
.content-is.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.glitch-text {
    position: relative;
    display: inline-block;
    color: var(--color-neon-pink);
    text-shadow: var(--neon-pink-glow);
    margin-bottom: 1.5rem;
}

.glitch-list {
    list-style: none;
}

.glitch-list li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--color-neon-pink);
}

.glitch-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--color-neon-pink);
    font-weight: 700;
}

.neon-list {
    list-style: none;
}

.neon-list li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--color-neon-cyan);
}

.neon-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--color-neon-cyan);
    font-weight: 700;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contact-text {
    flex: 1;
}

.contact-list {
    list-style: none;
    margin: 1rem 0;
}

.contact-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.contact-list li i {
    color: var(--color-neon-cyan);
    margin-right: 0.5rem;
}

.contact-cta {
    font-size: 1.25rem;
    color: var(--color-neon-purple);
    margin: 1.5rem 0;
}

.contact-cta i {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

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

.satellite-dish {
    position: relative;
    width: 200px;
    height: 200px;
}

.dish-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 80px;
    background-color: var(--color-neon-purple);
    box-shadow: var(--neon-purple-glow);
}

.dish-antenna {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    border: 2px solid var(--color-neon-cyan);
    border-radius: 120px 120px 0 0;
    box-shadow: var(--neon-cyan-glow);
}

.dish-signal {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--color-neon-cyan);
    border-radius: 50%;
    box-shadow: var(--neon-cyan-glow);
    animation: signal 2s infinite;
}

@keyframes signal {
    0% {
        box-shadow: 0 0 5px var(--color-neon-cyan);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 20px var(--color-neon-cyan);
        opacity: 0.5;
    }
    100% {
        box-shadow: 0 0 5px var(--color-neon-cyan);
        opacity: 1;
    }
}

/* Environmental Intelligence Network */
.env-ai-system-container {
    margin: 3rem 0;
    padding: 2rem;
    background-color: rgba(10, 17, 40, 0.7);
    border-radius: 8px;
    border: 1px solid var(--color-neon-purple);
    box-shadow: var(--neon-purple-glow);
}

.env-ai-animation {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-areas: "sensors transmission visualization";
    gap: 2rem;
    height: 1000px;
    margin: 2rem 0;
    overflow: hidden;
}

/* Sensor Network */
.sensor-network-container {
    grid-area: sensors;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.sensor-node {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(10, 17, 40, 0.9);
    border: 2px solid var(--color-neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.sensor-node:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--color-neon-cyan);
}

.sensor-node .node-icon {
    font-size: 1.5rem;
    color: var(--color-neon-cyan);
}

.sensor-node .node-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--color-neon-cyan);
    opacity: 0.8;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

.sensor-node .node-status {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--color-neon-cyan);
    white-space: nowrap;
}

/* Data Transmission */
.data-transmission-container {
    grid-area: transmission;
    position: relative;
    height: 100%;
}

.transmission-paths {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.transmission-path {
    fill: none;
    stroke: var(--color-neon-cyan);
    stroke-width: 2;
    stroke-dasharray: 5;
    stroke-dashoffset: 0;
    animation: dash 30s linear infinite;
    opacity: 0.5;
}

@keyframes dash {
    to {
        stroke-dashoffset: 1000;
    }
}

.data-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.data-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--color-neon-cyan);
    box-shadow: 0 0 5px var(--color-neon-cyan);
    z-index: 3;
}

.temp-particle {
    background-color: #FF5733;
    box-shadow: 0 0 5px #FF5733;
}

.humidity-particle {
    background-color: #33A1FF;
    box-shadow: 0 0 5px #33A1FF;
}

.air-particle {
    background-color: #33FF57;
    box-shadow: 0 0 5px #33FF57;
}

.light-particle {
    background-color: #FFDD33;
    box-shadow: 0 0 5px #FFDD33;
}

.soil-particle {
    background-color: #A5682A;
    box-shadow: 0 0 5px #A5682A;
}

.motion-particle {
    background-color: #D433FF;
    box-shadow: 0 0 5px #D433FF;
}

/* Central AI Hub */
.central-ai-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.hub-display {
    width: 120px;
    height: 120px;
    background-color: rgba(10, 17, 40, 0.9);
    border: 2px solid var(--color-neon-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--color-neon-purple);
    overflow: hidden;
}

.hub-screen {
    width: 100px;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.hub-header {
    font-size: 0.6rem;
    color: var(--color-neon-purple);
    margin-bottom: 50px;
    text-align: center;
}

.processing-animation {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    border-top: 2px solid var(--color-neon-purple);
    border-right: 2px solid var(--color-neon-purple);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

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

.hub-status {
    font-size: 0.6rem;
    color: var(--color-neon-purple);
    margin-top: 5px;
    text-align: center;
}

/* Data Visualization */
.data-visualization {
    grid-area: visualization;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.visualization-screen {
    width: 100%;
    height: 100%;
    background-color: rgba(10, 17, 40, 0.9);
    border: 2px solid var(--color-neon-cyan);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 0 10px var(--color-neon-cyan);
    display: flex;
    flex-direction: column;
}

.visualization-header {
    font-size: 0.8rem;
    color: var(--color-neon-cyan);
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--color-neon-cyan);
    padding-bottom: 0.5rem;
}

.visualization-content {
    flex: 1;
    display: fixed;
    flex-direction: up;
    gap: 1rem;
}

.chart {
    height: 80px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-neon-cyan);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.prediction-model {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-neon-purple);
    border-radius: 4px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}

.model-header {
    font-size: 0.7rem;
    color: var(--color-neon-purple);
    margin-bottom: 0.5rem;
    text-align: center;
}

.model-visualization {
    flex: 1;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .env-ai-animation {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "sensors"
            "transmission"
            "visualization";
        height: auto;
        min-height: 1000px;
    }
    
    .sensor-network-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .data-transmission-container {
        height: 300px;
    }
    
    .data-visualization {
        height: 400px;
    }
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--neon-purple);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

.terminal-prompt {
    display: flex;
    margin-bottom: 0.5rem;
}

.prompt-user {
    color: var(--color-neon-cyan);
}

.prompt-location {
    color: var(--color-neon-purple);
}

.terminal-command {
    margin-left: 0.5rem;
}

.terminal-output {
    padding: 1rem;
    background-color: rgba(10, 17, 40, 0.5);
    border-radius: 4px;
    margin: 0.5rem 0;
    color: var(--color-text);
    font-family: var(--font-mono);
    white-space: pre-wrap;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.timestamp {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

.footer-links a {
    color: var(--color-text-dim);
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-neon-cyan);
    text-shadow: var(--neon-cyan-glow);
}

/* Terminal Overlay */
.terminal-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    height: 70%;
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ffff;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.terminal-overlay.active {
    display: flex;
}

.terminal-overlay.minimized {
    height: 40px;
    overflow: hidden;
}

.terminal-overlay.maximized {
    width: 100%;
    height: 100%;
    max-width: 100%;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid #00ffff;
}

.terminal-title {
    color: #00ffff;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control:hover {
    transform: scale(1.2);
}

.control.close {
    background-color: #ff5f56;
}

.control.minimize {
    background-color: #ffbd2e;
}

.control.maximize {
    background-color: #27c93f;
}

.terminal-content {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    font-family: 'Space Mono', monospace;
    color: #00ffff;
    font-size: 14px;
    line-height: 1.5;
    scrollbar-width: thin;
    scrollbar-color: #00ffff rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.terminal-content::-webkit-scrollbar-thumb {
    background-color: #00ffff;
    border-radius: 4px;
}

.terminal-line {
    margin-bottom: 8px;
    word-wrap: break-word;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
}

.terminal-prompt-container {
    position: sticky;
    bottom: 0;
    background-color: rgba(10, 17, 40, 0.95);
    padding: 5px 0;
    width: 100%;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    margin-top: auto;
}

.terminal-prompt {
    display: flex;
    align-items: center;
}

.prompt-user {
    color: #00ff00;
}

.prompt-location {
    color: #00ffff;
    margin-right: 5px;
}

.terminal-input {
    outline: none;
    caret-color: transparent;
    flex: 1;
    min-width: 1px;
    position: relative;
}

/* Only show cursor on the active/last terminal input */
.terminal-prompt:not(:last-child) .cursor {
    display: none;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: #9D00FF; /* Changed from cyan to neon purple */
    box-shadow: 0 0 5px #9D00FF;
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 2px;
}

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

.terminal-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-background-alt);
    border: 1px solid var(--color-neon-cyan);
    color: var(--color-neon-cyan);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    transition: all var(--transition-fast);
    box-shadow: var(--neon-cyan-glow);
}

.terminal-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--color-neon-cyan), 0 0 20px var(--color-neon-cyan);
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .split-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .tech-icons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hexagon-grid {
        justify-content: center;
    }
    
    .hexagon {
        width: 130px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .terminal-overlay {
        width: 95%;
        height: 80%;
    }
    
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .tech-icons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .build-card {
        min-width: 260px;
    }
    
    .env-system-container {
        flex-direction: column;
    }
    
    .env-system-visual, .env-system-details {
        width: 100%;
    }
    
    .env-system-specs {
        margin-top: 2rem;
    }
    
    .data-flow-animation {
        flex-direction: column;
    }
    
    .data-flow-step {
        width: 100%;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .terminal-overlay {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .terminal-toggle {
        bottom: 1rem;
        right: 1rem;
    }
    
    .build-card {
        min-width: 220px;
    }
    
    .tech-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tech-icon-grid {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .card-icon {
        font-size: 1.5rem;
    }
    
    .card-icon .purple-icon {
        font-size: 1.5rem;
    }
    
    .sensor-network {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sensor-node {
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .tech-icons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hexagon {
        width: 110px;
        height: 130px;
        margin: 15px 8px;
    }
    
    .hexagon i {
        font-size: 1.5rem;
    }
    
    .hexagon span {
        font-size: 0.8rem;
    }
    
    .toggle-switch {
        width: 160px;
    }
    
    .toggle-inner {
        width: 75px;
    }
    
    .toggle-input:checked + .toggle-label .toggle-inner {
        left: calc(100% - 80px);
    }
    
    .toggle-switch-text.is-not {
        left: 15px;
    }
    
    .toggle-switch-text.is {
        right: 15px;
    }
}
