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

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

/* Header */
.header {
    background: #333;
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo (Name: Hariom) */
.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6347; /* Makes it bold */
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
}

.nav-links li a {
    text-decoration: underline; /* Underlines the navigation links */
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #ff6347;
}

/* Hero Section */
#hero {
    position: relative;
    height: 90vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: url('images/background5.jpg') center/cover no-repeat;
    background-size: cover; 
    color: #f8fcfd;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

/* Animation for the name */
@keyframes flyInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-name {
    color: #18ea00; /* Green color for the name */
    display: inline-block;
    animation: flyInFromLeft 1s ease-out;
}
/* Add a class to trigger animation */
.hero-name.fly {
    animation: flyInFromLeft 1s ease-out;
}

/* Apply the animation to the .animated-name class */
.animated-name {
    display: inline-block;
    animation: slideInFromLeft 1.5s ease-out forwards;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
/* Tagline Styling */
.hero-text .tagline {
    font-size: 1.2rem;
    color: #ff6347;
    font-style: italic;
    margin: 10px 0 20px;
}

/* "View My Projects" Button Styling */
.btn-projects {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0px 4px 15px rgba(0, 114, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-projects:hover {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    box-shadow: 0px 6px 20px rgba(0, 114, 255, 0.4);
    transform: translateY(-2px);
}

.hero-text .btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 2rem;
    background: #ff6347;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.hero-text .btn:hover {
    background: #e5533d;
}

.hero-image {
    flex: 1;
    text-align: center;
    animation: float 3s ease-in-out infinite; /* Adds smooth motion */
}

.hero-image img {
    width: 100%;
    max-width: 500px; /* Increased size from 400px to 500px */
    display: block;
    margin: 0 auto;
}

/* Keyframes for Motion */
@keyframes float {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px); /* Move slightly to the right */
    }
    100% {
        transform: translateX(0); /* Back to original position */
    }
}

/* About Section */
#about {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 3rem; /* Increased padding for larger box */
    background-color: #eef2f3;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 1000px; /* Increased max-width for a bigger box */
    transition: transform 0.5s ease, opacity 0.5s ease;
    position: relative;
    overflow: hidden; /* Smooth slide effect */
}

.about-photo {
    flex: 1;
    max-width: 200px; /* Reduced size of the photo */
    transition: transform 0.5s ease;
    margin-right: 2rem; /* Space between photo and text */
    text-align: center;
}

.about-photo img {
    width: 100%;
    border-radius: 50%; /* Ensures photo stays circular */
    transition: transform 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Adds shadow */
}

.about-text {
    flex: 2; /* Larger text area compared to photo */
    text-align: left;
    z-index: 2; /* Keeps it above the photo */
    transition: transform 0.5s ease;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ff6347; /* Changed color for "About Me" */
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8; /* Improved readability */
}

#about:hover .about-photo {
    transform: translateX(-30px) scale(1.05); /* Moves photo slightly left and enlarges */
}

#about:hover .about-text {
    transform: translateX(30px); /* Moves text slightly right */
}

#about:hover {
    transform: scale(1.02); /* Slightly enlarges entire section */
}

/* Education Section */
#education {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background-color: #eef2f3; /* Light gray-blue background for contrast */
    text-align: center;
    color: #333;
    border-radius: 10px; /* Rounded corners for uniform design */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    margin: 2rem auto;
    max-width: 800px; /* Consistent width with the About section */
}

#education h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #ff6347; /* Highlighted title color */
}

.education-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%; /* Full width for alignment */
    max-width: 600px; /* Restrict the width of the list */
}

