:root {
  --primary-color: #0a192f;
  --secondary-color: #172a45;
  --accent-color: #6e40c9;
  --accent-hover: #5d34b0;
  --text-color: #8892b0;
  --text-light: #ccd6f6;
  --white: #ffffff;
  --transition: all 0.3s ease-in-out;
  --border-radius: 8px;
  --box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

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

/* Gotham Narrow Font Face Definitions */
@font-face {
  font-family: "Gotham Narrow";
  src: url("./fonts/GothamNarrow-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Narrow";
  src: url("./fonts/GothamNarrow-Medium.otf") format("opentype");
  font-weight: 500;
  /* Medium weight */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Narrow";
  src: url("./fonts/GothamNarrow-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Gotham Narrow", Arial, sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-light);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.highlight {
  color: var(--accent-color);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.dark-section {
  background-color: var(--secondary-color);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.primary-btn {
  background-color: var(--accent-color);
  color: var(--white);
  border: 1px solid var(--accent-color);
}

.primary-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.secondary-btn {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.secondary-btn:hover {
  background-color: rgba(110, 64, 201, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.outline-btn {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.outline-btn:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  background-color: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
}

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

.nav-list li a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-list li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-list li a:hover::after {
  width: 100%;
}

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

.resume-btn {
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  color: var(--accent-color);
  transition: var(--transition);
}

.resume-btn:hover {
  background-color: rgba(110, 64, 201, 0.1);
  transform: translateY(-2px);
}

.menu-icon {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.greeting {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-description {
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.profile-image:hover {
  transform: translateY(-10px);
}

/* About Section */
.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-content {
  flex: 1;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.work-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Skills Section */
.skills-section {
  margin-top: 2rem;
}

.skills-title {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1.2rem;
  text-align: center;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.skill-item {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(110, 64, 201, 0.1);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--accent-color);
  transition: var(--transition);
  position: relative;
  cursor: default;
}

.skill-item:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(110, 64, 201, 0.4);
}

.skill-item::after {
  content: attr(title);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0;
  transition: var(--transition);
  white-space: nowrap;
  pointer-events: none;
}

.skill-item:hover::after {
  opacity: 1;
  bottom: -40px;
}

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

.project-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  height: 400px;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 25, 47, 0.9);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.more-projects {
  text-align: center;
  margin-top: 3rem;
}

/* Contact Section */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-description {
  margin-bottom: 2rem;
}

.contact-methods {
  margin-bottom: 3rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--text-light);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-5px);
}

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

.blog-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  background-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  /* height: 400px; */
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h4 {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.blog-content p {
  font-size: 0.9rem;
  color: var(--text-color);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.more-blogs {
  text-align: center;
  margin-top: 3rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(110, 64, 201, 0.2);
  padding: 2rem 0;
  background-color: var(--primary-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.copyright {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--text-color);
  transition: var(--transition);
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
  }

  .hero-section .container {
    flex-direction: column;
  }

  .hero-content {
    order: 2;
    text-align: center;
    margin-top: 2rem;
    max-width: 100%;
  }

  .cta-buttons {
    justify-content: center;
  }

  .hero-image {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--secondary-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .nav-list.active {
    right: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .skills-list {
    gap: 1rem;
  }

  .skill-item {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.2rem;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .skill-item {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }

  .skill-item::after {
    font-size: 0.7rem;
    bottom: -25px;
  }

  .skill-item:hover::after {
    bottom: -30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Custom Icons for Skills */
.custom-icon {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(39%) sepia(57%) saturate(1237%)
    hue-rotate(230deg) brightness(90%) contrast(85%);
  transition: var(--transition);
}

.skill-item:hover .custom-icon {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%)
    hue-rotate(93deg) brightness(103%) contrast(103%);
}

/* Adjust icon sizes for smaller screens */
@media (max-width: 768px) {
  .custom-icon {
    width: 50%;
    height: 50%;
  }
}

@media (max-width: 480px) {
  .custom-icon {
    width: 45%;
    height: 45%;
  }
}
