/* Main Styles for ColorClerk Website */

:root {
    --primary-dark: #121212;
    --secondary-dark: #1e1e1e;
    --accent-color: #E52FA4;
    --text-color: rgba(255, 255, 255, 0.9);
    --text-color-muted: rgba(255, 255, 255, 0.7);
    --border-radius: 12px;
    --gradient-primary: linear-gradient(145deg, #121212 0%, #1a1a1a 50%, #222222 100%);
    --gradient-accent: linear-gradient(135deg, #A44FDA 0%, #E52FA4 50%, #E4AF11 100%);
    --card-bg: rgba(40, 40, 40, 0.7);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* General Styles */
body {
    font-family: 'Varela Round', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: var(--gradient-primary);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #e13e50;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(164, 79, 218, 0.3);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    padding: 12px 15px;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: none;
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
}

/* Navbar */
.navbar {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    background: url('../images/color-clerk-hero-bg.jpg') no-repeat center center;
    background-size: cover;
}

.hero:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.7);
    /* Dark overlay for better text readability */
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero h2 {
    font-size: 2rem;
    color: var(--text-color-muted);
}

.hero-img {
    border-radius: 0;
    box-shadow: none;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
    padding-bottom: 10px;
}

.section-title:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* Feature Cards */
.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    height: 100%;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(164, 79, 218, 0.3);
}

.icon-container i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-color-muted);
    line-height: 1.6;
}

/* Use Case Cards */
.use-case-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    height: 100%;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.use-case-icon {
    font-size: 2.5rem;
    color: #E52FA4;
    /* Fallback color if gradient doesn't apply */
    margin-bottom: 20px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* For better browser compatibility */
}

.use-case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.use-case-card p {
    color: var(--text-color-muted);
}

/* Contact Form */
.contact-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer {
    background-color: rgba(18, 18, 18, 0.9);
    padding: 30px 0;
    color: var(--text-color-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link {
    color: var(--text-color-muted);
    margin-left: 20px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero {
        padding: 130px 0 80px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .hero-img {
        margin-top: 40px;
        transform: none;
    }

    .hero-img:hover {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .section {
        padding: 70px 0;
    }

    .feature-card,
    .use-case-card,
    .contact-card {
        padding: 25px;
    }

    .footer {
        text-align: center;
    }

    .footer-link {
        display: block;
        margin: 10px 0;
    }
}