/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #2E2E2E;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color:#001f3e;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navigation Styles */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    flex-grow: 1;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #3498db;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* .resume-btn {
    background-color: #ffa109;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    white-space: nowrap;
}

.resume-btn:hover {
    background-color: #dfaf00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
} */

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    margin-left: 1rem;
}

@media (max-width: 768px) {
    nav {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .hamburger {
        display: block;
    }
    
}
/* Hero Section */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 0rem;
    gap: 3rem;
}

.hero-image {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.hero-image img {
    max-width: 300px;
    border-width: 6px;
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 20px;
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.hire-me-btn{

    background-color: #ffa109;
    color: white;
    padding: 0.8rem 2rem;
    gap: 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(28, 139, 214, 0.3);
    white-space: nowrap;
    position: relative;
    left: 0px;
    top: 50px;
}

.hire-me-btn:hover {
    background-color: #dfaf00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #5fa154;
}

.hero-text h1{
    font-size:xxx-large;
}

.hero-text p{
    font-size:16px;
}
/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        padding: 5rem 2rem 3rem;
    }
    
    .hero-image {
        margin-bottom: 2rem;
    }
    
    .hero-image img {
        max-width: 350px;
    }
}

@media (max-width: 576px) {
    .hero-image img {
        max-width: 250px;
        border-width: 4px;
    }
    
    .resume-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
/* About Section Styling */
#about {
    background-color: #fff;

}

#about h2{
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}
.about-content {
    display: flex;
    align-items: center;
    padding: 2rem 2rem ;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 2;
    /* padding: 2rem 2rem; */
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #444;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Skills Section Styling */
#skills {
  background-color: #f8f9fa;
  padding: 5rem 2rem;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  justify-items: center;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 10px;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-item i {
  color: #6D7A4F;
  margin-bottom: 0.5rem;
}

.skill-item span {
  font-weight: 500;
  color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
  }
  
  .skill-item {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .skills-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .about-image img {
        max-width: 280px;
    }
}

/* Cards Section Styling */
.cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 rem;
}

.skill-card {
    flex: 1;
    max-width: 400px;
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: #6D7A4F;
}

.skill-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.skill-card p {
    color: #666;
    line-height: 1.6;
}

/* Specific styling for each card */
.skill-card:nth-child(1):hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e1f0fd 100%);
}

.skill-card:nth-child(2):hover {
    background: linear-gradient(135deg, #f5f9ff 0%, #e8f1fc 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cards {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .skill-card {
        width: 100%;
        max-width: 350px;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .skill-card h3 {
        font-size: 1.3rem;
    }
    
    .skill-card p {
        font-size: 0.9rem;
    }
}

/* Projects Section */
.section#projects {
    background-color: #fff;
    padding: 5rem 2rem;
}

.section#projects h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section#projects h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #3498db;
    margin: 1rem auto;
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.project-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background-color: #e0f2fe;
    color: #4A5E47;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link.live {
    background-color: #4A5E47;
    color: white;
}

.project-link.code {
    background-color: transparent;
    color: #4A5E47;
    border: 1px solid #4A5E47;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.project-link.live:hover {
    background-color: #2980b9;
}

.project-link.code:hover {
    background-color: #f0f7ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .section#projects h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .section#projects {
        padding: 4rem 1.5rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-link {
        justify-content: center;
    }
}

/* Contact Section Styling */
#contact {
    background-color: #f8f9fa;
    padding: 5rem 2rem;
}

#contact h2{
     font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffa109;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-color: #ffa109;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.form-success p {
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        padding: 1.5rem;
    }
    
    .submit-btn {
        width: 100%;
    }
}

/* Footer Styles */
.site-footer {
  background-color: #001c38;
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 1rem;
  position: relative;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-text p:first-child {
  font-weight: 500;
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-social a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: #3498db;
  transform: translateY(-3px);
}

/* Font Awesome icons (you need to include FA in your project) */
.fab, .fas {
  width: 1em;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-social {
    margin-top: 1.5rem;
  }
}