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

:root {
    --color-black: #000000;
    --color-green: #D5FE9D;
    --color-red: #FF4444;
    --color-purple: #9D7FFF;
    --color-white: #FFFFFF;
    --color-gray: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Code Background - Infinite scrolling on sides */
.code-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
}

.code-background::before,
.code-background::after {
    content: '';
    position: absolute;
    width: 20%;
    height: 200%;
    font-family: 'Courier New', monospace;
    color: var(--color-green);
    opacity: 0.18;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre;
    overflow: hidden;
}

/* Left side scrolling code */
.code-background::before {
    left: 0;
    top: 0;
    content: 'const vibeCoding = () => {\A  const flow = findYourRhythm();\A  const focus = deepWork(true);\A  return flow + focus;\A};\A\Afunction createMagic(code, passion) {\A  if (passion > 0) {\A    return code.map(line => {\A      return transform(line);\A    }).filter(isBeautiful);\A  }\A}\A\Aclass Developer {\A  constructor(mindset) {\A    this.vibe = "creative";\A    this.flow = new FlowState();\A    this.passion = Infinity;\A  }\A}\A\Awhile (learning) {\A  const knowledge = absorb();\A  const skills = practice();\A  level.up();\A}\A\Aasync function buildDreams() {\A  const idea = await brainstorm();\A  const plan = design(idea);\A  const reality = await execute(plan);\A  return reality;\A}\A\Aconst codePoetry = {\A  beauty: true,\A  elegance: "simple",\A  power: "infinite"\A};\A\Afor (let dream of dreams) {\A  if (dream.isPossible()) {\A    await makeItReal(dream);\A  }\A}\A\Aconst inspiration = await findInspiration();\Aconst creativity = unleash(inspiration);\Aconst masterpiece = build(creativity);\A\Aexport default {\A  vibe: "coding",\A  mode: "flow",\A  energy: "high",\A  create: () => magic\A};\A\Aconst vibeCoding = () => {\A  const flow = findYourRhythm();\A  const focus = deepWork(true);\A  return flow + focus;\A};\A\Afunction createMagic(code, passion) {\A  if (passion > 0) {\A    return code.map(line => {\A      return transform(line);\A    }).filter(isBeautiful);\A  }\A}\A\Aclass Developer {\A  constructor(mindset) {\A    this.vibe = "creative";\A    this.flow = new FlowState();\A    this.passion = Infinity;\A  }\A}\A\Awhile (learning) {\A  const knowledge = absorb();\A  const skills = practice();\A  level.up();\A}\A\Aasync function buildDreams() {\A  const idea = await brainstorm();\A  const plan = design(idea);\A  const reality = await execute(plan);\A  return reality;\A}\A';
    animation: scrollUpInfinite 60s linear infinite;
    padding: 20px;
}

/* Right side scrolling code */
.code-background::after {
    right: 0;
    top: 0;
    content: 'export default {\A  vibe: "coding",\A  mode: "flow",\A  energy: "high"\A};\A\Aconst buildFeature = async () => {\A  const idea = conceive();\A  const code = write(idea);\A  const result = await deploy(code);\A  return result;\A};\A\Aif (passionate) {\A  while (true) {\A    const project = create();\A    const joy = share(project);\A    happiness += joy;\A  }\A}\A\Aclass Coder {\A  constructor() {\A    this.skills = [];\A    this.dreams = Infinity;\A    this.determination = 100;\A  }\A  \A  learn(skill) {\A    this.skills.push(skill);\A    this.level++;\A  }\A}\A\Aconst magic = {\A  input: "idea",\A  process: "code",\A  output: "reality"\A};\A\Afor (const challenge of challenges) {\A  const solution = solve(challenge);\A  experience.add(solution);\A}\A\Aasync function innovate() {\A  const problem = identify();\A  const solution = design(problem);\A  await implement(solution);\A}\A\Aconst developer = {\A  mindset: "growth",\A  passion: true,\A  creativity: Infinity\A};\A\Awhile (coding) {\A  const bug = find();\A  const fix = create(bug);\A  deploy(fix);\A}\A\Aconst success = {\A  planning: 0.2,\A  execution: 0.8,\A  learning: 1.0\A};\A\Aexport default {\A  vibe: "coding",\A  mode: "flow",\A  energy: "high"\A};\A\Aconst buildFeature = async () => {\A  const idea = conceive();\A  const code = write(idea);\A  const result = await deploy(code);\A  return result;\A};\A\Aif (passionate) {\A  while (true) {\A    const project = create();\A    const joy = share(project);\A    happiness += joy;\A  }\A}\A';
    animation: scrollUpInfinite 70s linear infinite;
    animation-delay: -10s;
    padding: 20px;
}

