html, body
{
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #fff;
    font-family: sans-serif;
}

* {
    box-sizing: border-box;
}

.slideshow-container
{
    overflow-y: scroll;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    height: 100vh;
}

.slideshow-container::-webkit-scrollbar {
    display: none;
}

section
{
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5em;
    color: white;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#home {
    background-color: #2c3e50;
    animation-delay: 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.hero-text {
    text-align: center;
}

.hero-text h1 {
    font-size: 3em;
    margin: 0;
}

.hero-text p {
    font-size: 1.2em;
}

.hero-image-container {
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border-radius: 15px;
    overflow: hidden;
}

.hero-image {
    width: 500px;
    height: auto;
    border-radius: 15px;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    opacity: 0.6;
}



@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(-45deg);
    }
    40% {
        transform: translateY(-10px) rotate(-45deg);
    }
    60% {
        transform: translateY(-5px) rotate(-45deg);
    }
}

.next-section-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
    cursor: pointer;
}

#about {
    background-color: #34495e;
    position: relative;
}
#services { background-color: #2c3e50; }

header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #1f1f1f; /* Making header transparent */
    position: fixed; /* Changed to fixed */
    width: 100%;
    top: 0;
    z-index: 101; /* Increased z-index */
    transition: background-color 0.3s;
}

.logo
{
    font-size: 24px;
    font-weight: bold;
}

.menu-toggle
{
    cursor: pointer;
    z-index: 102; /* Increased z-index */
}

.bar
{
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.4s;
}

.menu-toggle.active .bar:nth-child(1)
{
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2)
{
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3)
{
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu
{
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 100; /* Increased z-index */
    transition: right 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu.active
{
    right: 0;
}

.mobile-menu ul
{
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu li
{
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mobile-menu.active li
{
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active li:nth-child(1) { transition-delay: 0.2s; }
.mobile-menu.active li:nth-child(2) { transition-delay: 0.3s; }
.mobile-menu.active li:nth-child(3) { transition-delay: 0.4s; }
.mobile-menu.active li:nth-child(4) { transition-delay: 0.5s; }


.mobile-menu a
{
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    padding: 10px 20px;
    position: relative;
    transition: color 0.3s;
    cursor: pointer;
}

.mobile-menu a:hover
{
    color: #aaa;
}

.mobile-menu a::before
{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu a:hover::before
{
    transform: scaleX(1);
}

.hero {
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    z-index: -1;
    filter: blur(10px);
}

.hero h1 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 0.5em;
    max-width: 800px;
    margin: 0 auto;
}

.about-container {
    width: 80%;
    max-width: 1200px;
    text-align: center;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.wave-title {
    font-size: 2em;
    margin-bottom: 40px;
    display: inline-block;
}

.wave-title span {
    display: inline-block;
}

.wave-bounce span {
    animation: wave-bounce 1.5s infinite;
    animation-delay: calc(0.1s * var(--i));
}

.wave-color span {
    animation: wave-color 1.5s infinite;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes wave-bounce {
    0%, 100% {
        transform: translateY(0);
        color: #fff;
    }
    50% {
        transform: translateY(-20px);
        color: #0F0;
    }
}

@keyframes wave-color {
    0%, 40%, 100% {
        color: #fff;
    }
    20% {
        color: #61dafb;
    }
}

.flip-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.flip-card {
    background-color: transparent;
    width: 300px;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.flip-card-front {
    background-color: #444;
}

.flip-card-back {
    background-color: #555;
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.flip-card h3 {
    font-size: 1.2em;
    margin: 0;
}

.flip-card p {
    font-size: 0.9em;
    margin: 0;
}

.read-more-animated-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #61dafb;
    color: #121212;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
}

.read-more-animated-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.read-more-animated-btn:hover::before {
    left: 100%;
}

.read-more-animated-btn:hover {
    color: #fff;
}

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

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