/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #020a17;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Hyperlink Styles */
a {
    color: #FFFFFF;
    text-decoration: none;
}

a:hover {
    color: #68a5c3;
    transition: color 0.3s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1600px;
    background: #020a17; /* Consider rgba(2, 10, 23, 0.8) for slight transparency */
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(104, 165, 195, 0.5);
    z-index: 1000;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a {
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a:hover,
.logo a:active {
    color: #FFFFFF;
}

.logo-icon {
    width: 40px;
    height: auto;
    vertical-align: middle;
    display: block;
    object-fit: contain;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background: #FFFFFF;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #68a5c3;
}

/* Inline Icon Styling for <h1> */
.inline-icon {
    height: 1em;
    width: auto;
    vertical-align: middle;
    margin-left: 0.2em;
}

/* Sections */
.section {
    padding: 120px 40px;
    text-align: center;
}

#home {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: #020a17;
}

.spline-frame {
    position: absolute;
    top: 30%; /* Adjust as needed based on navbar height */
    left: 30%;
    transform: translate(-10%, -10%);
    width: 90%;
    height: 100%;
    opacity: 0.9;
    z-index: 1; /* Below hero content */
}


.hero-content {
    position: relative; /* Changed from absolute */
    /* Removed top, left, transform: translateY(-50%) */
    z-index: 2; /* Above spline */
    text-align: left;
    padding: 20px;
    background: none;
    border-radius: 10px;
    max-width: 600px;
    margin: 15vh 0 0 50px; /* Adjust top margin (15vh) and left margin */
}


#home h1 {
    font-size: 72px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 0.5s forwards;
}

#home p {
    font-size: 27px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 1s forwards;
    color: #B0B0B0; /* Ensure paragraph text color is set */
    margin-bottom: 30px; /* Added margin below paragraph */
}

#home .cta {
    font-size: 24px;
    padding: 18px 36px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 1.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#examples { /* Changed from #services */
    background: radial-gradient(circle at 50% 10%, #3e7f9c, #132730);
}

#examples h2 { /* Changed from #services h2 */
    background: linear-gradient(to right, #FFFFFF, #D3D3D3, #b4c7cf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: scrollGradient 3s ease-in-out infinite alternate;
}

@keyframes scrollGradient {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

#about {
    background: linear-gradient(to right, #3e7f9c, #132730, #0e0b1d, #132730, #3e7f9c);
    background-size: 200% 100%;
    animation: shiftGradient 32s ease-in-out infinite;
}

#contact {
    background: linear-gradient(to right, #3e7f9c, #132730, #0e0b1d, #132730, #3e7f9c);
    background-size: 200% 100%;
    animation: shiftGradient 32s ease-in-out infinite;
    padding: 120px 40px;
}

@keyframes shiftGradient {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}

h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

p {
    color: #B0B0B0;
    font-size: 18px;
}

/* Removed .hero p rule as it's covered in #home p */

.cta {
    background: #68a5c3;
    color: #FFFFFF;
    border: none;
    padding: 18px 36px;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif; /* Ensure button font matches headings */
    font-weight: 700; /* Make button text bold */
    text-decoration: none; /* Ensure button text is not underlined if used as <a> */
    display: inline-block; /* Ensure padding works correctly */
}


.cta:hover {
    transform: scale(1.05);
    background: #54869f;
    color: #FFFFFF; /* Ensure text color stays white on hover */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #000000;
    padding: 20px; /* Increased padding */
    border-radius: 7px;
    box-shadow: 0 6px 25px rgba(104, 165, 195, 0.5);
    text-align: center; /* Center content */
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: flex-start; /* Align items to the top */
    min-height: 300px; /* Give cards a minimum height */
}

.service-card h3 {
    margin-top: 15px; /* Space above heading */
    margin-bottom: 10px; /* Space below heading */
    font-size: 22px; /* Slightly larger heading */
    color: #FFFFFF; /* Ensure heading is white */
}

.service-card p {
    font-size: 16px; /* Adjust paragraph font size */
    color: #B0B0B0; /* Ensure paragraph color */
}

.service-icon {
    height: 145px;
    width: auto;
    max-width: 100%; /* Ensure icon doesn't overflow */
    margin-top: 18px;
    margin-bottom: 18px;
    object-fit: contain; /* Ensure icon scales properly */
}

/* Example section styling (if needed, otherwise remove) */
/*
.example {
    background: #3A3A3A;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 8px;
}
*/

/* --- Contact Form Specific Styles --- */
#contact .contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e0e0e0;
    font-size: 16px;
    font-family: 'Poppins', sans-serif; /* Consistent font */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #0e0b1d;
    border: 1px solid #2a5c73;
    color: #FFFFFF;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group button.cta {
    margin-top: 15px;
    width: 100%; /* Make button full width */
}

