/* Base Styling & Variables */
:root {
    --primary-color: #f6851b; /* MetaMask Orange */
    --accent-color: #ec6500;
    --text-color-light: #e0e0e0;
    --text-color-dark: #1a1a1a;
    --dark-bg: #0d0d1a; /* Very deep dark blue/purple */
    --card-bg: #1a1a2e; /* Slightly lighter card background */
    --font-family: 'Oxanium', monospace; /* Futuristic/Techy font */
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color-light);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover { color: var(--accent-color); }

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--primary-color); /* Highlight section titles */
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(246, 133, 27, 0.5);
}

/* --- Blinking Background Animation --- */
#blinking-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-out, opacity 0.5s ease-out; /* Smooth transition for image/color */
    animation: blinkEffect 10s infinite alternate; /* Blink between full opacity and subtle */
    opacity: 0.3; /* Default subtle opacity */
    pointer-events: none;
}

/* Base gradients for blinking background (JS will change this) */
#blinking-background.gradient-1 { background-image: radial-gradient(circle at 70% 30%, #4a00e0 0%, #0d0d1a 60%); }
#blinking-background.gradient-2 { background-image: radial-gradient(circle at 30% 80%, #00d2ff 0%, #0d0d1a 60%); }
#blinking-background.gradient-3 { background-image: radial-gradient(circle at 50% 50%, #f6851b 0%, #0d0d1a 60%); }

@keyframes blinkEffect {
    0% { opacity: 0.1; }
    20% { opacity: 0.3; }
    40% { opacity: 0.1; }
    60% { opacity: 0.4; }
    80% { opacity: 0.1; }
    100% { opacity: 0.3; }
}


/* --- Header & Navigation (Flexbox) --- */
header {
    background: rgba(13, 13, 26, 0.95); /* Semi-transparent dark bg */
    backdrop-filter: blur(5px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(246, 133, 27, 0.4);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li { margin-left: 35px; }

nav ul li a {
    color: var(--text-color-light);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-speed), border-bottom var(--transition-speed);
}

nav ul li a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

@media (max-width: 768px) {
    nav { display: none; }
    .header-container { justify-content: center; }
}

/* --- Call to Action Button --- */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color-dark);
    padding: 16px 45px;
    border-radius: 8px; /* Slightly squarer, modern button */
    margin-top: 35px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background var(--transition-speed), box-shadow 0.3s;
    box-shadow: 0 8px 25px rgba(246, 133, 27, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.cta-button:hover {
    background: #fff;
    transform: translateY(-7px) scale(1.05);
    box-shadow: 0 12px 35px rgba(246, 133, 27, 0.9);
    color: var(--accent-color);
}

/* --- Sections Styling --- */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* --- Hero Section (Flexbox) --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 120px 0;
}

.hero-content { 
    flex: 1.5; 
    padding: 20px 0;
}

.hero-content h2 {
    font-size: 4.5rem;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(246, 133, 27, 0.4);
}

.hero-content p { font-size: 1.25rem; color: #bbb; }

.hero-image-placeholder {
    flex: 1;
    min-height: 400px;
    background: url('https://i.ibb.co/JRZfZh3Q/metamask-login.png') no-repeat center center/contain; /* MetaMask fox logo */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(246, 133, 27, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 40px rgba(246, 133, 27, 0.4); }
    to { box-shadow: 0 0 80px rgba(246, 133, 27, 0.7); }
}


@media (max-width: 992px) {
    .hero-content-wrapper { flex-direction: column; text-align: center; }
    .hero-content h2 { font-size: 3rem; }
    .hero-image-placeholder { margin-top: 60px; min-height: 250px;}
}


/* --- Cards and Grid Layouts --- */
.services-grid, .blog-grid, .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card, .blog-post, .testimonial-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, border-color 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card::before, .blog-post::before, .testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(246, 133, 27, 0.1), transparent 70%);
    transform: rotate(0deg);
    transition: transform 1s linear;
    opacity: 0;
}

.service-card:hover::before, .blog-post:hover::before, .testimonial-card:hover::before {
    transform: rotate(360deg);
    opacity: 1;
}


.service-card:hover, .blog-post:hover, .testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--primary-color);
    border-color: var(--primary-color);
}

/* Blog Styles */
.blog-post h3 { color: var(--primary-color); font-size: 1.5rem; margin-bottom: 10px; }
.blog-post p.summary { margin-bottom: 20px; color: #ccc; font-size: 0.95rem;}
.read-more { font-weight: 600; font-size: 0.9rem; color: #4CAF50; }
.read-more:hover { color: #81C784; text-decoration: underline; }

/* Testimonial Styles */
.testimonial-card {
    border-left: 4px solid var(--primary-color);
    text-align: left;
}
.testimonial-card p { color: #ccc; }
.testimonial-card cite {
    display: block;
    margin-top: 20px;
    font-style: normal;
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(246, 133, 27, 0.6);
    outline: none;
}


/* --- Footer --- */
footer {
    background: #08081a;
    color: #888;
    text-align: center;
    padding: 30px 0;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Smooth Animations (CSS Keyframes & Utility Classes) --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }


.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }