:root {
    --bg-color: #0f0f1a;
    --card-bg: #1a1a2e;
    --text-main: #e0e0e0;
    --text-highlight: #ffffff;
    --accent-pink: #ff2a6d;
    --accent-cyan: #05d9e8;
    --accent-yellow: #f9c80e;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

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

/* Header & Nav */
header {
    background: linear-gradient(90deg, var(--card-bg) 0%, #2a1b3d 100%);
    padding: 1rem 0;
    border-bottom: 3px solid var(--accent-pink);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 42, 109, 0.2);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    text-shadow: 2px 2px 0px var(--accent-pink);
}

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

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

nav a:hover, nav a.active {
    color: var(--accent-yellow);
    text-decoration: underline wavy var(--accent-pink);
    text-underline-offset: 5px;
}

/* Layout Containers */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 2rem;
    background: radial-gradient(circle at center, #2a1b3d 0%, var(--bg-color) 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--accent-pink);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.hero h1 {
    font-size: 4rem;
    color: var(--text-highlight);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero span {
    color: var(--accent-pink);
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-main);
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--accent-yellow);
    color: var(--bg-color);
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 15px rgba(249, 200, 14, 0.4);
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(249, 200, 14, 0.6);
}

/* Section Styling */
.section-title {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 5px;
    background: var(--accent-pink);
    margin: 1rem auto 0;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

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

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-yellow));
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-yellow);
}

.card p {
    margin-bottom: 1.5rem;
}

/* Decorative Lists */
.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: "►";
    color: var(--accent-pink);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 4px;
}

/* Footer */
footer {
    background: var(--card-bg);
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: #888;
}

/* Shape Dividers (CSS only) */
.wave-divider {
    height: 50px;
    background: radial-gradient(circle at 50% -20px, transparent 40px, var(--bg-color) 41px);
    background-size: 80px 100%;
    transform: rotate(180deg);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

/* --- New Layout Variations --- */

/* 1. Zig-Zag / Alternating Layout (for Home) */
.zigzag-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.zigzag-section:nth-child(even) {
    flex-direction: row-reverse;
}

.zigzag-visual {
    flex: 1;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    position: relative;
}

.zigzag-content {
    flex: 1;
}

/* Composite Abstract Art for Visuals */

/* Visual 1: Speed / Motion (Skewed Lines) */
.visual-speed {
    width: 200px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.speed-line {
    height: 15px;
    background: linear-gradient(90deg, transparent, var(--accent-pink));
    border-radius: 20px;
    width: 100%;
    opacity: 0.8;
    transform: skewX(-20deg);
    animation: speedSlide 2s infinite linear;
}

.speed-line:nth-child(1) { width: 80%; align-self: flex-start; animation-delay: 0s; }
.speed-line:nth-child(2) { width: 100%; animation-delay: 0.5s; background: linear-gradient(90deg, transparent, var(--accent-yellow)); }
.speed-line:nth-child(3) { width: 60%; align-self: flex-end; animation-delay: 1s; background: linear-gradient(90deg, transparent, var(--accent-cyan)); }

@keyframes speedSlide {
    0% { transform: skewX(-20deg) translateX(-20px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: skewX(-20deg) translateX(20px); opacity: 0; }
}

/* Visual 2: Diversity (Overlapping Orbs) */
.visual-diversity {
    width: 160px;
    height: 160px;
    position: relative;
}

.orb {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 100px;
    height: 100px;
    background: var(--accent-pink);
    top: 0;
    left: 20px;
    opacity: 0.7;
    animation: floatOrb 4s infinite ease-in-out;
}

.orb-2 {
    width: 100px;
    height: 100px;
    background: var(--accent-cyan);
    bottom: 0;
    left: 0;
    opacity: 0.7;
    animation: floatOrb 4s infinite ease-in-out 1s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    background: var(--accent-yellow);
    bottom: 10px;
    right: 0;
    opacity: 0.7;
    animation: floatOrb 4s infinite ease-in-out 2s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, -10px); }
}

/* Visual 3: Data (Digital Equalizer) */
.visual-data {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 120px;
    width: 150px;
}

.data-bar {
    width: 20px;
    background: var(--accent-cyan);
    animation: bounceBar 1.5s infinite ease-in-out;
    border-top: 3px solid #fff;
    opacity: 0.8;
}

.data-bar:nth-child(1) { height: 40%; animation-delay: 0s; background: var(--accent-pink); }
.data-bar:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.data-bar:nth-child(3) { height: 60%; animation-delay: 0.4s; background: var(--accent-yellow); }
.data-bar:nth-child(4) { height: 90%; animation-delay: 0.1s; }
.data-bar:nth-child(5) { height: 50%; animation-delay: 0.3s; background: var(--accent-pink); }

@keyframes bounceBar {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.2); }
}

/* 2. Process/Timeline Layout (for Services) */
.process-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3rem;
}

.process-number {
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-pink);
    opacity: 0.5;
    line-height: 1;
}

.process-content h3 {
    font-size: 2rem;
    color: var(--text-highlight);
    margin-bottom: 1rem;
}

/* 3. Tech-Spec Grid (for Works) */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.tech-item {
    background: rgba(5, 217, 232, 0.05);
    border-left: 4px solid var(--accent-cyan);
    padding: 1.5rem;
    position: relative;
}

.tech-item.wide { grid-column: span 12; background: linear-gradient(90deg, rgba(26, 26, 46, 1), rgba(42, 27, 61, 1)); border: 1px solid var(--accent-pink); }
.tech-item.medium { grid-column: span 6; }
.tech-item.small { grid-column: span 4; }

@media (max-width: 768px) {
    .zigzag-section { flex-direction: column !important; text-align: center; }
    .process-row { grid-template-columns: 1fr; }
    .tech-item.medium, .tech-item.small { grid-column: span 12; }
}

/* Pattern Backgrounds */
.bg-dots {
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-stripes {
    background: repeating-linear-gradient(
        45deg,
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.2) 10px,
        rgba(0,0,0,0.3) 10px,
        rgba(0,0,0,0.3) 20px
    );
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, #2a1b3d, #1a1a2e);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    border: 2px dashed var(--accent-cyan);
}

.email-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-pink);
    margin-top: 2rem;
    word-break: break-all;
    font-family: monospace;
}
