/* Base Styling & Variables */
:root {
    --primary-color: #007bff; /* NetCoins Blue */
    --accent-color: #0056b3;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --font-family: 'Montserrat', 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);
    background-color: #fff;
    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);
}

/* --- 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: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

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: 25px; }

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    transition: color var(--transition-speed);
}

nav ul li a:hover { color: var(--primary-color); }

/* Mobile Navigation Toggle (Simple hide for minimalist design) */
@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: 12px 30px;
    border-radius: 50px;
    margin-top: 20px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background var(--transition-speed);
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-3px) scale(1.02);
}

/* --- Sections Styling --- */
section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-bg);
}

/* --- Hero Section (Flexbox) --- */
.hero {
    background: transparent;
    padding: 0;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 100px 0;
}

.hero-content { flex: 1.2; }

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--dark-bg);
}

.hero-content p { font-size: 1.1rem; }

.hero-image-placeholder {
    flex: 1;
    min-height: 350px;
    background-image: url('https://i.imgur.com/your-netcoins-image.png'); /* Placeholder Image URL */
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Mobile Hero adjustment */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h2 { font-size: 2.5rem; }
    .hero-image-placeholder { margin-top: 40px; }
}


/* --- Services/Blog/Testimonials (CSS Grid) --- */
.services, .testimonials, .blog {
    background: var(--light-bg);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.blog-post {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}
.blog-post:hover {
    transform: translateY(-5px);
}
.blog-post h3 { color: var(--primary-color); }
.blog-post .summary { margin-bottom: 10px; font-size: 0.95rem; }
.read-more { font-weight: 600; font-size: 0.9rem; }


.services-grid, .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card, .testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.service-card:hover, .testimonial-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-card {
    text-align: left;
    border-left: 4px solid var(--primary-color);
    border-top: none;
}

.testimonial-card cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
    color: var(--accent-color);
}

/* --- Contact Form --- */
.contact { background: #fff; }
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color var(--transition-speed);
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}


/* --- Footer --- */
footer {
    background: var(--dark-bg);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}


/* --- Smooth Animations (CSS Keyframes & Utility Classes) --- */

/* 1. Basic Fade In Up for Hero */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 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: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.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; }