/* General Styling & Variables */
:root {
  --primary-color: #00bfff; /* Deep Sky Blue */
  --background-color: #0d1117;
  --card-background: #161b22;
  --text-color: #c9d1d9;
  --text-secondary: #8b949e;
  --border-color: #30363d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 6rem 5%;
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
}

h1,
h2,
h3 {
  color: #fff;
  line-height: 1.2;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
  border: 2px solid var(--primary-color);
}

.btn:hover {
  background-color: #00aeee;
  border-color: #00aeee;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.tags span {
  background-color: #00bfff20;
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Header & Navigation */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 5%;
  border-bottom: 1px solid var(--border-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 4rem;
  background: linear-gradient(90deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image {
  flex-basis: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary-color);
  box-shadow: 0 0 40px rgba(0, 191, 255, 0.5);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-card h3 {
  margin-bottom: 0.5rem;
}

.skill-card p {
  color: var(--text-secondary);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #333;
}

.project-card-content {
  padding: 1.5rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.project-header h3 {
  margin: 0;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-links a svg {
  width: 24px;
  height: 24px;
  fill: var(--text-secondary);
  transition: fill 0.3s ease;
}

.project-links a:hover svg {
  fill: var(--primary-color);
}

.project-card-content p {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.project-card-content .tags {
  margin-top: 1.5rem;
}

/* Education Section */
.education-section {
  background-color: var(--background-color);
  padding: 6rem 5%;
  text-align: center;
}

.education-section h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.education-section .section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1rem;
}

.education-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.education-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
}

.education-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.education-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Certifications Section */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.cert-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
}

.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cert-card:hover img {
  transform: scale(1.05);
}

/* Contact Section */
.contact-container {
  display: flex;
  gap: 3rem;
  background: var(--card-background);
  padding: 3rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.contact-info,
.contact-form {
  flex: 1;
}

.contact-info h3,
.contact-form h3 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-color);
}

.contact-form button {
  width: 100%;
  border: none;
  cursor: pointer;
}

/* Footer */
footer {
  padding: 2rem 5%;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.social-links {
  margin-bottom: 1rem;
}

.social-links a {
  margin: 0 1rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  nav ul,
  nav .btn {
    display: none;
  }
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 8rem;
  }
  .hero-text h1 {
    font-size: 3rem;
  }
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-image img {
    width: 280px;
    height: 280px;
  }
  h2 {
    font-size: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