@keyframes scrollUpInfinite {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Animation for centered scrolling on mobile */
@keyframes scrollUpCentered {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(-50%);
    }
}

.code-line {
    white-space: pre;
    margin: 4px 0;
}

/* Pixel Characters */
.pixel-char {
    position: fixed;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.pixel-char-1 {
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.pixel-char-2 {
    bottom: 20%;
    left: 8%;
    animation-delay: 3s;
}

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

/* Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

.logo img {
    max-width: 300px;
    height: auto;
}

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

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.title-main {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-green);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(213, 254, 157, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-red);
    margin-bottom: 50px;
    line-height: 1.4;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(213, 254, 157, 0.05);
    border: 1px solid rgba(213, 254, 157, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(213, 254, 157, 0.1);
    border-color: var(--color-green);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2rem;
}

.feature span:last-child {
    color: var(--color-white);
    font-size: 1.1rem;
}

/* Form Section */
.form-section {
    margin: 80px 0;
    animation: fadeInUp 1.4s ease-out;
}

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

.form-container {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-green);
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 0 40px rgba(213, 254, 157, 0.1);
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-green);
    margin-bottom: 15px;
    text-align: center;
}

.form-subtitle {
    color: var(--color-white);
    opacity: 0.8;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Form Styles */
.ebook-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label:not(.checkbox-label) {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid rgba(213, 254, 157, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--color-green);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 15px rgba(213, 254, 157, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Checkbox */
.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.8);
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-green);
}

/* Submit Button */
.submit-btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-black);
    background: var(--color-green);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(213, 254, 157, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn .arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .arrow {
    transform: translateX(5px);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
    animation: successSlide 0.5s ease-out;
}

@keyframes successSlide {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--color-green);
    color: var(--color-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
}

.success-message h4 {
    font-size: 2rem;
    color: var(--color-green);
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.1rem;
    color: var(--color-white);
    opacity: 0.9;
}

/* Footer */
.footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid rgba(213, 254, 157, 0.2);
}

.footer-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-green);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .title-main {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .form-container {
        padding: 40px 25px;
    }

    .logo img {
        max-width: 200px;
    }

    .pixel-char {
        width: 40px;
        height: 40px;
    }

    .pixel-char svg {
        width: 40px;
        height: 40px;
    }

    /* Responsive scrolling code - single centered column on mobile */
    .code-background::before {
        width: 60%;
        left: 50%;
        font-size: 11px;
        opacity: 0.12;
        text-align: center;
        animation: scrollUpCentered 60s linear infinite;
    }

    /* Hide right column on tablet */
    .code-background::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .form-container {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .submit-btn {
        padding: 16px 30px;
        font-size: 1rem;
    }

    /* Single centered scrolling code on mobile */
    .code-background::before {
        width: 80%;
        left: 50%;
        font-size: 10px;
        opacity: 0.1;
        text-align: center;
        animation: scrollUpCentered 60s linear infinite;
    }

    /* Keep right column hidden on mobile */
    .code-background::after {
        display: none;
    }
}