/* General Styles */
body, h1, h2, p {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #ffffff;
}

body {
    background-color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

/* Hero Section with 3D Grid */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
}

.grid-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Text content in Hero */
.text-content {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.text-content h1 {
    font-size: 3rem;
    color: white;
}

.text-content p {
    font-size: 1.5rem;
    color: white;
}

/* Call to Action Section (Menu) */
.cta-section {
    padding: 40px;
    text-align: center;
    background-color: white;
    color: black;
    width: 100%;
    position: fixed;
    bottom: -100%;  /* Меню начинается с низу за пределами экрана */
    left: 0;
    right: 0;
    z-index: 10; /* Чтобы меню не скрывалось за другими элементами */
    transition: bottom 0.5s ease-in-out; /* Плавная анимация для перемещения снизу */
}

.cta-section.open {
    bottom: 0; /* Меню выезжает снизу */
}

/* Call to Action Buttons */
.cta-btn {
    display: inline-block;
    background-color: black;
    color: white;
    padding: 15px 40px;
    border: 2px solid black;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease-in-out;
    margin: 10px;
}

.cta-btn:hover {
    background-color: white;
    color: black;
    transform: scale(1.05);
}

/* Hamburger Menu Icon */
.menu-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.menu-icon span {
    width: 100%;
    height: 5px;
    background-color: white; /* White lines */
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Animation for transforming the menu into a cross */
.menu-icon.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 7px;
}

.menu-icon.open span:nth-child(2) {
    opacity: 0;
}

.menu-icon.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: -7px;
}

/* Got An Idea Section (on retro grid) */
.got-an-idea {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 40px 0;
    z-index: 10;
    background-color: transparent; /* Фон прозрачный, чтобы был виден ретро-грид */
}

.got-an-idea h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.got-an-idea .cta-btn {
    display: inline-block;
    background-color: black;
    color: white;
    padding: 15px 40px;
    border: 2px solid black;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease-in-out;
}

.got-an-idea .cta-btn:hover {
    background-color: white;
    color: black;
    transform: scale(1.05);
}

/* Footer Section */
footer {
    padding: 20px;
    text-align: center;
    background-color: #000000; /* Черный цвет фона футера */
    color: #ffffff;
    position: relative;
    width: 100%;
    z-index: 5; /* Убедитесь, что футер не перекрывает блок "Got An Idea?" */
}
/* Reset margin and padding for elements */
body, h1, h2, p, .container, .service-container {
    margin: 0;
    padding: 0;
}

/* Media Query for screens 768px wide or smaller (tablets, phones) */
@media screen and (max-width: 768px) {
    /* Hero Section */
    body {
        overflow-x: hidden;
    }
    
    .text-content {
        width: 90%;
        top: 25%;
    }
    
    .text-content h1 {
        font-size: 2rem;
    }
    
    .text-content p {
        font-size: 1rem;
    }
    
    .hero {
        height: 100vh;
        padding: 0 10px;
    }
    
    /* Menu Icon */
    .menu-icon {
        top: 15px;
        left: 15px;
        z-index: 20;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 25px;
    }
    
    .cta-btn {
        padding: 12px 30px;
        font-size: 1rem;
        margin: 8px;
    }
    
    /* Got An Idea Section */
    .got-an-idea h2 {
        font-size: 1.8rem;
    }
    
    .got-an-idea .cta-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Footer */
    footer {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    /* Services Section */
    .services-title {
        font-size: 2rem; /* Smaller font size */
    }

    .service-container {
        padding: 20px; /* Reduce padding for mobile */
        margin-left: 5%;
        margin-right: 5%;
    }

    /* Service Card */
    .service-card {
        width: 100%; /* Make cards full width on mobile */
        margin-left: 0;
        margin-right: 0;
    }

    .service-card h3 {
        font-size: 1.5rem; /* Adjust heading size */
    }

    .service-card p {
        font-size: 1rem; /* Adjust paragraph size */
    }

    /* Container with three boxes */
    .container {
        flex-direction: column; /* Stack containers vertically on mobile */
        gap: 15px; /* Reduced gap between cards */
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    .text-content h1 {
        font-size: 1.8rem;
    }
    
    .text-content p {
        font-size: 0.9rem;
    }
    
    .menu-icon {
        width: 25px;
        height: 20px;
    }
    
    .menu-icon span {
        height: 4px;
    }
    
    .got-an-idea h2 {
        font-size: 1.5rem;
    }
    
    .cta-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Media Query for devices between 500px and 1024px in landscape */
@media screen and (min-width: 500px) and (max-width: 1024px) and (orientation: landscape) {
    /* Hero Section */
    .text-content h1 {
        font-size: 2.5rem; /* Adjust font size for landscape mode */
        color: white;
    }
    .hero p {
        font-size: 1.1rem; /* Adjust text size */
    }

    /* Services Section */
    .services-title {
        font-size: 1.8rem; /* Smaller font size */
    }

    .service-container {
        padding: 12px;
        margin-left: 3%;
        margin-right: 3%;
    }

    /* Service Card */
    .service-card {
        width: 48%; /* Make the cards take up half the width on smaller landscape screens */
        margin-left: 1%;
        margin-right: 1%;
    }

    .service-card h3 {
        font-size: 1.4rem; /* Adjust heading size */
    }

    .service-card p {
        font-size: 1rem; /* Adjust paragraph size */
    }

    /* Footer */
    footer {
        padding: 8px; /* Adjust padding for footer */
    }
}
