/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #000000;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    margin: 0 auto; /* Ensure the items are in the center */
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-size: 1em;
    padding: 10px;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #f39c12;
}

/* Menu icon for mobile */
.menu-icon {
    display: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

/* Mobile view */
@media (max-width: 768px) {
    .navbar ul {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: right;
    }

    .navbar ul.show {
        display: flex;
    }

    .navbar ul li {
        margin: 10px 0;
    }

    .menu-icon {
        display: block;
    }
}



/* Section Styles */
.section {
    animation:autoShowAnimation both;
    animation-timeline: view(70% 5%);
    padding: 100px 20px;
    text-align: center;
    min-height: 100vh;
}
#projects {
    padding: 50px 20px; /* Reduced padding for projects section */
    height: auto; /* or fit-content */
    min-height: 50vh; /* Adjusted min-height */
}

/* Home Section */
.home {
    background-color: #000000;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home h1 {
    font-size: 3em;
}

.home p {
    font-size: 1.2em;
    margin-top: 10px;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Roboto:wght@300&display=swap');

.section.home {
    background-color: black;
    color: white;
    text-align: center;
    padding: 100px 0;
    font-family: 'Poppins', sans-serif;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ffcc00; 
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); 
}

.hero-section p {
    font-size: 1.8rem;
    color: lightgray;
    margin-bottom: 30px;
    font-family: 'Roboto', sans-serif;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.3);
}

.hero-section .additional-text {
    font-size: 1.2rem;
    color: #ffcc00; 
    margin-top: 20px;
    font-family: 'Roboto', sans-serif;
}

.hero-section button {
    background-color: #ffcc00;
    color: black;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero-section button:hover {
    background-color: #e6b800;
}


/* About Section */
.about {
    background-color:#000000;
    color: white;
}

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

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

/* Skills Section */
.section.skills {
    background-color: #000000; 
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.section.skills h2 {
    font-size: 2.5em;
    color: #ffcc00; 
    margin-bottom: 30px;
    font-family: 'Arial', sans-serif;
}

.section.skills p {
    font-size: 1.2em;
    color: #e0e0e0; 
    margin-bottom: 40px;
}

/* Skill Bars or Icons */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .skill-item {
    flex: 1 1 30%; 
    margin: 10px;
    text-align: center;
  }
  

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.skill-item img {
    width: 60px;
    margin-bottom: 10px;
}

.skill-item h3 {
    font-size: 1.3em;
    color: #ffcc00; 
}

.skill-item p {
    font-size: 1em;
    color: #c0c0c0; 
}

/* Responsive */
@media (max-width: 768px) {
    .skill-item {
      flex: 1 1 100%; 
    }
  }
  

/* Projects Section */
.projects {
    background-color: #000000; 
    color: white;
    padding: 40px 20px; 
}

.projects h2 {
    font-size: 2.5em;
    margin-bottom: 80px;

}

/* Project Grid */
.project-grid {
    display: flex;
    gap: 30px; 
    justify-content: center;
    flex-wrap: wrap; 
}

/* Project Card */
.project-card {
    background-color: #0d0d0d; 
    padding: 40px 30px; 
    color: white;
    border-radius: 15px; 
    width: 350px; 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); 
    transition: transform 0.3s ease, background-color 0.3s ease; 
    margin-bottom: 220px; /* Adds space under the projects section */

}

.project-card:hover {
    transform: scale(1.08); 
    background-color: #000000;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5); 
}

/* Project Image */
.project-image {
    width: 100%; 
    height: 200px;
    object-fit: cover; 
    border-radius: 10px; 
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 1.8em; 
    margin-bottom: 10px;
    color: #ffcc00;
}

.project-card p {
    font-size: 1.1em;
    color: #cccccc; 
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    .project-grid {
        gap: 15px; 
    }

    .project-card {
        width: 100%; 
        padding: 20px;
        margin-bottom: 50px; 
    }
}


/* Footer */
footer {
    background-color: #000000;
    padding: 20px;
    text-align: center;
    color: white;
}

footer p {
    margin: 0;
}



/* About Section */
.section.about {
    background-color: #000000; 
    color: #ffffff; 
    padding: 60px 20px;
   

.section.about h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #ffcc00; 
    font-family: 'Arial', sans-serif; 
}

.cards-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}
}

