/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f5f7fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #3498db;
    margin: 10px auto;
    border-radius: 2px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #3498db;
}

/* Navigation Styles */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

/* Hover Effect for Navigation Links */
nav a:hover {
    color: #3498db;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
    transform: translateY(-2px);
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

nav a:hover::before {
    width: 100%;
}

/* Home Icon */
.home-icon {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.home-icon:hover {
    color: #3498db;
    transform: scale(1.1);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: contain;
    border: 5px solid #3498db;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-item {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.skill-item i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.skill-item span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Icon Colors */
.html-icon { color: #e34c26; }
.css-icon { color: #264de4; }
.js-icon { color: #f0db4f; }
.react-icon { color: #61dafb; }
.git-icon { color: #f1502f; }
.db-icon { color: #00758f; }

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    padding: 20px 20px 10px;
    color: #2c3e50;
}

.project-card p {
    padding: 0 20px 20px;
    color: #666;
}

.project-link {
    display: inline-block;
    padding: 0 20px 20px;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
}

.project-link:hover {
    text-decoration: underline;
}

/* certificates */

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.certificate-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 260px;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.certificate-card h3 {
  color: #0a4d68;
  margin-bottom: 8px;
}

.certificate-card p {
  color: #555;
  margin-bottom: 6px;
}

.certificate-card span {
  font-size: 14px;
  color: #888;
}

/* Certificate Link */
.certificate-card a {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background-color: #0a4d68;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background-color 0.3s ease;
  margin-top: auto;   
  align-self: flex-start;
}

.certificate-card a:hover {
  background-color: #083a52;
}



/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .about-content {
        justify-content: center;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
}