/* CSS Variables for Color Scheme & Reset */
:root {
    --color-red: #E50914;
    --color-black: #141414;
    --color-white: #FFFFFF;
    --color-gray: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
}

/* General Styling */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
    overflow: hidden;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
p { margin: 1rem 0; }
img { width: 100%; }

.btn {
    display: inline-block;
    background: var(--color-red);
    color: var(--color-white);
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
    background-color: #c40812;
}
.text-red {
    color: var(--color-red);
}

.section {
    padding: 5rem 0;
}

.section-light { background-color: var(--color-white); }
.section-dark { background-color: var(--color-gray); }

/* Header & Navigation */
.header {
    background: var(--color-white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}
.logo-group {
    display: flex;
    align-items: center;
    gap: 1rem; /* Creates space between logo and text */
}

.header-title {
    font-weight: 700; /* Bold text */
    font-size: 1.8rem;
    color: var(--color-black); /* Sets text color to black */
}

/* Add this to your responsive section to hide the text on small screens */
@media(max-width: 768px) {
    .logo-group {
        justify-content: center; /* Centers the logo and title on mobile */
        margin-bottom: 0.5rem;   /* Adds a little space below the title */
    }
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li a {
    color: var(--color-black);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-red);
    transition: width 0.3s ease;
}

.nav ul li a:hover, .nav ul li a.active {
    color: var(--color-red);
}

.nav ul li a:hover::after, .nav ul li a.active::after {
    width: 50%;
}

/* Hero Section */
#hero {
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-black);
    padding-top: 60px; /* Header offset */

    /* --- START: VAMPIRE THEME EFFECT --- */
    background-color: var(--color-white);
    background-image: 
        /* 1. Subtle vignette for moody lighting */
        radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%),
        /* 2. Your existing subtle spiderweb */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23141414' stroke-opacity='0.05' stroke-width='0.5'%3E%3Cpath d='M50 0v100M0 50h100'/%3E%3Cpath d='M17.6 17.6l64.8 64.8M17.6 82.4l64.8-64.8'/%3E%3Ccircle cx='50' cy='50' r='10'/%3E%3Ccircle cx='50' cy='50' r='20'/%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3Ccircle cx='50' cy='50' r='40'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center center;
    /* --- END: VAMPIRE THEME EFFECT --- */
}

/* About Section */
#about .about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
}

#about img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Services (Websites & Chatbots) Sections */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card h3 {
    color: var(--color-red);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card.popular {
    border-color: var(--color-red);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.2);
}

.pricing-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.price { font-size: 2.5rem; font-weight: 700; color: var(--color-red); }
.price span { font-size: 1rem; font-weight: 400; color: #666; }
.pricing-card ul { list-style: none; margin: 2rem 0; }
.pricing-card ul li { padding: 0.5rem 0; }

/* Contact Section */
#contact form {
    max-width: 700px;
    margin: auto;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-red);
}

.form-group .error-message {
    color: var(--color-red);
    font-size: 0.8rem;
    position: absolute;
    bottom: -1.2rem;
    left: 0;
    display: none;
}

.form-group.invalid input, .form-group.invalid textarea {
    border-color: var(--color-red);
}

.form-group.invalid .error-message {
    display: block;
}

#form-success {
    text-align: center;
    color: green;
    font-weight: 600;
    display: none;
    margin-top: 1rem;
}

#contact form button { width: 100%; padding: 1rem; font-size: 1.2rem; }

/* Footer */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media(max-width: 768px) {
    h1 { font-size: 2.5rem; }
    #hero h1 { font-size: 3rem; }
    #hero p { font-size: 1.2rem; }
    
    .header .container { flex-direction: column; }
    .header .nav ul { margin-top: 1rem; }
    .section { padding: 3rem 0; }
    
    #about .about-content { grid-template-columns: 1fr; }
    #about .about-content img { margin-top: 2rem; }

    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card { margin-bottom: 2rem; }
}