* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1e3a5f;
  --secondary-color: #2d5a8c;
  --accent-color: #00a8e8;
  --text-light: #f0f0f0;
  --text-dark: #1a1a1a;
  --border-color: #e0e0e0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: #f5f5f5;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  padding: 4rem 0;
  text-align: center;
}

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

.profile-photo {
  width: 250px;
  height: 250px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0;
}

.subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
}

.tagline {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin: 0;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-dark);
  padding: 0.8rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.cta-button:hover {
  background-color: #0089b3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 168, 232, 0.4);
}

/* About Section */
.about {
  padding: 4rem 0;
  background-color: white;
}

.about h2,
.skills h2,
.projects h2,
.websites h2,
.experience h2,
.education h2,
.contact h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #555;
}

/* Skills Section */
.skills {
  padding: 4rem 0;
  background-color: #f9f9f9;
}

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

.skill-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 168, 232, 0.2);
}

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

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

/* Projects Section */
.projects {
  padding: 4rem 0;
  background-color: white;
}

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

.project-card {
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateX(5px);
}

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

.project-type {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.tech-stack {
  color: #777;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 1rem;
}

/* Websites Section */
.websites {
  padding: 4rem 0;
  background-color: #f9f9f9;
}

.section-subtitle {
  color: #666;
  margin-bottom: 2rem;
}

.websites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.website-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.website-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

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

.website-item p {
  color: #666;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  word-break: break-all;
}

.website-item a {
  color: var(--accent-color);
  text-decoration: none;
}

.website-item a:hover {
  text-decoration: underline;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  padding: 2rem;
}

.empty-state p {
  color: #999;
  margin-bottom: 0.5rem;
}

.empty-state small {
  color: #bbb;
}

.add-website-form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.add-website-form h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

#websiteForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#websiteForm input,
#websiteForm textarea {
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}

#websiteForm input:focus,
#websiteForm textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 5px rgba(0, 168, 232, 0.3);
}

.btn-add {
  background-color: var(--accent-color);
  color: var(--text-dark);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-add:hover {
  background-color: #0089b3;
  transform: translateY(-2px);
}

.btn-delete {
  background-color: #ff4757;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
}

.btn-delete:hover {
  background-color: #ff3838;
}

/* Experience Section */
.experience {
  padding: 4rem 0;
  background-color: white;
}

.experience-item {
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  margin-bottom: 2rem;
}

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

.company {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.period {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Education Section */
.education {
  padding: 4rem 0;
  background-color: #f9f9f9;
}

.education-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  margin-bottom: 1.5rem;
}

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

.school {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

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

.cert-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cert-card h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.cert-card p {
  color: #666;
  margin: 0.3rem 0;
}

.cert-card .date {
  color: #999;
  font-size: 0.85rem;
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  background-color: white;
}

.contact-content {
  max-width: 600px;
}

.contact-info {
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 8px;
}

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

.contact-info p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

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

.contact-info a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero-content {
    padding: 0 20px;
  }

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

  .hero h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

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

  #websiteForm {
    flex-direction: column;
  }

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