:root { 
    --primary: #0056b3; 
    --secondary: #28a745; 
    --dark: #333; 
    --light: #f4f4f4; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    line-height: 1.6; 
    color: var(--dark); 
    background: #fff; 
    overflow-x: hidden; /* Prevents horizontal scroll from animations */
}

.container { 
    width: 85%; 
    margin: auto; 
    overflow: hidden; 
}

/* --- HEADER & NAVIGATION --- */
header { 
    background: #fff; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    padding: 15px 0;
    position: sticky; /* Keeps header at top when scrolling */
    top: 0;
    z-index: 999;
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.site-logo { 
    max-height: 75px; 
    max-width: 250px; 
    width: auto; 
    display: block; 
    transition: transform 0.3s ease; /* Smooth logo animation */
}

.site-logo:hover {
    transform: scale(1.05); /* Logo slightly grows on hover */
}

nav ul { 
    display: flex; 
    list-style: none; 
}

nav ul li { 
    margin-left: 20px; 
}

/* Dynamic Nav Links (Sliding Underline) */
nav ul li a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: bold; 
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease; /* The sliding effect */
}

nav ul li a:hover { 
    color: var(--primary); 
}

nav ul li a:hover::after { 
    width: 100%; /* The line expands to 100% on hover */
}

/* --- MAIN CONTENT & HERO --- */
main { 
    min-height: 80vh; 
    padding: 20px 0; 
}

.hero { 
    /* Changed 0.85 to 0.55 for a clearer background image */
    background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)), url('/venturis_website/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px; 
    text-align: center; 
    border-radius: 8px; 
    margin-bottom: 30px; 
    animation: fadeIn 1s ease-in-out; 
}

.hero h2 { 
    font-size: 2.5rem; 
    color: var(--primary); 
    margin-bottom: 10px; 
    /* Slide up animation */
    animation: slideUp 0.8s ease-out forwards;
}

.hero p {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0; /* Starts invisible until animation runs */
}

/* --- BUTTONS --- */
.btn { 
    display: inline-block; 
    padding: 12px 25px; 
    background: var(--primary); 
    color: #fff; 
    text-decoration: none; 
    border-radius: 5px; 
    margin-top: 15px; 
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,86,179,0.2);
}

.btn:hover { 
    background: var(--secondary); 
    transform: translateY(-3px); /* Button moves UP */
    box-shadow: 0 8px 15px rgba(40,167,69,0.3); /* Shadow gets bigger */
}

/* --- SERVICES GRID (THE DYNAMIC CARDS) --- */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    padding: 20px 0;
}

.card { 
    background: #fff; 
    border: 1px solid #eee; 
    padding: 30px 20px; 
    border-radius: 10px; 
    text-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth bouncy effect */
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* The Magic Hover Effect for Cards */
.card:hover { 
    transform: translateY(-15px); /* Card lifts up high */
    box-shadow: 0 20px 30px rgba(0,0,0,0.1); /* Deep shadow underneath */
    border-color: var(--primary); /* Border changes color */
}

.card i { 
    font-size: 50px; 
    color: var(--primary); 
    margin-bottom: 20px; 
    transition: transform 0.4s ease, color 0.4s ease; 
}

.card:hover i {
    transform: scale(1.2) rotate(5deg); /* Icon grows and tilts on hover */
    color: var(--secondary); 
}

.card h3 {
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: var(--primary);
}

/* --- FORMS --- */
form { 
    max-width: 600px; 
    margin: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

form input, form textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(0,86,179,0.2); /* Glow effect when typing */
}

form button { 
    padding: 12px; 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    cursor: pointer; 
    border-radius: 5px; 
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

form button:hover { 
    background: var(--secondary); 
}

/* --- FOOTER --- */
footer { 
    background: var(--dark); 
    color: #fff; 
    text-align: center; 
    padding: 20px 0; 
    margin-top: 40px; 
}

footer ul li a { 
    color: #ccc; 
    text-decoration: none; 
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* --- FLOATING WHATSAPP BUTTON --- */
.floating-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite; /* Starts the pulsing animation */
}

.floating-wa:hover {
    background-color: #128C7E;
    transform: scale(1.1) rotate(10deg); /* Grows and twists slightly */
    color: #FFF;
    animation: none; /* Stops pulsing when hovering */
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    nav ul li {
        margin-left: 0;
    }
    .hero h2 {
        font-size: 2rem;
    }
}
/* --- ABOUT US PAGE --- */
.about-section {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    padding: 40px 0;
}

.about-content {
    flex: 1;
    min-width: 300px;
    /* Add a slight slide-in animation */
    animation: slideUp 0.8s ease-out forwards;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-content .lead-text {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid var(--secondary);
    padding-left: 15px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* Highlight Cards */
.about-highlights {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.highlight-box {
    background: #fff;
    padding: 20px 15px;
    border-radius: 8px;
    flex: 1;
    min-width: 140px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.highlight-box:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 8px 20px rgba(40,167,69,0.15);
}

.highlight-box i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
}

.highlight-box h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.highlight-box p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #777;
    font-weight: bold;
}

/* About Image */
.about-image {
    flex: 1;
    min-width: 300px;
    animation: fadeIn 1.2s ease-in-out forwards;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}

.about-image img:hover {
    transform: scale(1.03) rotate(1deg); /* Fun little hover effect */
}