/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #121212;
    color: white;
    scroll-behavior: smooth;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Navbar */
/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Sticky Navbar */
.sticky-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 20px;
    background: #0c1eb8;
    color: white;
    padding: 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.3s;
}

.sticky-header .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.sticky-header .nav-links li {
    display: inline;
}

.sticky-header .nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 8px 12px;
    transition: 0.3s;
}

.sticky-header .nav-links a:hover {
    background: #ff9800;
    border-radius: 5px;
}

/* Fixing section padding to avoid content hiding behind navbar */
section {
    padding: 100px 20px;
    margin-top: 60px;
}


.logo {
    font-size: 22px;
    color: white;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

nav ul li a:hover, .active {
    text-decoration: underline;
    font-weight: bold;
    color: #FFD700; /* Exact yellow from image */
}

/* Home Section */
/* Default Styling */
#home {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to right, #0f0c29, #302b63, #08081a);
    color: white;
    text-align: center;
    padding: 25px 20px;
    transition: 0.3sec ease-in-out;
}

.container {
    max-width: 800px;
    width: 100%;
}

/* Profile Image Styling */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    transition: 0.2sec;
}

.profile-section img {
    width: 150px;  /* Adjust size as needed */
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    margin-bottom: 10px;
}

/* Content Section */
.content h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.content p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Button Styling */
.resume-btn {
    background: #ff4b5c;
    border: none;
    width: 200px;
    padding: 12px 20px;
    border-radius: 8px;
    transition: 0.3s ease-in-out;
}

.resume-btn a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.resume-btn:hover {
    background: #e43e51;
    transform: scale(1.1);
    
}

/* Mobile View Styling */
@media (max-width: 768px) {
    #home {
        padding: 30px 15px;
        display: flex;
        flex-direction: column;
        transition: 0.3sec;
    }

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-section img {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }

    .content {
        width: 100%;
    }

    .content h1 {
        font-size: 22px;
    }

    .content p {
        font-size: 14px;
    }

    .resume-btn {
        padding: 10px 18px;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 30px; /* Moves it to top-right */
    gap: 5px;
}

.hamburger .bar {
    width: 30px;
    height: 4px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Active (Close Icon) */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.nav-links li {
    display: inline;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.nav-links li:nth-child(1) { animation-delay: 0.3s; }
.nav-links li:nth-child(2) { animation-delay: 0.4s; }
.nav-links li:nth-child(3) { animation-delay: 0.5s; }
.nav-links li:nth-child(4) { animation-delay: 0.6s; }
.nav-links li:nth-child(5) { animation-delay: 0.7s; }

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}


/* Hide menu items in mobile view */
@media screen and (max-width: 768px) {
    .sticky-header .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #3D4CE1;
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    /* Show menu when active */
    .sticky-header .nav-links.active {
        display: flex;
    }
    
    /* Ensure hamburger menu appears */
    .sticky-header .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
    }

}

#about {
    background-color: #1e1e2f;
    color: #ffffff;
    padding: 50px;
    text-align: center;
    animation: fadeInLeft 1s ease-out;
}

#about h2 {
    font-size: 2.5em;
    color: #7d5fff;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

#about p {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #about {
        padding: 30px;
    }

    #about h2 {
        font-size: 2em;
    }

    #about p {
        font-size: 1em;
    }
}

/* Skills Section */
#skills {
    background-color: #392F8A;
    color: white;
    text-align: center;
    padding: 60px;
    transition: 0.3sec;
}

#skills h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

#skills p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.skill {
    background-color: black;
    color: white;
    padding: 12px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s, background-color 0.3s;
}

/* Hover Effect */
.skill:hover {
    background-color: #ffcc00;
    color: black;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

/* Delay each skill box */
.skill:nth-child(1) { animation-delay: 0.1s; }
.skill:nth-child(2) { animation-delay: 0.2s; }
.skill:nth-child(3) { animation-delay: 0.3s; }
.skill:nth-child(4) { animation-delay: 0.4s; }
.skill:nth-child(5) { animation-delay: 0.5s; }
.skill:nth-child(6) { animation-delay: 0.6s; }
.skill:nth-child(7) { animation-delay: 0.7s; }
.skill:nth-child(8) { animation-delay: 0.8s; }
.skill:nth-child(9) { animation-delay: 0.9s; }
.skill:nth-child(10) { animation-delay: 1.0s; }
.skill:nth-child(11) { animation-delay: 1.1s; }
.skill:nth-child(12) { animation-delay: 1.2s; }
.skill:nth-child(13) { animation-delay: 1.3s; }
.skill:nth-child(14) { animation-delay: 1.4s; }
.skill:nth-child(15) { animation-delay: 1.5s; }
.skill:nth-child(16) { animation-delay: 1.6s; }
.skill:nth-child(17) { animation-delay: 1.7s; }
.skill:nth-child(18) { animation-delay: 1.8s; }
.skill:nth-child(19) { animation-delay: 1.9s; }
.skill:nth-child(20) { animation-delay: 2.0s; }
.skill:nth-child(21) { animation-delay: 2.1s; }
.skill:nth-child(22) { animation-delay: 2.2s; }
.skill:nth-child(23) { animation-delay: 2.3s; }
.skill:nth-child(24) { animation-delay: 2.4s; }
.skill:nth-child(25) { animation-delay: 2.5s; }
.skill:nth-child(26) { animation-delay: 2.6s; }
@media screen and (max-width: 768px) {
    .sticky-header .hamburger {
        display: flex;
    }
    .sticky-header .nav-links {
        display: none;
        flex-direction: column;
        background: black;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
    }

    .sticky-header .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

/* Show menu when active */
.sticky-header .nav-links.active {
    display: flex;
    flex-direction: column;
}

/* Hamburger Active (Transforms into "X" icon) */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
}

/* Projects Section Styling */
#projects {
   background: linear-gradient(to right, #0f0c29, #302b63, #08081a); /* Dark blue background */
    padding: 60px ;
    text-align: center;
    transition:0.3sec;
    
  }
  .projects-container {
    display: flex;
    justify-content: center;
    gap:9px;
    flex-wrap: wrap;
    margin: 20px auto;
    width: 70%;
  
    transition: transform 0.3s, background-color 0.3s;
}


.project {
    background-color: #030303;
    padding: 20px;
    border-radius: 15px;
    width: 45%;
    margin: 10px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    
    
}
.project h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: rgb(17, 21, 255);
}

