/* Tech-Art UI Theme - "Light & Shadow Reconstruction" */
:root {
    --aurora-green: #45f3a9;
    --nebula-purple: #a855f7;
    --glacier-blue: #00c6ff;
    --midnight-blue: #020617;
    --slate-gray: #94a3b8;
    --light-slate: #e2e8f0;
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Dynamic Lighting Variables - to be controlled by JS */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

@keyframes aurora-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: var(--body-font);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    color: var(--slate-gray);
    background-color: var(--midnight-blue);
    background-image: 
        linear-gradient(120deg, var(--midnight-blue), #1e293b, var(--midnight-blue)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><g fill-opacity="0.02"><circle fill="%23fff" cx="50" cy="50" r="1"/><path d="M50 50 L0 0" stroke="%23fff" stroke-width="0.1"/><path d="M50 50 L100 100" stroke="%23fff" stroke-width="0.1"/></g></svg>');
    background-size: 200% 200%, 100px 100px;
    background-blend-mode: overlay;
    animation: aurora-bg 30s ease infinite;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Header and Navigation */
header {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

/* ... (rest of the header/nav styles remain the same) ... */
.logo a {
    position: relative;
    display: block;
    width: 250px;
    height: 70px;
    top: 10px;
}
.logo-svg {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease-in-out;
}
.logo-light {
    display: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-svg {
    height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color: var(--light-slate);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--aurora-green);
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
}

nav ul li a:hover {
    color: #fff;
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

/* Hero Section with Live Aurora */
@keyframes aurora-wave-1 {
  0% { transform: translateX(-50%) translateY(-50%) rotate(0deg) scale(1.5); opacity: 0.08; }
  50% { transform: translateX(-45%) translateY(-55%) rotate(180deg) scale(1.6); opacity: 0.15; }
  100% { transform: translateX(-50%) translateY(-50%) rotate(360deg) scale(1.5); opacity: 0.08; }
}
@keyframes aurora-wave-2 {
  0% { transform: translateX(-50%) translateY(-50%) rotate(0deg) scale(1.8); opacity: 0.08; }
  50% { transform: translateX(-55%) translateY(-45%) rotate(-180deg) scale(1.9); opacity: 0.15; }
  100% { transform: translateX(-50%) translateY(-50%) rotate(-360deg) scale(1.8); opacity: 0.08; }
}

@keyframes glitch {
  2%,64%{
    transform: translate(2px,0) skew(0deg);
  }
  4%,60%{
    transform: translate(-2px,0) skew(0deg);
  }
  62%{
    transform: translate(0,0) skew(5deg); 
  }
}

@keyframes glitch-2 {
  10%, 55% {
    clip-path: polygon(0 45%, 100% 45%, 100% 55%, 0 55%);
  }
  15%, 50% {
     clip-path: polygon(0 60%, 100% 60%, 100% 70%, 0 70%);
  }
  20%, 45% {
    clip-path: polygon(0 20%, 100% 20%, 100% 30%, 0 30%);
  }
  25%, 40% {
     clip-path: polygon(0 80%, 100% 80%, 100% 90%, 0 90%);
  }
  30%, 35% {
     clip-path: polygon(0 5%, 100% 5%, 100% 15%, 0 15%);
  }
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


#hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background-color: var(--midnight-blue);
}
#hero::before, #hero::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150vw;
    height: 150vw;
    border-radius: 45%;
    opacity: 0.08;
    filter: blur(80px);
}
#hero::before {
    background: radial-gradient(circle, var(--nebula-purple), transparent 70%);
    animation: aurora-wave-1 40s infinite linear;
}
#hero::after {
    background: radial-gradient(circle, var(--aurora-green), transparent 70%);
    animation: aurora-wave-2 45s infinite linear;
    animation-delay: -22s;
}

.hero-content {
    animation: fadeIn 2s ease-out;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    color: var(--light-slate);
    text-shadow: 
        0 0 1px #fff,
        0 0 2px var(--aurora-green),
        0 0 5px var(--aurora-green),
        0 0 10px var(--nebula-purple),
        0 0 15px var(--nebula-purple);
    animation: glitch 1.5s linear infinite;
}

.hero-content h1::before,
.hero-content h1::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: var(--light-slate);
}

.hero-content h1::before {
    left: 3px;
    text-shadow: -3px 0 var(--aurora-green);
    animation: glitch-2 3s linear infinite reverse;
}

.hero-content h1::after {
    left: -3px;
    text-shadow: -3px 0 var(--nebula-purple), 3px 3px var(--aurora-green);
    animation: glitch-2 2s linear infinite;
}


.hero-content p {
    font-size: 1.4rem;
    white-space: nowrap;
    margin: 0 auto 2.5rem auto;
    color: var(--slate-gray);
}

.cta-button {
    background: var(--aurora-green);
    color: var(--midnight-blue);
    padding: 16px 38px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(69, 243, 169, 0.3);
    position: relative; /* For particle effect */
    overflow: hidden; /* For particle effect */
}

.cta-button:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

/* Sections Styling */
section {
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
section:last-of-type {
    border-bottom: none;
}
#services {
    overflow: hidden;
    padding: 60px 0;
    padding-left: 0;
    padding-right: 0;
}
#services h2, #services > p {
    padding-left: 20px;
    padding-right: 20px;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--aurora-green), var(--nebula-purple));
    border-radius: 2px;
}

/* Service Cards with Scrolling Animation */
.service-cards {
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scrolling-row {
    display: flex;
    flex-shrink: 0;
    gap: 15px;
    animation: scroll 120s linear infinite;
}

.scrolling-row:nth-child(2) {
    animation-direction: reverse;
}

.scrolling-row:nth-child(3) {
    animation-duration: 150s; /* Slower speed for variety */
}

.service-cards:hover .scrolling-row {
    animation-play-state: paused;
}

.card {
    background: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(30, 41, 59, 0.9),
        rgba(30, 41, 59, 0.6)
    );
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 300px; /* Fixed width for cards */
    flex-shrink: 0;
}
.card:hover {
    
}
.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
}
.card:hover::before {
    opacity: 1;
}

.about-card {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    text-align: left;
    width: auto; /* Override fixed width */
}

.about-card p {
    margin-bottom: 0; /* Remove default paragraph margin if needed */
}


.portfolio-card {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    text-align: left;
    width: auto; /* Override fixed width */
}

.portfolio-card p {
    margin-bottom: 0; /* Remove default paragraph margin if needed */
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--light-slate);
}

/* Footer */
footer {
    color: var(--slate-gray);
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* ... (rest of footer styles remain the same) ... */
footer .social-media a {
    color: var(--slate-gray);
    margin: 0 15px;
    font-size: 1.6rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-media a:hover {
    color: var(--aurora-green);
    transform: translateY(-2px);
}

footer p {
    margin: 15px 0 0 0;
    font-size: 0.9rem;
}

footer a {
    color: var(--light-slate);
    text-decoration: none;
    font-weight: 500;
}
footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* Contact QR Code */
.contact-qr {
    margin-top: 40px;
    display: inline-block;
}

.contact-qr p {
    color: var(--light-slate);
    margin-bottom: 1rem;
}

.contact-qr img {
    width: 180px;
    height: 180px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}
/* Portfolio Matrix Visualization */
#matrix-canvas {
    width: 100%;
    height: 450px;
    display: block;
}

.matrix-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.matrix-legend p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.9rem;
}

.matrix-legend .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.core {
    background: #fff;
    box-shadow: 0 0 5px #fff;
}

.dot.industry {
    background: var(--aurora-green);
}

.dot.eco {
    background: var(--nebula-purple);
}