.card {
    flex: 1;
    background-color: #1a1a1a;
    border: none;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.8em;
    color: #ffcc00; 
}

.card p {
    text-align: left;
    font-size: 1.1em;
    color: #e0e0e0;
    line-height: 1.6em;
}

.card h5, .card h6 {
    color: #ffcc00;
}

.card h5 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.card h6 {
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .cards-section {
        flex-direction: column;
        gap: 20px;
    }
}



/* General styling for the Contact Form Section */
.container {
  max-width: 100%;
}

.display-5 {
  font-size: 2.5rem;
  font-weight: 300;
}

.text-secondary {
  color: #6c757d;
}

.border-dark-subtle {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

hr.w-50 {
  width: 50%;
}

.success-message {
  display: none;
  margin: 20px;
  font-weight: bold;
  color: green;
  padding: 8px;
  background-color: beige;
  border-radius: 4px;
  border: 1px solid aquamarine;
}

.form-label {
  font-weight: bold;
}

.form-control {
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.btn {
  font-size: 1.25rem;
  padding: 0.75rem 1rem;
}

.btn-primary {
  background-color: #007bff;
  border: none;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.d-grid {
  display: grid;
}

@media (max-width: 768px) {
  .display-5 {
    font-size: 2rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 1rem;
  }
}


/* Contact Form Styling */
.contact-section {
    background-color: #000000;
    padding: 60px 0;
  }
  
  .container {
    max-width: 1000px;
    margin: auto;
  }
  
  .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
  }
  
  .section-subtitle {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 40px;
  }
  
  .form-wrapper {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .input-group {
    flex: 1;
    margin-bottom: 20px;
  }
  
  .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
  }
  
  .form-label span {
    color: red;
  }
  
  .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3
  }  
/* Contact Section */
.contact {
    background-color: #000000;
    color: white;
}

.contact h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffcc00;
}

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

/* Social media section */
.social-links {
    display: flex;
    flex-wrap: wrap;  /* Enable wrapping to multiple rows */
    justify-content: space-between; /* Evenly space the items */
    gap: 20px; /* Add space between the items */
    margin: 20px 0;
}

.social-item {
    text-align: center;
    flex-basis: calc(33.33% - 20px); /* Three items per row in desktop view */
    box-sizing: border-box; /* Ensure padding and border are included in width */
}

.social-item i {
    font-size: 60px;
    color: #ffcc00; 
}

.social-item h3 {
    font-size: 18px;
    margin-top: 10px;
}

.social-item p {
    font-size: 14px;
    color: #ccc; /* Make text lighter for contrast */
}

/* Mobile view - Two items per row */
@media (max-width: 768px) {
    .social-item {
        flex-basis: calc(50% - 20px); /* Two items per row */
    }
}




.button-container {
    text-align: center;              
    margin-top: 20px;              
}

.submit-btn {
    background-color: #ffcc00;      
    border: none;                    
    color: white;                    
    padding: 15px 30px;             
    font-size: 18px;                 
    cursor: pointer;                 
    border-radius: 5px;             
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease; 
}

.submit-btn:hover {
    background-color: #333; 
    transform: translateY(-2px);    
}

.submit-btn:active {
    transform: translateY(1px);     
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
}
.autoShow{
    animation:autoShowAnimation both;
    animation-timeline: view(70% 5%);
  }
  @keyframes autoShowAnimation{
    from{
        opacity: 0;
        transform: translateY(200px) scale(0.3);
    }to{
        opacity: 1;
        transform: translateY(0) scale(1);
    }
  }