/* --- Base Styles & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #e0e0e0; /* Light text for contrast */
    background-color: #050818; /* Dark blue/black base */
    overflow-x: hidden; /* Prevent horizontal scroll */
    /* --- Custom Cursor --- */
    /* *** UPDATE PATHS to your cursor image files *** */
    cursor: url('assets/cursor.png') 8 8, auto; /* Adjust hotspot (8 8) as needed */
}

/* --- Custom Cursor for Links/Buttons --- */
a, button, .cta-button, select, input[type="submit"], input[type="button"] {
     /* *** UPDATE PATHS to your pointer image file *** */
    cursor: url('assets/pointer-cursor.png') 8 8, pointer; /* Adjust hotspot (8 8) */
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative; /* For potential underlines/effects */
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
    color: #bdbdbd; /* Slightly less bright than headings */
}

a {
    color: #4db8ff; /* A bright, techy blue */
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Added text-shadow transition */
}

a:hover {
    color: #ffffff; /* Brighten link text on hover */
     text-shadow: 0 0 8px rgba(77, 184, 255, 0.7); /* Text glow */
}


ul {
    list-style: none;
}

section {
    padding: 80px 0; /* Increased padding slightly */
}

/* --- Particle Canvas Background --- */
#particle-canvas {
    position: fixed; /* Fixed position stays in place during scroll */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Place it behind all other content */
    background-color: #050818; /* Match body background */
}

/* --- Content Wrapper --- */
.content-wrapper {
    position: relative; /* Needed to ensure content stays above the fixed canvas */
    z-index: 1;
    background-color: rgba(5, 8, 24, 0.6); /* Semi-transparent overlay for readability */
    /* Add backdrop-filter for a frosted glass effect (optional, check browser support) */
    /* backdrop-filter: blur(3px); */
}


/* --- Header --- */
header {
    background: rgba(10, 13, 30, 0.8); /* Slightly different dark shade, semi-transparent */
    padding: 1rem 0;
    position: sticky; /* Make header stick to top */
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: #ffffff;
    white-space: nowrap; /* Prevent name wrapping */
}

header nav ul {
    display: flex;
    flex-wrap: wrap; /* Allow nav items to wrap */
    justify-content: center; /* Center nav items when wrapped */
}

header nav ul li {
    margin: 5px 12px; /* Adjusted margin for wrapping */
}

header nav ul li a {
    color: #e0e0e0;
    font-weight: 400;
    padding-bottom: 5px;
    position: relative; /* For hover effect */
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Added text-shadow */
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4db8ff;
    transition: width 0.3s ease;
}

/* Keep underline effect + apply glow from general 'a:hover' */
header nav ul li a:hover::after {
    width: 100%;
}


/* --- Hero Section --- */
.hero-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(5, 8, 24, 0.1), rgba(5, 8, 24, 0.5)); /* Subtle gradient */
    padding-top: 120px; /* Adjust based on header height */
    padding-bottom: 60px;
}

.hero-section h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.cta-button {
    display: inline-block;
    background: #4db8ff;
    color: #050818; /* Dark text on light button */
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-shadow: none; /* Override general link glow if needed */
}

.cta-button:hover {
    background-color: #81d4fa;
    color: #050818;
    transform: translateY(-3px);
     /* Added hover glow */
    box-shadow: 0 0 15px 5px rgba(77, 184, 255, 0.4);
    text-shadow: none; /* Ensure no text glow on button hover */
}

/* --- Services Section --- */
.services-section {
     background-color: rgba(15, 23, 42, 0.5); /* Slightly different shade for sectioning */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 30px;
}

.service-item {
    background: rgba(30, 41, 59, 0.7); /* Card background */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(77, 184, 255, 0.2); /* Subtle border */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
     /* Enhanced hover glow/shadow */
    box-shadow: 0 5px 15px rgba(77, 184, 255, 0.1),
                0 0 20px rgba(77, 184, 255, 0.3);
    border-color: rgba(77, 184, 255, 0.5); /* Make border brighter */
}

.service-item h3 {
    color: #81d4fa; /* Accent color for service titles */
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

/* --- Portfolio Section --- */
.portfolio-section {
    /* Similar background as services or slightly different */
     background-color: rgba(10, 13, 30, 0.6);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    overflow: hidden; /* Keep image corners rounded */
    border: 1px solid rgba(77, 184, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
     transform: translateY(-5px);
     box-shadow: 0 5px 20px rgba(77, 184, 255, 0.15);
}

.portfolio-item img {
    display: block;
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Cover area without distortion */
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    color: #81d4fa;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* --- Estimator Section --- */
.estimator-section {
     background-color: rgba(15, 23, 42, 0.5);
}

#estimator-form {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    background: rgba(30, 41, 59, 0.7);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(77, 184, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 400;
}

.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px 15px;
    background-color: rgba(5, 8, 24, 0.8);
    border: 1px solid rgba(77, 184, 255, 0.3);
    border-radius: 4px;
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #4db8ff;
    box-shadow: 0 0 5px rgba(77, 184, 255, 0.3);
}

.estimator-button {
    display: block; /* Make button full width */
    width: 100%;
    margin-top: 1rem;
}

.estimate-result {
    margin-top: 2rem;
    padding: 20px;
    background: rgba(10, 13, 30, 0.8);
    border-radius: 5px;
    border: 1px solid rgba(77, 184, 255, 0.2);
    min-height: 50px; /* Placeholder height */
    text-align: center;
    color: #ffffff;
    font-size: 1.1rem;
    /* Style changes based on result content via JS */
}

/* --- About Section --- */
.about-section {
    /* Optional: Add a subtle background pattern or keep it simple */
}

.about-section .container {
    max-width: 800px; /* Narrower text column for readability */
    text-align: center;
}

/* --- Testimonials Section --- */
.testimonials-section {
     background-color: rgba(10, 13, 30, 0.6);
}

.testimonial-carousel {
    /* Basic styling - Carousel library will add more */
    max-width: 700px;
    margin: 0 auto;
    position: relative; /* Needed for potential absolute positioned controls */
}

.testimonial-item {
    /* Style for individual items - may be overridden by carousel */
    background: rgba(30, 41, 59, 0.7);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(77, 184, 255, 0.1);
    margin-bottom: 1rem; /* Simple stacking if no carousel */
    text-align: center;
}
/* Hide all but first item if NOT using a JS carousel yet */
/* .testimonial-item:not(:first-child) {
    display: none;
} */

.testimonial-item blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.testimonial-item blockquote cite {
    font-style: normal;
    font-weight: 600;
    color: #81d4fa;
}

/* --- Contact Section --- */
.contact-section {
    background-color: rgba(15, 23, 42, 0.5);
    text-align: center;
}

.contact-details p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.contact-details a {
    font-weight: 600;
}


/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(77, 184, 255, 0.2);
    font-size: 0.9rem;
    color: #9e9e9e;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
     header .container {
        justify-content: center; /* Center items when wrapping starts */
    }
     header h1 {
         width: 100%; /* Allow h1 to take full width */
         text-align: center;
         margin-bottom: 1rem;
     }
}


@media (max-width: 768px) {
    header nav ul li {
        margin: 5px 8px; /* Smaller margin for nav items */
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section h2 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Stack items on smaller screens */
    }

    .portfolio-grid {
         grid-template-columns: 1fr;
    }

    #estimator-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section h2 {
        font-size: 2rem;
    }
     header h1 {
         font-size: 1.5rem;
     }
     header nav ul li a {
         font-size: 0.9rem;
     }
     .container {
         padding: 0 15px;
     }
}