/*
 * Stylesheet for the AI Agency website
 *
 * The design uses a modern colour palette with a dark blue primary tone
 * and a vibrant highlight colour. Cards and sections are given subtle
 * shadows and rounded corners for a clean, friendly appearance. The
 * layout is responsive thanks to CSS grid and flexible units. Feel free
 * to tweak the variables below to adjust the look and feel of the site.
 */

:root {
    --primary: #0a192f;     /* Deep navy used for the navbar and footer */
    --secondary: #1f3a93;   /* Secondary shade for accents */
    --highlight: #00a1e4;   /* Bright accent colour for buttons and icons */
    --light: #f8f9fa;       /* Light background colour */
    --dark-text: #112240;   /* Dark text colour for good contrast */
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: var(--light);
}

/* Navigation bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

nav ul li a:hover,
nav ul li a:focus {
    color: var(--highlight);
}

/* Hero section */
.hero {
    position: relative;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 6rem 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.hero .content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    /* Animated gradient text effect for the page titles */
    background: linear-gradient(45deg, var(--highlight), #8a2be2, #00ffc6, var(--highlight));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 10s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #e0eafc;
}

.button {
    background: var(--highlight);
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
    display: inline-block;
}

.button:hover,
.button:focus {
    background: #008ecf;
}

/* Generic section styles */
.section {
    padding: 4rem 1rem;
    text-align: center;
    background: var(--light);
}

.section.dark {
    background: #ffffff;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section p {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    color: var(--dark-text);
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--highlight);
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.service-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--dark-text);
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    align-self: flex-start;
}

/* Footer */
.footer {
    background: var(--primary);
    color: #ffffff;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer a {
    color: var(--highlight);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    nav ul li {
        margin-left: 1rem;
    }
}