/* Base Styles */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #0D0D0D;
    color: #FFFFFF;
}

/* Header Styles */

header {
    background-color: #1A1A1A;
    padding: 10px 20px;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

/* Headings */

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
}

/* Logo */

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    width: 35px;
    height: auto;
    margin-right: 10px;
}

.logo-text {
    color: #00FFFF;
    font-size: 22px;
    text-decoration: none;
    font-weight: bold;
}

/* Navigation Menu */

nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    transform: scale(1); /* Default size */
    transition: transform 0.5s ease-out; /* Smooth zoom animation */
}

nav ul.open {
    transform: scale(1); /* Return to normal scale */
}

nav ul.animate {
    transform: scale(0.8); /* Slight zoom-out effect */
    box-shadow: 0 0 15px 5px rgba(0, 255, 255, 0.7), 0 0 30px rgba(0, 255, 255, 0.5);
    border-radius: 10px; /* Rounded corners for dynamic effect */
}

nav li {
    margin-left: 15px;
}

/* Navigation Menu Links */

nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: normal;
    font-size: 16px;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out; /* Smooth text color transition */
}

nav a:hover {
    color: #00FFFF; /* Change text color to neon cyan */
    border: none; /* Ensure no border appears */
    box-shadow: none; /* Remove any shadow effect */
}

/* Burger Menu Styles */

.burger {
    display: block; /* Ensure it is visible on mobile */
    cursor: pointer;
    position: relative;
    z-index: 10; /* Ensure it's above other elements */
    width: 30px; /* Adjust size */
    height: 30px; /* Adjust size */
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.burger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active div:nth-child(2) {
    opacity: 0; /* Hide middle bar */
}

.burger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: #00FFFF; /* Neon cyan for the active state */
}

/* Hero Section */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    color: #00FFFF;
    z-index: 1;
}

.hero p {
    font-size: 24px;
    max-width: 600px;
    margin: auto;
    margin-top: -10px;
    z-index: 1;
}

/* Sketch Container */

#sketch-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* What We Do Section */
#what-we-do {
    padding: 60px 20px;
    background-color: #1A1A1A;
    text-align: center;
}

#what-we-do h2 {
    color: #00FFFF;
    margin-bottom: 50px;
}

.service-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-item {
    text-align: center;
    width: 30%;
    min-width: 250px;
}

.service-item img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.service-item h3 {
    color: #00FFFF;
    margin-bottom: 10px;
}

/* How Can I Help You Section */
#how-i-help {
    padding: 60px 20px;
    background-color: #0D0D0D;
    text-align: center;
}

#how-i-help h2 {
    color: #00FFFF;
    margin-bottom: 20px;
}

#how-i-help ul {
    list-style: none;
    padding: 0;
    font-size: 1rem;
    max-width: 600px;
    margin: auto;
    color: #FFFFFF;
    margin-bottom: 35px;
}

#how-i-help ul li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* About Projects Section */
#about-projects {
    padding: 60px 20px;
    background-color: #1A1A1A;
}

.about-projects-container {
    display: flex;
    justify-content: space-between; /* Change from space-around to space-between */
    flex-wrap: wrap;
    align-items: flex-start;
    margin: auto;
    gap: 2rem;
}

.about-section, .projects-section, .visualization-section {
    flex: 1; /* Change flex property to equally distribute space */
    text-align: center;
    color: #FFFFFF;
    min-width: 250px;
    padding: 20px;
}

.projects-icon {
    width: 100px; /* Adjust the size */
    height: auto;
    margin-bottom: 10px; /* Add space between the icon and the heading */
}

.about-section h2, .projects-section h2, .visualization-section h2 {
    color: #00FFFF;
    margin-bottom: 15px;
    font-size: 24px;
}

.about-section p, .projects-section p, .visualization-section p {
    max-width: 500px; /* Reduce this value to make the text narrower */
    margin: auto; /* Center the text */
    font-size: 1rem; /* Keep the font size as desired */
    line-height: 1.6;
    margin-bottom: 35px;
}

.about-logo {
    width: 100px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 10px; /* Add spacing below the logo */
}

.icon-container {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
}

.icon-container canvas {
    background-color: transparent;
    width: 100%;
    height: auto;
}

.services-link {
    color: #00FFFF;
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #00FFFF;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
}

.services-link:hover {
    background-color: #00FFFF;
    color: #0D0D0D;
    box-shadow: 0 0 10px #00FFFF;
}

/* Footer Styles */
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    padding: 20px; /* Keep the padding */
}

footer p {
    margin: 0;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    /* Dark overlay for mobile */
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
        z-index: 1; /* Ensure it appears above particles but below text */
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center text horizontally */
        justify-content: center; /* Center text vertically */
        background-color: #1A1A1A;
        position: absolute;
        top: 60px;
        right: 10px; /* Adjust spacing from the right */
        width: 140px; /* Adjust menu width */
        padding: 15px; /* Add padding around the menu */
        border-radius: 10px; /* Rounded corners for a clean look */
        transform: scale(0); /* Hidden by default */
        transform-origin: top right; /* Animate from top-right corner */
        transition: transform 0.3s ease-in-out; /* Smooth transition */
    }
    
    nav ul.open {
        transform: scale(0.8); /* Zoom-out effect */
    }
    
    nav ul li {
        margin: 10px 0; /* Add vertical spacing between menu items */
        text-align: center; /* Center text horizontally */
        padding: 10px; /* Add padding for better tap targets */
        width: 100%; /* Ensure full-width alignment */
    }    

    nav ul li a {
        color: #FFFFFF; /* Keep text white */
        font-size: 18px; /* Slightly larger font for readability */
        text-decoration: none; /* Remove underline */
        display: block; /* Ensure full clickable area */
    }

    .burger {
        display: block; /* Ensure burger menu is visible on mobile */
    }

    /* Adjustments for Mobile Layout */
    .service-container {
        flex-direction: column;
    }

    .service-item {
        width: 100%;
    }

    /* Stack sections vertically on mobile */
    .about-projects-container {
        flex-direction: column;
        align-items: center;
    }

    .about-section,
    .projects-section,
    .visualization-section {
        width: 100%;
        max-width: 600px;
        margin-bottom: 40px;
    }
}

/* Hide Burger Menu on Large Screens */
@media screen and (min-width: 769px) {
    .burger {
        display: none; /* Hide burger menu on large screens */
    }

    /* Ensure Navigation Menu Displays Horizontally */
    nav ul {
        flex-direction: row;
        position: static;
        width: auto;
        transform: scale(1); /* Reset any transforms */
    }

    nav ul li {
        margin: 0 15px;
        text-align: left;
    }
}

.more-services {
    text-align: center;
    margin-top: 20px;
}

.services-link {
    color: #00FFFF;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #00FFFF;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
}

.services-link:hover {
    background-color: #00FFFF;
    color: #0D0D0D;
    box-shadow: 0 0 10px #00FFFF;
}

.youtube-icon {
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: none !important; /* Remove any parent background */
    border: none !important; /* Remove any border */
    outline: none !important; /* Remove outline */
    box-shadow: none !important; /* Remove box shadow */
}

.youtube-icon img {
    width: 30px; /* Adjust size as needed */
    height: auto;
    vertical-align: middle;
    background: none !important; /* Remove background on the image */
    border: none !important; /* Remove border on the image */
    outline: none !important; /* Remove outline */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.youtube-icon:hover img {
    transform: scale(1.2);
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(180deg); /* Cyan color */
}

.youtube-icon:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7); /* Cyan glow */
    background: none; /* Ensure no background on hover */
}