.project p {
    font-size: 14px;
}

a {
    color: #00b4d8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
  
  @media (max-width: 768px) {
    .projects-container {
      flex-direction: row;
      align-items: center;
    }
  
    .projects-container > div {
      width: 90%;
      margin-bottom: 20px;
    }
  }
/* Hover Effect */
.project-card:hover {
    transform: translateX(-5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Section Styling */
.contact-section {
   background: linear-gradient(to right, #0f0c29, #302b63, #08081a);
    padding: 60px;
    text-align: center;
    color: white;
}

/* Contact Heading */
.contact-section h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Contact Form Styling */
.contact-form {
    background-color: #2e2e3f;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    margin: auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Labels */
.contact-form label {
    display: block;
    text-align: left;
    margin: 10px 0 5px;
    font-weight: bold;
}

/* Input Fields */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: #444;
    color: white;
    box-sizing: border-box;
}

/* Textarea */
.contact-form textarea {
    height: 100px;
    resize: none;
}

/* Send Button */
.btn {
    background-color: #00c853;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

.btn:hover {
    background-color: #009624;
}
#others {
    text-align: center;
    padding: 70px;
    background-color: #2c2f3f;
    color: #fff;
    transition: 0.3sec;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.map-container iframe {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border-radius: 10px;
}

.contact-details {
    margin-top: 20px;
    font-size: 18px;
}

.contact-details a {
    color: #4fc3f7;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    margin: 0 10px;
    display: inline-block;
}

.social-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}
.show-details-button {
    padding: 5px 10px; /* Reduce button padding */
    font-size: 12px; /* Reduce text size */
    width: auto; /* Avoid full width */
    min-width: 100px; /* Ensure proper size */
    height: 30px; /* Adjust height */
    background-color: green; /* Button color */
    color: white; /* Text color */
    border: none;
    border-radius: 5px; /* Smooth corners */
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.show-details-button:hover {
    background-color: darkgreen; /* Hover effect */
}

/* Adjust button for mobile */
@media (max-width: 600px) {
    .show-details-button {
        padding: 4px 8px;
        font-size: 10px;
        height: 28px;
        min-width: 80px;
    }
}
form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #282a2c;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    font-weight: bold;
    margin: 10px 0 5px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #0d8b37;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #007bff;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    width: 100%;
    background: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #0056b3;
}


@media (max-width: 600px) {
    .projects-container {
        display: flex;
        flex-direction: row; /* Keep boxes side by side */
        overflow-x: auto; /* Allow scrolling */
        justify-content: flex-start; /* Align projects properly */
        padding: 10px;
    }
    
    .project-card {
        flex: 0 0 320px; /* Keeps a fixed width */
        margin-right: 15px; /* Adds spacing between cards */
    }
}
/* Hide menu by default on small screens */
.menu {
    display: flex; /* Visible by default on desktop */
    flex-direction: row; /* Show links in a row */
    gap: 10px; /* Add spacing between items */
    position: static; /* Normal flow for desktop */
    background: none;
    box-shadow: none;
}

/* Show menu when active */
.menu.active {
    display: flex;
}

/* Style hamburger icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: rgb(255, 255, 255);
    margin: 4px 0;
    transition: 0.4s;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .hamburger {
      display: flex;
    }
    .nav-links {
        display: none;
    }
    .menu {
        display: none;
    }
    .hamburger .bar{
        width:24px;
        padding: 0px;
        margin-top:0;
        margin-bottom: 0;
        margin-right: 10px;

        
    }
}
@media screen and (max-width: 768px) {
    .menu {
        display: none; /* Hide menu initially */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: white;
        width: 200px;
        text-align: center;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Show menu when active (for mobile) */
    .menu.active {
        display: flex !important;
    }
}
.project {
    background-color: #222;
    color: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease-in-out;
}

.project:hover {
    transform: scale(1.05);
}

.project-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.project-btn:hover {
    background-color: #0056b3;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between icons */
    margin-top: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgb(241, 234, 234); /* Change background color if needed */
    border-radius: 50%;
    box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.social-icons a:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
    box-shadow: 2px 2px 15px rgba(255, 255, 255, 0.5);
}

.social-icons img {
    width: 60%; /* Adjust icon size */
    height: auto;
}

