/* 
  Web3 Composition Website - CSS Styling
  Design Philosophy: Puzzle-Piece Modular Architecture
  Color Scheme: Black (#0d0d0d) + Gold (#ffd700)
  Typography: Space Mono (headlines), Roboto (body)
  Animation: Bouncy transitions (0.3s), subtle rotations, smooth fades
*/

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

:root {
    --color-black: #0d0d0d;
    --color-dark: #1a1a1a;
    --color-gold: #ffd700;
    --color-gold-light: #ffed4e;
    --color-white: #f5f5f5;
    --color-gray: #a0a0a0;
    --color-gray-dark: #666666;
    --font-mono: 'Space Mono', monospace;
    --font-body: 'Roboto', sans-serif;
    --transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-gold);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--color-white);
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-gold-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    display: flex;
    position: sticky;
    top: 0;
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-gold);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease-out;
    cursor: pointer;
}

.logo:hover {
    color: var(--color-gold-light);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex !important;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-white);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--color-gold);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 5px 0;
    transition: 0.3s;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    opacity: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.2) 50%, rgba(13, 13, 13, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 1s ease-out;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-text {
    animation: slideInDown 1s ease-out;
}

.hero-headline {
    font-size: 2.2rem;
    font-family: var(--font-mono);
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
    animation: fadeInUp 1.2s ease-out;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subheadline {
    font-size: 1.8rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 1.4s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.puzzle-icon-inline {
    width: 40px;
    height: 40px;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    transition: all 0.3s ease-out;
}

.puzzle-icon-inline:hover {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    transform: scale(1.15) rotate(5deg);
}

.hero-description {
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    animation: fadeInUp 1.6s ease-out;
}

.cta-button {
    background-color: var(--color-gold);
    color: var(--color-black);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: bold;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    animation: fadeInUp 1.8s ease-out;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-gold-light);
    transition: left var(--transition);
    z-index: -1;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.cta-button:hover::before {
    left: 0;
}

.cta-button-large {
    background-color: var(--color-gold);
    color: var(--color-black);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.cta-button-large:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

/* About Us (Short) */
.about-short {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(13, 13, 13, 1) 0%, rgba(26, 26, 26, 1) 100%);
    border-top: 2px solid var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
}

.about-short h2 {
    color: var(--color-gold);
    margin-bottom: 2rem;
}

.about-short p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.mission {
    color: var(--color-gold-light);
    font-style: italic;
    margin-top: 2rem;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--color-black);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(13, 13, 13, 0.8) 100%);
    border: 2px solid var(--color-gold);
    padding: 2rem;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    transform: rotate(-1deg);
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out;
}

.service-card:nth-child(2) {
    transform: rotate(1deg);
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    transform: rotate(-1.5deg);
    animation-delay: 0.2s;
}

.service-card:nth-child(4) {
    transform: rotate(1.5deg);
    animation-delay: 0.3s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left var(--transition);
    z-index: 1;
}

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

.service-card:hover {
    transform: translateY(-10px) rotate(0deg);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
    border-color: var(--color-gold-light);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    transition: all 0.3s ease-out;
}

.service-card:hover .service-icon-img {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-focus {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.focus-tag {
    background-color: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    transition: all var(--transition);
}

.focus-tag:hover {
    background-color: rgba(255, 215, 0, 0.2);
}

.service-link {
    display: inline-block;
    color: var(--color-gold);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition);
    position: relative;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width var(--transition);
}

.service-link:hover::after {
    width: 100%;
}

/* Why Us Section */
.why-us {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.5) 0%, rgba(13, 13, 13, 0.5) 100%);
    border-top: 2px solid var(--color-gold);
}

.why-us h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.reason-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.05);
    border-left: 3px solid var(--color-gold);
    transition: all var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.reason-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(10px);
}

.reason-check {
    color: var(--color-gold);
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.reason-item p {
    margin: 0;
    font-size: 1rem;
}

/* CTA Block */
.cta-block {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-gold) 0%, #ffed4e 100%);
    text-align: center;
    border-top: 2px solid var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
}

.cta-block h2 {
    color: var(--color-black);
    margin-bottom: 1rem;
}

