/* CSS Variables for color scheme */
:root {
    --black: #000000;
    --white: #ffffff;
    --teal: #33fffc;
}

/* Global Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Loader */
.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }

/* Loader Animation (from Uiverse) */
.jimu-primary-loading:before,
.jimu-primary-loading:after {
  position: absolute;
  top: 0;
  content: '';
}
.jimu-primary-loading:before { left: -19.992px; }
.jimu-primary-loading:after {
  left: 19.992px;
  animation-delay: 0.32s !important;
}
.jimu-primary-loading:before,
.jimu-primary-loading:after,
.jimu-primary-loading {
  background: #076fe5;
  animation: loading-keys 0.8s infinite ease-in-out;
  width: 13.6px; height: 32px;
}
.jimu-primary-loading {
  margin: auto;
  position: absolute;
  right: calc(50% - 6.8px);
  top: calc(50% - 16px);
  animation-delay: 0.16s !important;
}
@keyframes loading-keys {
  0%, 80%, 100% {
    opacity: .75;
    box-shadow: 0 0 #076fe5;
    height: 32px;
  }
  40% {
    opacity: 1;
    box-shadow: 0 -8px #076fe5;
    height: 40px;
  }
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    background-color: #1A1A1A;
    color: #FFFFFF;
}

nav.glow {
    box-shadow: 0 0 10px var(--teal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    height: 50px;
    width: auto;
}

/* Nav links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

/* Sliding gradient underline effect */
.nav-links li::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--teal), transparent);
    transition: width 0.3s ease;
}

.nav-links li:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--teal);
}

/* Hero Section */
#hero {
    height: 100vh;
    background-size: cover;       /* make image fill */
    background-position: center;  /* keep it centered */
    background-repeat: no-repeat; /* stop repeating */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    /*background: url('hero\ 2.jpg') no-repeat center/cover; check js file */
}

#hero {
    transition: background-image 0.8s ease-in-out;
}


#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

#hero h1 {
    font-size: 3rem;
    z-index: 1;
}

#hero .cta {
    z-index: 1;
    background-color: var(--teal);
    color: var(--black);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    animation: pulse 2s infinite;
    transition: transform 0.3s;
}

#hero .cta:hover {
    transform: scale(1.05);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(51, 255, 252, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(51, 255, 252, 0); }
    100% { box-shadow: 0 0 0 0 rgba(51, 255, 252, 0); }
}

/* Fade-in on scroll */
.section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    padding: 4rem 2rem;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Us */
#about {
    background-color: var(--white);
    text-align: center;
}

/* Products/Applications */
#products {
    background-color: #f8f8f8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 1rem;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px var(--teal);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Projects Gallery */
#gallery {
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Features */
#features {
    background-color: #f8f8f8;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature i {
    font-size: 3rem;
    color: var(--teal);
    margin-bottom: 1rem;
}

/* Contact */
#contact {
    background-color: var(--white);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    padding-left: 10px;
    padding-right: 10px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    background-color: var(--teal);
    color: var(--black);
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background-color: #00e6e3;
}

.map {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
}

.hotline {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.2rem;
}

.add {
    text-align: center;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.social-icons a {
    color: var(--white);
    margin: 0 1rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--teal);
}

/* Responsive Design */

/* Hide hamburger by default (PC) */
.menu-toggle {
    display: none;
}

/* Mobile view */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2rem;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Show hamburger only on mobile */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.8rem;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1A1A1A;
        margin-top: 1rem;
        padding: 1rem 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }
}
