:root {
    --color-primary: #1B1E31;
    --color-secondary: #FCCD03;
    --color-accent: #FE6B26;
    --color-highlight: #30D2BD;
    --color-text: #E6F1FF;
    --font-size-base: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--color-primary);
    color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
p { font-size: 1rem; }

.small-text { font-size: 0.9rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
}

header {
    background-color: rgba(27, 30, 49, 0.9); /* Slightly transparent primary */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 60px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.small-logo {
    height: 30px; /* Adjust this value as needed */
    width: auto;
    margin-right: 10px; /* Space between logo and text */
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--color-text);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-highlight);
}

#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

#hero p {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem; /* Increased margin for better separation */
    color: var(--color-text);
    font-weight: 600; /* Make it semi-bold */
}

.hero-image {
    width: 100%;
    max-width: 800px;
    margin-bottom: 2rem; /* Add space between image and tagline */
    animation: fadeInUp 1s ease-out;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.tagline {
    font-size: 1.5rem;
    color: var(--color-text);
    text-align: center;
    margin-top: 1rem; /* Add some space above the tagline */
}

@media (max-width: 768px) {
    .tagline {
        font-size: 1.2rem; /* Slightly smaller on mobile devices */
    }
}

#about {
    padding: 4rem 2rem;
    background-color: rgba(27, 30, 49, 0.8);
}

#about .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

#about h2 {
    color: var(--color-secondary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

#about p {
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
}

#about ul {
    list-style-type: none;
    padding-left: 1rem;
}

#about li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#about li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-highlight);
}

#about li.visible {
    opacity: 1;
    transform: translateX(0);
}

#services {
    padding: 4rem 2rem;
}

#services h2 {
    color: var(--color-secondary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: rgba(48, 210, 189, 0.1); /* Slight highlight color background */
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.2);
}

.service-item h3 {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-item p {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        padding: 1.2rem;
    }

    .service-item h3 {
        font-size: 1.1rem;
    }

    .service-item p {
        font-size: 0.85rem;
    }
}

#project-teaser {
    padding: 4rem 2rem;
    background-color: rgba(10, 25, 47, 0.8);
    text-align: center;
}

#project-teaser .container {
    max-width: 800px;
    margin: 0 auto;
}

#project-teaser h2 {
    color: var(--color-secondary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.teaser-content {
    background-color: rgba(48, 210, 189, 0.05);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.teaser-content h3 {
    color: var(--color-accent);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.teaser-content p {
    margin-bottom: 1.5rem;
}

.teaser-content ul {
    list-style-type: none;
    padding-left: 1rem;
}

.teaser-content li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.teaser-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-highlight);
}

.coming-soon {
    font-weight: bold;
    color: var(--color-secondary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#contact {
    padding: 4rem 2rem;
    text-align: center;
    background-color: rgba(27, 30, 49, 0.9);
}

#contact .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

#contact h2 {
    color: var(--color-secondary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

#contact p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: calc(0.6rem + 1vw); /* Adjusted for smaller screens */
    white-space: nowrap; /* Prevents text wrapping */
    overflow: hidden; /* Hides overflow text */
    text-overflow: ellipsis; /* Adds ellipsis for overflow text */
}

.contact-button:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

footer {
    background-color: rgba(27, 30, 49, 0.9);
    color: var(--color-text);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* Add to existing CSS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #hero p {
        font-size: 1.5rem;
    }

    .hero-image {
        max-width: 90%;
    }

    .tagline {
        font-size: 1.2rem;
    }
}

#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(100px);
}

#scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(27, 30, 49, 0.85); /* Semi-transparent dark background */
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 25px 0;
    }

    .nav-menu li a {
        color: white;
    }
}

/* Small devices (phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    #hero p {
        font-size: 1.8rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    #hero p {
        font-size: 2rem;
    }

    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 768px) {
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    nav ul li a {
        padding: 10px;
    }

    .contact-button {
        padding: 12px 24px;
        font-size: 1.1rem;
    }

    #scroll-to-top {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* Ensure minimum touch target size */
.service-item, 
.contact-button, 
nav ul li a,
#scroll-to-top {
    min-height: 44px;
    min-width: 44px;
}
