*{
    margin: 0;
    padding: 0;
    font-size: 20px;
}
a{
    text-decoration: none;
    color: bisque;
}

/* NEW COLOR PALETTE */
:root{
    --primaryColor: #B8C7F9;       /* Soft blurple */
    --secondaryColor: #5A31F4;     /* Neon purple */
    --accentColor: #7D5DF6;        /* Bright blurple */
    --boxColor: #EFF1FF;           /* Light bluish white */
    --textColor: #1D1A35;          /* Deep navy */
}

nav{
    display: flex;
    list-style: none;
    justify-content: space-between;
    align-items: center;
    height: 8vh;
    border-bottom: 2px solid var(--accentColor);
    background-color: rgba(90, 49, 244, 0.85); /* neon purple */
    padding: 0 2rem;
    z-index: 10;
}

nav ul{
    width: 25%;
    display: flex;
    list-style: none;
    justify-content: space-evenly;
    font-size: 1.5rem;
}

nav ul li{
    color: white;
}
nav ul li:hover{
    cursor: pointer;
    text-decoration: underline;
    color: var(--accentColor);
}

nav h1{
    font-size: 30px;
    color: #1D1A35;
    padding-left: 2rem;
}

/* HERO SECTION */
.hero{
    background: linear-gradient(135deg, #5A31F4, #B8C7F9);
    height: 92vh;
    display: flex;
}
.hero .left h1,
.hero .left p {
    color: #1D1A35;
    animation: fadeSlide 1s ease-out;
}
.hero .left h1 {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--accentColor);
    animation: 
        typing 3s steps(20) 0.5s forwards,
        blink 0.7s infinite;
}


.hero .left{
    height: 100%;
    font-size: 20px;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--textColor);
    line-height: 2rem;
}

.hero .right{
    height: 100%;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Image */
.hero .right img{
    height: 90%;
    max-width: 100%;
    border-radius: 50% 20% / 10% 40%;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    animation: floatImg 6s ease-in-out infinite;
    object-fit: cover;
}

.hero .right img:hover{
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Floating animation */
@keyframes floatImg {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(10px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}
/* Typing effect for hero text */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes blink {
    50% { border-color: transparent; }
}

.left p{
    color: var(--accentColor);
    font-size: 20px;
}
.left h1{
    font-size: 3rem;
}

/* Social Icons */
.socialMedia{
    width: 10rem;
    display: flex;
    justify-content: space-evenly;
}
.socialMedia img{
    height: 2rem;
    border-radius: 50%;
    border: 2px solid var(--accentColor);
}
.socialMediaNames{
    width: 10rem;
    display: flex;
    justify-content: space-evenly;
}
.socialMediaNames p{
    font-size: 0.7rem;
}

/* SERVICES SECTION */
.services{
    padding: 2rem 1rem;
    display: grid;
    background-color: var(--boxColor);
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
    font-size: 1.5rem;
}

.services div{
    height: 16rem;
    padding: 1rem;
    transition: 0.3s;
    border: 2px solid var(--secondaryColor);
    display: flex;
    flex-direction: column;
    background-color: var(--primaryColor);
    align-items: center;
    justify-content: center;
    line-height:2rem;
    border-radius: 25% 10%;
    animation: floatCard 4s ease-in-out infinite, fadeSlide 0.7s ease forwards;
}

/* Floating card animation */
@keyframes floatCard {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.services div img{
    height: 6rem;
    width: 6rem;
    border-radius: 50%;
}

.services div h3{
    color: var(--secondaryColor);
}
.services div p{
    font-size: 0.8rem;
    color: var(--textColor);
}

/* Hover effect */
.services div:hover{
    cursor: pointer;
    background-color: var(--accentColor);
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(90, 49, 244, 0.5);
}

.outOfServices{
    color: var(--textColor);
    text-align: center;
    font-size: 2rem;
    margin-top: 2rem;
    text-decoration: underline;
}

/* CONTACT SECTION */
.contact{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 50px 20px;
    background-color: var(--boxColor);
}

.contact-info{
    flex: 1;
    min-width: 250px;
    font-size: 1rem;
    color: var(--textColor);
    line-height: 2rem;
    border: 2px solid var(--secondaryColor);
    padding: 20px;
    border-radius: 20px;
    background-color: var(--primaryColor);
}

.contact-form{
    flex: 1;
    min-width: 300px;
    border: 2px solid var(--secondaryColor);
    border-radius: 20px;
    padding: 20px;
    background-color: var(--primaryColor);
}

.contact-form input,
.contact-form textarea{
    padding: 12px;
    border: 1px solid var(--secondaryColor);
    border-radius: 10px;
    font-size: 1rem;
}

.contact-form button{
    padding: 12px;
    background-color: var(--secondaryColor);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s ease;
}

.contact-form button:hover{
    background-color: var(--accentColor);
    transform: scale(1.05);
}

/* FOOTER */
footer{
    background-color: var(--secondaryColor);
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    border-top: 2px solid var(--accentColor);
}

footer p{
    margin: 0;
}


/* SERVICES ALTERNATING SLIDE-IN ANIMATION */

/* Slide in from left */
@keyframes slideLeft {
0% {
opacity: 0;
transform: translateX(-50px);
}
100% {
opacity: 1;
transform: translateX(0);
}
}

/* Slide in from right */
@keyframes slideRight {
0% {
opacity: 0;
transform: translateX(50px);
}
100% {
opacity: 1;
transform: translateX(0);
}
}

/* Apply animation to each service card */
.services div {
height: 16rem;
padding: 1rem;
transition: 0.6s;
border: 2px solid var(--secondaryColor);
display: flex;
flex-direction: column;
background-color: var(--primaryColor);
align-items: center;
justify-content: center;
line-height: 2rem;
border-radius: 25% 10%;
opacity: 0; /* start invisible for slide effect */
animation: floatCard 10s ease-in-out infinite;
}

/* Odd cards slide from left */
.services div:nth-child(odd) {
animation-name: floatCard, slideLeft;
animation-duration: 4s, 4s;
animation-timing-function: ease-in-out, ease;
animation-fill-mode: none, forwards;
}

/* Even cards slide from right */
.services div:nth-child(even) {
animation-name: floatCard, slideRight;
animation-duration: 5s, 5s;
animation-timing-function: ease-in-out, ease;
animation-fill-mode: none, forwards;
}

