/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero .description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.9s both;
}

/* Sections */
section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

/* About Section */
.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #764ba2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease; /* Smooth scaling and border color change */
    animation: pulse 6s ease-in-out infinite; /* Pulsing animation */
}

.profile-img:hover {
    transform: scale(1.03);
    border-color: #667eea;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: justify;
}

/* Skills Section */
.skills {
    background: var(--bg-light);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

/* Projects Section */
.project-header-img {
    height: 200px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: #f1f3f4;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Project Links Container */
.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Base Link Styles */
.project-link, .github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Website Link */
.project-link {
    background-color: var(--primary-color);
    color: white;
}

.project-link:hover {
    background-color: var(--primary-dark);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* GitHub Icon Button */
.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    transition: all 0.3s ease;
}

.icon-link:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.icon-link svg {
    width: 20px;
    height: 20px;
}

/* Certifications Section */
.certifications {
    background: var(--bg-light);
}

.cert-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.cert-issuer {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cert-date {
    color: var(--text-lighter);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--white);
    font-size: 1.2rem;
}

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

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: #333;
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 90vh;
    padding: 15vh 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }
  
  .hero .subtitle {
    font-size: 1.1rem;
  }
  
  .hero .description {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }

  /* Contact Section - Mobile */
  .contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .contact-info {
    width: 100%;
    max-width: 400px;
    text-align: center;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .contact-form {
    width: 100%;
    max-width: 400px;
  }
}
/* Prevent form zoom on mobile */
.form-group input,
.form-group textarea,
.form-group select {
  font-size: 16px !important;
}

/* Better touch feedback */
.btn, .project-card, .skill-card {
  transition: transform 0.2s ease;
}

.btn:active, .project-card:active, .skill-card:active {
  transform: scale(0.96);
}

.social-link:active {
  transform: scale(0.9);
}