/* Input/Textarea Focus styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #68a5c3;
    box-shadow: 0 0 5px rgba(104, 165, 195, 0.5);
}
/* --- End Contact Form Styles --- */


/* Example Image */
.example-image {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}


/* Responsive */
@media (max-width: 768px) {
    .navbar {
        width: 95%; /* Slightly less wide */
        top: 10px;
        padding: 8px 15px; /* Adjust padding */
        border-radius: 25px; /* Match button */
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: space-between; /* Keep logo and hamburger apart */
    }

    .logo {
        order: 1; /* Ensure logo comes first */
        /* font-size adjusted below */
        flex-grow: 1; /* Allow logo to take space */
        justify-content: flex-start; /* Align logo left */
    }

    .hamburger {
        display: block;
        order: 2; /* Hamburger comes after logo */
    }

    .nav-menu {
        display: none;
        width: 100%;
        background: rgba(11, 8, 13, 0.95); /* Slightly more opaque */
        border-radius: 0 0 20px 20px;
        padding: 10px 0;
        order: 3; /* Nav menu appears below logo/hamburger */
        flex-basis: 100%; /* Take full width */
        margin-top: 10px; /* Add space below logo/hamburger */
    }

    .nav-menu.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px; /* Slightly less gap */
        padding: 15px 0;
        text-align: center;
    }

    .nav-links a {
        font-size: 18px;
    }

    /* Adjust logo size on mobile */
    .logo {
       font-size: 18px;
    }

    .logo-icon {
        width: 30px;
    }

    .cta {
        border-radius: 25px;
        padding: 15px 30px; /* Slightly smaller padding */
        font-size: 20px; /* Adjust font size */
    }

    #home {
        min-height: 90vh; /* Adjust height slightly if needed */
    }

    .spline-frame {
        width: 150%; /* Adjust size */
        height: 120%; /* Adjust size */
        top: 10%; /* Adjust position */
        left: -25%; /* Adjust position */
        transform: none; /* Remove transform */
        opacity: 0.7; /* Reduce opacity slightly */
    }

    .hero-content {
        margin: 25vh 0 0 20px; /* Adjust top margin for mobile */
        padding: 15px;
        max-width: 90%;
        left: auto; /* Override desktop positioning */
        transform: none; /* Override desktop positioning */
        position: relative; /* Ensure it stacks correctly */
        z-index: 2;
    }

    #home h1 {
        font-size: 48px; /* Adjusted font size */
    }

    #home p {
        font-size: 22px; /* Adjusted font size */
    }

    #home .cta {
        font-size: 20px; /* Match global CTA size */
        padding: 15px 30px; /* Match global CTA padding */
    }

    #examples { /* Changed from #services */
        background: #2a5c73; /* Simpler background for mobile maybe */
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 32px; /* Slightly smaller H2 */
    }

    .services-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 30px; /* Adjust gap */
    }

    .service-card {
        min-height: auto; /* Remove min-height on mobile */
        padding: 15px;
    }

    .section {
        padding: 80px 20px; /* Reduce section padding */
    }

     #contact .contact-form {
        max-width: 95%; /* Allow form to be wider */
        margin-top: 30px; /* Adjust top margin */
        gap: 12px; /* Adjust gap */
    }

    .form-group label {
        font-size: 15px; /* Slightly smaller labels */
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        padding: 10px; /* Adjust padding */
        font-size: 15px; /* Adjust font size */
    }

     .form-group button.cta {
         margin-top: 10px;
     }
}


/* Larger screen adjustments */
@media (min-width: 1200px) {
    .navbar {
        width: 85%;
        max-width: 1600px;
    }

    .hero-content {
         margin-left: 100px; /* More left margin on large screens */
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr); /* Ensure 3 columns on large screens */
    }
}