.cta-block p {
    color: var(--color-black);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-block .cta-button-large {
    background-color: var(--color-black);
    color: var(--color-gold);
    border: 2px solid var(--color-black);
}

.cta-block .cta-button-large:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
}

/* Service Detail Pages */
.service-detail {
    padding: 4rem 0;
    min-height: 100vh;
}

.service-detail .container {
    animation: fadeIn 0.8s ease-out;
}

.back-link {
    display: inline-block;
    color: var(--color-gold);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    transition: all var(--transition);
}

.back-link:hover {
    transform: translateX(-5px);
}

.service-detail h1 {
    color: var(--color-gold);
    margin-bottom: 2rem;
}

.intro {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
    line-height: 1.9;
}

.focus-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.focus-area {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(13, 13, 13, 0.8) 100%);
    border: 1px solid var(--color-gold);
    padding: 2rem;
    border-radius: 0;
    transition: all var(--transition);
}

.focus-area:hover {
    border-color: var(--color-gold-light);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

.focus-area h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.focus-area ul {
    list-style: none;
    padding: 0;
}

.focus-area li {
    color: var(--color-gray);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.focus-area li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.step {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid var(--color-gold);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.step:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.step-number {
    display: block;
    font-size: 2.5rem;
    color: var(--color-gold);
    font-family: var(--font-mono);
    font-weight: bold;
    margin-bottom: 1rem;
}

.step h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin: 0;
}

.consulting-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-box {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(13, 13, 13, 0.8) 100%);
    border: 1px solid var(--color-gold);
    padding: 1.5rem;
    border-radius: 0;
    transition: all var(--transition);
}

.service-box:hover {
    border-color: var(--color-gold-light);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

.service-box h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.service-box h4 {
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.service-box ul {
    list-style: none;
    padding: 0;
}

.service-box li {
    color: var(--color-gray);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.service-box li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

.service-box p {
    color: var(--color-gray);
    margin: 0;
    font-size: 0.95rem;
}

.rwa-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.rwa-item {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(13, 13, 13, 0.8) 100%);
    border: 2px solid var(--color-gold);
    padding: 2rem;
    transition: all var(--transition);
}

.rwa-item:hover {
    border-color: var(--color-gold-light);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

.rwa-item h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.rwa-item p {
    color: var(--color-gray);
    margin: 0;
}

.legal-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.security-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.cta-section {
    text-align: center;
    padding: 3rem 0;
    border-top: 2px solid var(--color-gold);
    margin-top: 3rem;
}

.cta-section h3 {
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

/* About Page */
.about-page {
    padding: 4rem 0;
    min-height: 100vh;
}

.about-page h1 {
    color: var(--color-gold);
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    line-height: 1.9;
    max-width: 800px;
}

/* Contact Page */
.contact-page {
    padding: 4rem 0;
    min-height: 100vh;
}

.contact-page h1 {
    color: var(--color-gold);
    margin-bottom: 2rem;
}

.contact-intro {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 3rem;
    max-width: 600px;
}

.contact-form {
    max-width: 600px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(13, 13, 13, 0.8) 100%);
    border: 2px solid var(--color-gold);
    padding: 2.5rem;
    border-radius: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--color-gold);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: rgba(255, 215, 0, 0.05);
    border: 1px solid var(--color-gold);
    color: var(--color-white);
    padding: 0.8rem;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(255, 215, 0, 0.1);
    border-color: var(--color-gold-light);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.form-group textarea {
    resize: vertical;
    font-family: var(--font-body);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(13, 13, 13, 1) 0%, rgba(26, 26, 26, 1) 100%);
    border-top: 2px solid var(--color-gold);
    padding: 2rem 0;
    text-align: center;
    color: var(--color-gray);
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

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

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

/* Binary Code Background Animation */
@keyframes binaryFall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-background {
        background-image: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-subheadline {
        font-size: 1.3rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        transform: rotate(0deg);
    }

    .service-card:nth-child(2),
    .service-card:nth-child(3),
    .service-card:nth-child(4) {
        transform: rotate(0deg);
    }

    .focus-areas {
        grid-template-columns: 1fr;
    }

    .security-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-headline {
        font-size: 1.5rem;
    }

    .hero-subheadline {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .service-focus {
        gap: 0.3rem;
    }

    .security-services {
        grid-template-columns: 1fr;
    }

    .focus-tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }
}
