/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Define a modern color palette based on the logo */
:root {
    --primary-color: #29c5f6; /* Vibrant Blue from logo */
    --secondary-color: #cb5eee; /* Vibrant Purple from logo */
    --dark-bg: #1a1a1a;
    --gradient: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* Header */
header {
    background: url('../logo/header-background.png') no-repeat center center/cover;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--primary-color);
}

header a {
    color: #0056b3; /* Dark, strong blue */
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    /* A subtle glow for a "glossy" feel, plus a drop shadow for readability */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8), 0 0 8px rgba(0, 86, 179, 0.6);
}

header .container {
    display: flex;
    justify-content: space-between; /* Puts space between logo and nav */
    align-items: center;
}

header #branding img {
    height: 70px; /* Adjusted for better proportion */
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline;
    padding: 0 20px;
}

header nav a:hover {
    color: var(--primary-color);
    font-weight: bold;
}

/* Hero Section */
#hero {
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1559028006-44d5a2b7190d?q=80&w=1974&auto=format&fit=crop') no-repeat center center/cover;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

#hero h1 {
    font-size: 55px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px #000;
}

#hero p {
    font-size: 20px;
    text-shadow: 1px 1px 2px #000;
}

.button {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 18px;
    transition: filter 0.3s, transform 0.3s;
    border: none; /* Remove default border */
}

.button:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

/* Services */
#services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

#services .service-box {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* Initial state for animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s;
}

#services .service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* State when the element becomes visible on scroll */
#services .service-box.visible {
    opacity: 1;
    transform: translateY(0);
}

#services .service-box i {
    font-size: 48px;
    /* Apply the gradient to the icons */
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

/* Portfolio */
#portfolio {
    background: #fff;
}
#portfolio .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
#portfolio .portfolio-item img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
#portfolio .portfolio-item img:hover {
    transform: scale(1.05);
}

/* Contact */
#contact p {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background: #333;
    color: #fff;
}

/* --- Responsive Design --- */
@media(max-width: 768px) {
    /* --- Header --- */
    header .container {
        flex-direction: column; /* Stack logo and nav */
        gap: 15px; /* Space between logo and nav */
    }

    header nav ul li {
        padding: 0 10px; /* Reduce space between nav items */
    }

    /* --- Typography --- */
    #hero h1 {
        font-size: 40px;
    }

    .section-title {
        font-size: 32px;
    }

    /* --- Layout --- */
    .container {
        width: 90%; /* More screen real-estate on smaller devices */
    }

    section {
        padding: 40px 0; /* Reduce vertical space */
    }
}

@media(max-width: 480px) {
    /* On very small screens, stack the nav items */
    header nav ul li {
        display: block;
        padding: 5px 0;
        text-align: center;
    }
}