:root {
    --primary-color: #ff0055;
    --secondary-color: #00ff88;
    --background-color: #121212;
    --text-color: #ffffff;
    --card-color: #1e1e1e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

header {
    height: 100vh;
    position: relative;
    overflow: hidden;
}



#header-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    transition: 1s opacity;
    clip-path: inset(135px 0 135px 0);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease;
}

nav.scrolled {
    background: rgba(18, 18, 18, 0.9);
}

.logo {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: normal;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.content-section {
    padding: 6rem 4rem;
    text-align: center;
}

.content-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-color);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
}

#tools .service-card:hover, #learn .service-card:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

#tools .service-card h3, #learn .service-card h3 {
    color: var(--secondary-color);
}

.service-card h3, .service-card p {
    text-decoration: none;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    margin-top: 3rem;
}

.client-logos img {
    height: 60px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logos img:hover {
    filter: grayscale(0%);
    scale: 1.1;
}

#contact {
    background: var(--primary-color);
}

#contact p {
    margin-bottom: 2rem;
}

#contact .cta-button {
    background: var(--text-color);
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 2rem;
    background: #000;
}

/* Micro-animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    nav {
        justify-content: space-between;
        padding: 1rem 2rem;
    }

    .nav-links {
        position: absolute;
        left: 0;
        top: 8vh;
        background-color: var(--background-color);
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .content-section {
        padding: 4rem 2rem;
    }

    header {
        height: 60vh;
    }

}

/* Specific grid adjustments for #learn section */
#learn .services-grid {
    grid-template-columns: repeat(1, 1fr); /* Default for small screens */
}

@media (min-width: 769px) { /* For screens larger than 768px */
    #learn .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) { /* For screens larger than 1024px */
    #learn .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

#cube-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
}

#modal-cube-container {
    width: 90%;
    height: 90%;
}

#close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    font-family: sans-serif;
}

body.modal-open {
    overflow: hidden;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: -10vh auto 2rem;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide video {
    width: 100%;
    display: block;
}

.carousel-prev,
.carousel-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
}

.carousel-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-dots {
    text-align: center;
    padding: 1rem;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.carousel-dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
}


