/* Base Styling & Variables */
:root {
    --primary-color: #007bff; /* NetCoins Blue/Accent */
    --accent-color: #3498db;
    --text-color-light: #f8f9fa;
    --text-color-dark: #212529;
    --dark-bg: #1e1e30; /* Deep Navy/Indigo */
    --card-bg: #292940;
    --font-family: 'Poppins', sans-serif;
    --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.5rem;
    margin-bottom: 3rem;
    color: var(--text-color-light);
}

/* --- Dynamic Background --- */
#dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: 400% 400%;
    transition: background-image 2s ease-in-out;
    opacity: 0.1; /* Subtle effect */
}

/* --- Header & Navigation (Flexbox) --- */
header {
    background: rgba(30, 30, 48, 0.95); /* Semi-transparent dark bg */
    backdrop-filter: blur(5px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li { margin-left: 30px; }

nav ul li a {
    color: var(--text-color-light);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: 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: #fff;
    padding: 14px 35px;
    border-radius: 50px; 
    margin-top: 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background var(--transition-speed);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.7);
}

/* --- Sections Styling --- */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* --- Hero Section (Flexbox) --- */
.hero {
    padding: 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 100px 0;
}

.hero-content { flex: 1.5; }

.hero-content h2 {
    font-size: 4rem;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.hero-content p { font-size: 1.2rem; color: #ccc; }

.hero-image-placeholder {
    flex: 1;
    min-height: 350px;
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Mobile Hero adjustment */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h2 { font-size: 2.8rem; }
    .hero-image-placeholder { margin-top: 40px; }
}


/* --- Services/Blog/Testimonials (CSS Grid) --- */
.services-grid, .blog-grid, .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card, .blog-post, .testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, border 0.3s;
    border: 1px solid transparent;
}

.service-card:hover, .blog-post:hover {
    transform: translateY(-5px);
    border: 1px solid var(--primary-color);
}

/* Blog Styles */
.blog-post h3 { color: var(--primary-color); font-size: 1.4rem; }
.blog-post .summary { margin-bottom: 15px; color: #aaa; }
.read-more { font-weight: 600; font-size: 0.9rem; }

/* 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: 15px;
    font-style: normal;
    font-weight: bold;
    color: var(--accent-color);
}

/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #444;
    background: #333;
    color: #fff;
    border-radius: 5px;
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
    outline: none;
}


/* --- Footer --- */
footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

/* --- Smooth Animations (CSS Keyframes & Utility Classes) --- */

/* 1. Basic Fade In Up for Hero */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.7s 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; }


/* 2. Scroll-Based Fade In (Controlled by JS) */
.animate-on-scroll {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: 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; }