/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}
.loading-hello{
    width: 800px; 
    height: auto;
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    text-align: center;
    margin-top: -180px;
}
/* Loading Page */
@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%); 
    }
    50% {
        transform: translate(-50%, -55%); 
    }
}
.loading-logo {
    width: 100px;  
    height: auto;  
    position: absolute; 
    top: 40%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    animation: float 3s ease-in-out infinite;
}
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-screen h1 {
    font-size: 60px;
    color: white;
    margin-bottom: 20px;
}

.enter-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.enter-btn:hover {
    background-color: #aef174;
}

/* Navigation */
nav {
    visibility: hidden;
    opacity: 0;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    justify-content: flex-end;
    background-color: #000000;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
}

nav.visible {
    visibility: visible;
    opacity: 1;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
}

nav a:hover {
    color: #f4f4f4;
    text-decoration: underline;
}

.logo-btn {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-right: auto; 
}
.logo-btn img {
    width: 45px;  
    height: auto; 
}

/* Sections */
section {
    padding: 150px 20px;
    margin: 20px 0;
    border-radius: 8px;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    min-height: 400px; /* Ensures a minimum height */
    max-height: 1000px;
}

section.visible {
    opacity: 1;
}

#section1, #section2, #section3, #contact {
    background: transparent; 
}

#section2 {
    padding-top: 10px; 
    margin-top: 0;
}

/* Background container */
.background-container {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; 
    background-color: black; 
    overflow: hidden;
}

/* Background SVGs */
.background-svg {
    position: absolute;
    width: 300px; 
    height: 300px;
    filter: blur(200px);
    opacity: 0.6; 
}

.content-container {
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    padding: 40px; 
    text-align: center; 
    height: 10vh; 
}
h1 {
    font-size: 26px; 
    margin-bottom: 2opx; 
    margin-top: 240px;
    text-align: center;
    color: #d4d3d3;
    animation: slideInLeft 2s ease-out forwards;
}

h2 {
    font-size: 20px; 
    margin-bottom: 20px; 
    margin-top: 0px;
    padding-left: 150px;
    padding-right: 150px;
    color: #d4d3d3;
    animation: slideInRight 2s ease-out forwards;
    animation-delay: 0.5s;
}

h1, h2 {
    position: relative; 
    opacity: 0; 
}
/* Sliding from the left */
@keyframes slideInLeft {
    0% {
        left: -100%; 
        opacity: 0; 
    }
    100% {
        left: 0; 
        opacity: 1;
    }
}

/* Sliding from the right */
@keyframes slideInRight {
    0% {
        right: -100%; /* Start off-screen to the right */
        opacity: 0; /* Fully hidden */
    }
    100% {
        right: 0; /* Ends at its original position */
        opacity: 1; /* Fully visible */
    }
}

/* Apply the animations */
h1 {
    animation: slideInLeft 3s ease-out forwards; 
}
h2 {
    animation: slideInRight 3s ease-out forwards; 
}



#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

#contactForm button {
    background-color: #000000;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

#contactForm button:hover {
    background-color: #555;
}

/* Footer Section */
.section4 {
    position: relative;
    background-color: #000000;
    color: white;
    padding: 50px 20px;
    text-align: center;
    overflow: hidden;
}

/* Moving Contact Sign */
.moving-contact img {
    width: 100%; /* Adjust the size of the image */
    animation: moveContact 12s linear infinite;
}

@keyframes moveContact {
    0% { transform: translateX(100); }
    100% { transform: translateX(-100%); }
}
.moving-portfolio img {
    width: 100%; /* Adjust the size of the image */
    animation: moveContact 12s linear infinite;
}

@keyframes moveContact {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Background Animation */
.bg-contact svg {
    position: absolute;
    top: 10%;
    left: 50%;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Email Button */
.email-btn {
    background-color: #000000;
    color: rgb(250, 203, 49);
    padding: 15px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
    transition: background-color 0.3s;
}

.email-btn:hover {
    background-color: #f4ecec;
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.social-icon:hover img {
    transform: scale(1.2);
}

section {
    opacity: 0; 
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

section.revealed {
    opacity: 1; /* Visible after animation */
    transform: translateY(0); /* Reset transform after animation */
}

/* Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin: 20px 0;
    padding: 20px;
}

/* Card Container */
.card {
    position: relative;
    width: 100%;
    padding-top: 100%; 
    perspective: 1000px; 
}

/* Card Flip Mechanism */
.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hides the back when front is visible */
    transition: transform 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Card Front Styling */
.card-front {
    background-color: #212121; 
    color: #030303;
    font-size: 24px;
    transform: rotateY(0); 
    
}

/* Card Back Styling */
.card-back {
    background: #458497; 
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    padding: 15px; 
    border-radius: 10px;
    text-align: center;
}

.card-back p {
    margin-top: 50px;
    margin-bottom: 30px; 
    font-size: 18px; 
    text-align: center;
}

.card-back a {
    color: #ffffff; 
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px; 
    background: #858b87; 
    border-radius: 5px; 
    transition: background 0.3s ease;
}

.card-back a:hover {
    background: #000000; 
    color: #fff; 
}


/* Flip on Hover */
.card:hover .card-front {
    transform: rotateY(-180deg); 
}

.card:hover .card-back {
    transform: rotateY(0); 
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

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


/* Resume Button */
.resume-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    color: rgb(144, 207, 138);
    background-color: #666363; 
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.resume-btn:hover {
    background-color: #000000; 
    transform: scale(1.05); 
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.skills-category {
    background-color: #212121; /* Dark background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.skills-category h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #f4f4f4;
    text-align: center;
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 5px;
}

.skills-category ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.skills-category li {
    font-size: 16px;
    color: #d4d3d3;
    margin: 8px 0;
}


.card:nth-child(1) .card-front {
    background-image: url('images/card1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card:nth-child(2) .card-front {
    background-image: url('images/card2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card:nth-child(3) .card-front {
    background-image: url('images/card3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card:nth-child(4) .card-front {
    background-image: url('images/card4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card:nth-child(5) .card-front {
    background-image: url('images/card5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card:nth-child(6) .card-front {
    background-image: url('images/card6.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
