/* Modern color scheme and variables */
:root {
  --primary-color: #4a5568;
  --secondary-color: #2d3748;
  --background-color: #f7fafc;
  --text-color: #2d3748;
  --accent-color: #718096;
  --white: #ffffff;
  --light-grey: #edf2f7;
  --border-color: #e2e8f0;
  --icon-color: #60a5fa;
  --button-color: #4f8ff7;
  --button-hover: #2563eb;
  --button-active: #1d4ed8;
  --button-shadow: rgba(79, 143, 247, 0.25);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

header {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease-out;
}

section {
  background: var(--white);
  padding: 2rem;
  margin: 2rem auto;
  width: 90%;
  max-width: 800px;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

section:hover {
  transform: translateY(-5px);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  section {
    width: 95%;
    padding: 1.5rem;
  }
}

/* Animation for page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.subtitle {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.profile-image {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  margin: 2rem auto;
}

/* About Preview Section */
.about-preview {
  text-align: center;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--button-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--button-shadow);
}

.cta-button:active {
  background: var(--button-active);
  transform: translateY(0);
  box-shadow: 0 2px 4px var(--button-shadow);
}

.cta-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out;
}

.cta-button:hover::after {
  width: 300px;
  height: 300px;
}

/* Skills Section */
.skills {
  text-align: center;
  padding: 3rem 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-item {
  padding: 2rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  text-align: left;
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-item i {
  font-size: 2.5rem;
  color: var(--icon-color);
  margin-bottom: 1rem;
  text-align: center;
  display: block;
}

.skill-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.25rem;
}

.skill-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-item ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 0.95rem;
}

.skill-item ul li:last-child {
  border-bottom: none;
}

.skill-item ul li:before {
  content: "•";
  color: var(--icon-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Social Links */
.social-links {
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--icon-color);
  font-size: 1.5rem;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary-color);
}

/* Active Navigation Link */
nav ul li a.active {
  background: var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .profile-image {
    width: 200px;
    height: 200px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .skill-item {
    padding: 1.5rem;
  }
}

/* Bio Section */
.bio {
  background: var(--white);
  padding: 3rem 2rem;
  margin: 2rem auto;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bio-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.bio-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-color);
}

/* Experience Section */
.experience {
  padding: 3rem 2rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.experience-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-5px);
}

.experience-item i {
  font-size: 2.5rem;
  color: var(--icon-color);
  margin-bottom: 1rem;
}

.experience-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.experience-item ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.experience-item ul li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.4;
}

.experience-item ul li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Goals Section */
.goals {
  padding: 3rem 2rem;
  background: var(--background-color);
}

.goals-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.goal-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.goal-item:hover {
  transform: translateY(-5px);
}

.goal-item i {
  font-size: 2.5rem;
  color: var(--icon-color);
  margin-bottom: 1rem;
}

.goal-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.goal-item p {
  color: var(--text-color);
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .bio-content {
    padding: 0 1rem;
  }

  .experience-grid,
  .goals-content {
    grid-template-columns: 1fr;
  }

  .experience-item,
  .goal-item {
    padding: 1.5rem;
  }
}

/* Certifications Section */
.certifications {
  padding: 3rem 2rem;
  background: var(--background-color);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cert-category {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cert-category h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cert-category h3 i {
  font-size: 1.5rem;
}

.cert-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-item {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--background-color);
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.cert-item:hover {
  transform: translateX(5px);
}

.cert-name {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-category {
    padding: 1.5rem;
  }

  .cert-item {
    padding: 0.75rem;
  }
}

/* Interests Section */
.interests {
  padding: 3rem 2rem;
  background: var(--white);
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.interest-item {
  background: var(--background-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.interest-item:hover {
  transform: translateY(-5px);
}

.interest-item i {
  font-size: 2.5rem;
  color: var(--icon-color);
  margin-bottom: 1rem;
}

.interest-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.interest-item p {
  color: var(--text-color);
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .interests-grid {
    grid-template-columns: 1fr;
  }

  .interest-item {
    padding: 1.5rem;
  }
}

/* Contact Page Styles */
.contact-info {
  padding: 3rem 2rem;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item {
  text-align: center;
  padding: 2rem;
  background: var(--light-grey);
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-item i {
  font-size: 2.5rem;
  color: var(--icon-color);
  margin-bottom: 1rem;
}

.contact-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary-color);
}

/* Contact Form */
.contact-form {
  padding: 3rem 2rem;
  background: var(--background-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: var(--light-grey);
}

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

.submit-button {
  background: var(--button-color);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.submit-button:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--button-shadow);
}

.submit-button:active {
  background: var(--button-active);
  transform: translateY(0);
  box-shadow: 0 2px 4px var(--button-shadow);
}

.submit-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out;
}

.submit-button:hover::after {
  width: 300px;
  height: 300px;
}

.submit-button:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-button:disabled:hover {
  background-color: #9ca3af;
  transform: none;
  box-shadow: none;
}

.submit-button:disabled::after {
  display: none;
}

/* Social Connect Section */
.social-connect {
  padding: 3rem 2rem;
  background: var(--white);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: var(--light-grey);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.social-item:hover {
  transform: translateY(-5px);
  color: var(--primary-color);
}

.social-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--icon-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .contact-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .contact-item,
  .social-item {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.5rem;
  }
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

.success-message {
  background-color: #10b981;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  text-align: center;
  animation: fadeIn 0.3s ease-in;
}

.form-group input:focus:not(.error),
.form-group textarea:focus:not(.error) {
  border-color: var(--primary-color);
  background-color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

/* Form Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Focus States */
.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
