/* Custom styles for The Clever Machine */
:root {
    --primary: #1E3A8A; /* Deep blue */
    --secondary: #3B82F6; /* Vibrant blue */
    --accent: #A5B4FC; /* Light purple */
    --bg-dark: #111827; /* Dark gray */
    --text-light: #F9FAFB; /* White */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.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);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

nav a:hover {
    color: var(--secondary);
    transition: color 0.3s ease;
}

a:hover, button:hover {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.border-gray-700 {
    border-color: #374151;
}

/* Hero section background image styling */
section[style*="background-image"] {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 500px; /* Ensure hero is tall enough */
}

/* Overlay for text readability */
section[style*="background-image"] .bg-black {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Contact and services section styling */
section .grid > div {
    transition: transform 0.3s ease;
}

section .grid > div:hover {
    transform: scale(1.02);
}

/* Logo styling */
nav img {
    height: 5rem; /* Updated to 5rem as requested */
    width: auto;
    object-fit: contain;
}