.education-list li {
    font-size: 1.2rem;
    line-height: 1.8; /* Improve text spacing */
    color: #555; /* Slightly muted text for readability */
    margin: 1rem 0;
    padding: 1rem;
    background: #fff; /* White background for individual items */
    border-radius: 8px; /* Rounded corners for list items */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Skills Section */
.skills {
    padding: 4rem 2rem;
    background: linear-gradient(to right, #eef2f3, #f8fcfd);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 100px;
    height: 3px;
    background: #ff6347;
    display: block;
    margin: 0.5rem auto;
    border-radius: 5px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.skill-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 250px;
    text-align: center;
}

.skill-card h3 {
    font-size: 1.8rem;
    color: #ff6347;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.skill-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

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

.skill-card:hover h3 {
    color: #333;
}

.skill-card:hover p {
    color: #444;
}

/* Section Headings with Underline */
section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
  }
  
  section h2::after {
    content: "";
    display: block;
    width: 50%;
    height: 3px;
    background-color: #3498db; /* Use any color you prefer */
    margin: 10px auto 0;
    border-radius: 2px;
    transition: width 0.3s ease-in-out;
  }
  
  section h2:hover::after {
    width: 80%; /* Expands underline on hover */
  }
  
/* Certificates Section Styling */
.certificates-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
  }
  
  .certificates-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
  }
  
  .certificates-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .certificate {
    flex: 1 1 200px;
    max-width: 200px;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
  }
  
  .certificate:hover {
    transform: scale(1.05);
  }
  
  .certificate img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 10px;
  }
  
  /* Lightbox/Modal Styling */
  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
  }
  
  .lightbox img {
    max-width: 80%;
    max-height: 80%;
    border: 5px solid #fff;
    border-radius: 10px;
  }
  
  .lightbox.visible {
    visibility: visible;
    opacity: 1;
  }
  
  #close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
  }
  
  #close-lightbox:hover {
    color: #f00;
  }
  
/* Projects Section */
.projects {
    padding: 2rem;
    background: #f9f9f9;
    text-align: center;
}

.projects h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.underline {
    width: 120px;
    height: 3px;
    background-color: #ff6347;
    margin: 0 auto 1.5rem auto;
    border-radius: 2px;
}

.projects-grid,
.more-projects-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    
}

.project {
    width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    
}

.project:hover {
    transform: scale(1.05); /* Slightly enlarges the box */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Adds a stronger shadow */
}

.project img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.project h3 {
    font-size: 1.2rem;
    color: #ff6347;
    margin-bottom: 0.5rem;
}

.project p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.8rem;
}

/* Styling for GitHub Button */
.github-button {
    display: inline-flex; /* Use Flexbox */
    align-items: center; /* Align icon and text vertically */
    justify-content: center; /* Center everything horizontally */
    background-color: #24292e; /* GitHub dark background */
    color: #ffffff; /* White text */
    padding: 10px 20px; /* Add some padding for better spacing */
    font-size: 16px; /* Adjust text size */
    border-radius: 6px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease;
  }
  
  .github-button i {
    margin-right: 8px; /* Add some space between the icon and text */
    font-size: 20px; /* Adjust icon size */
  }
  
  .github-button:hover {
    background-color: #ff6347; /* Darker shade on hover */
  }

.more-button {
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    background-color: #ff6347;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.more-button:hover {
    background-color: #333;
}

.hidden {
    display: none;
}

.visible {
    display: flex;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(to bottom, #1c1c1c, #0d0d0d);
    color: #fff;
    padding: 50px 20px;
    text-align: center;
  }
  
  .contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
  }
  
  .contact-section h2::after {
    content: "";
    display: block;
    width: 50%;
    height: 3px;
    background: #e63946;
    margin: 10px auto 0;
    border-radius: 2px;
  }
  
  .contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Contact Details */
  .contact-details p {
    font-size: 1.2rem;
    margin: 15px 0;
    color: #ccc;
  }
  
  .contact-details p i {
    color: #e63946;
    margin-right: 10px;
  }
  
  .contact-details a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
  }
  
  .contact-details a:hover {
    color: #e63946;
  }
  
  .social-icons a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: transform 0.3s, color 0.3s;
  }
  
  .social-icons a:hover {
    color: #e63946;
    transform: scale(1.2);
  }
  
  .download-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #e63946;
    color: #fff;
    font-size: 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
  }
  
  .download-btn:hover {
    background: #c71f33;
    transform: scale(1.1);
  }
  
  /* Contact Form */
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
  }
  
  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    color: #aaa;
  }
  
  .contact-form button {
    width: 100%;
    padding: 15px;
    background: #e63946;
    color: #fff;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
  }
  
  .contact-form button:hover {
    background: #c71f33;
    transform: scale(1.05);
  }
  
/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background: #333;
    color: white;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Sections to appear centered */
section {
    scroll-margin-top: 80px; /* Adjust based on the header's height */
}
