/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #121212;
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem; /* Adjust this value based on the height of your nav bar */
}

/* Header */
.header {
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 2%;  /* Reduced padding for more space */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #121212;
    transition: background-color 0.3s ease-in-out;
    z-index: 100;
}

.header.transparent {
    background-color: transparent;
}

.logo {
    height: auto;
    font-size: 28px;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}

.nav{
    height: auto;
}

.navbar a {

    font-size: 16px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #f76c6c;
}



/* Home Section */
/* General Animation Keyframes */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Home Section */
.home {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #121212;
    color: #fff;
    
}

.home h1 {
    font-size: 90px;
    font-weight: 700;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.5s; /* Display after 0.5s */
    opacity: 0; /* Start hidden */
    font-family: "friz-quadrata";
}

.home h2 {
    font-size: 45px;
    margin: 20px 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 1.5s; /* Display after 1.5s */
    opacity: 0; /* Start hidden */
}

.home p {
    font-size: 26px;
    max-width: 600px;
    margin: 10px auto;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 2.5s; /* Display after 2.5s */
    opacity: 0; /* Start hidden */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Add consistent spacing between elements */
}

.home .btn {
    padding: 10px 30px;
    background-color: #2c2c2c;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 3.0s; /* Display after 3.5s */
    opacity: 0; /* Start hidden */
    margin-top: 40px;
   
}

.home .btn:hover {
    background-color: #5f5e5e;
}


/* About Section */
.about {
    height: auto;
    padding: 80px 10%;
    text-align: center;
    background-color: #121212;
}

.about h2 {
    font-size: 80px;
    margin-bottom: 20px;
}

.about p {
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
}

/* Skill Container */
.skills {
    height: auto;
    padding: 85px 10%;
    text-align: center;
    background-color: #121212;
    color: #fff;
    margin-top: 60px;
}

.skills p {
    color: #aaa;
    font-size: 25px;
}
.skills h2 {
    font-size: 80px;
    color: white;
    align-items: center;
    margin-bottom: 50px;
}

/* Skill Container */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    justify-content: center;
}

/* Individual Skill Item */
.skill-item {
    width: 300px;
    text-align: center;
    background-color: #2c2c2c;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover animation */
.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Skill Name */
h3 {
    font-size: 22px;
    margin-top: 10px;
    color: #fff;
}

.projects {
    height: auto; /* Changed from fixed height to auto */
    padding: 50px 10px;
    text-align: center;
    background-color: #121212;
    margin-top: 90px;
    
}

.projects h2 {
    font-size: 70px;
    margin-bottom: 30px;
    color: white;
}

.project-container {
    display: flex;
    gap: 10px; /* Increased gap to prevent overlap */
    justify-content: center;
    flex-wrap: wrap;
}

.project-container {
    display: flex;
    gap: 2rem; /* Space between project cards */
    justify-content: center; /* Center the cards horizontally */
    flex-wrap: wrap; /* Allow cards to wrap to the next row if necessary */
}

.card {
    width: 280px; /* Adjust width for uniform size */
    height: 280px; /* Consistent height */
    perspective: 1000px; /* For 3D flip effect */
    margin: 10px; /* Add consistent margin around each card */
}

.card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

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

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2c2c2c;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.card-back {
    transform: rotateY(180deg);
}

.card a {
    text-decoration: none;
    color: #f76c6c;
    font-weight: 600;
    margin-top: 10px;
}


/* Contact Section */
.contact {
    height: auto;
    padding: 40px 10px;
    text-align: center;
    background-color: #121212;
    
    
}

.contact h2 {
    font-size: 50px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.contact p {
    font-size: 20px;
    color: #aaa;
    text-align: center;
}

/* Contact Links Container */
.contact-links {
    display: flex;
    gap: 20px; /* Increased gap between buttons */
    justify-content: center; /* Center buttons horizontally */
    align-items: center; /* Align buttons vertically */
    padding: 20px; /* Padding around the container for visual spacing */
    background-color: transparent; /* Remove container background color */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    margin-top: 20px; /* Provide some space from the content above */
}

/* Button Styling within Contact Links */
.contact-links .btn {
    padding: 15px 30px; /* Padding within each button for better touch area */
    background-color: #383737; /* Background color for the buttons */
    color: #fff; /* Text color for the buttons */
    text-decoration: none; /* Remove underline from links */
    border-radius: 5px; /* Rounded corners for each button */
    font-weight: 600; /* Make the font a bit bolder */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
    border: none; /* No borders unless you want them for style */
}

/* Hover Effect for Buttons */
.contact-links .btn:hover {
    background-color: #4e4d4d; /* Lighter red on hover */
    color: #fff; /* Keep text color white on hover for contrast */
}


/* Footer */
footer {
    text-align: center;
    padding: 20px 0%;
    background-color: #121212;
    color: #aaa;
}


