:root {
  --primary-color: #0a192f;
  --secondary-color: #112240;
  --accent-color: #64ffda;
  --text-color: #ccd6f6;
  --text-secondary: #8892b0;
  --navy-shadow: rgba(2, 12, 27, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
}

.navbar {
  position: fixed;
  width: 100%;
  background-color: rgba(10, 25, 47, 0.95);
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 10px 30px -10px var(--navy-shadow);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.hero {
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  background: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 100px 0;
}

.hero-text {
  z-index: 1;
}

.hero-greeting {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.hero-name {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--text-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-size: 2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
}

.cta-button.primary {
  background: var(--accent-color);
  color: var(--primary-color);
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  background: var(--secondary-color);
}

.social-link:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

.social-link i {
  font-size: 1.2rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.image-frame {
  width: 380px;
  height: 380px;
  position: relative;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(
    45deg,
    var(--accent-color),
    var(--secondary-color)
  );
}

.image-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Adjust this value to control vertical centering */
  transform: scale(1.2); /* Zoom in the image */
  transition: transform 0.5s ease;
}

.image-frame:hover .image-wrapper img {
  transform: scale(1.3); /* Further zoom on hover */
}

.frame-border {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 3px solid var(--accent-color);
  border-radius: 50%;
  opacity: 0.5;
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Social Buttons */
.social-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.social-btn:hover::before {
  opacity: 0.1;
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.social-btn img,
.social-btn svg {
  width: 24px;
  height: 24px;
  z-index: 2;
  transition: transform 0.3s ease;
}

.social-btn:hover img,
.social-btn:hover svg {
  transform: scale(1.1);
}

.social-btn.github img {
  filter: invert(1);
}

.social-btn.email svg,
.social-btn.resume svg {
  color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .social-buttons {
    justify-content: center;
  }

  .image-frame {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 768px) {
  .image-frame {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 480px) {
  .image-frame {
    width: 240px;
    height: 240px;
  }

  .social-btn {
    width: 45px;
    height: 45px;
  }

  .social-btn img,
  .social-btn svg {
    width: 20px;
    height: 20px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 2rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
  text-align: center;
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.education {
  margin-top: 2rem;
}

.edu-item {
  margin-top: 1rem;
}

.edu-item h4 {
  color: var(--accent-color);
}

/* Updated Skills Section Styling */
.skills {
  background: var(--primary-color);
  padding: 4rem 0;
}

.skills .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: var(--secondary-color);
  border-radius: 15px;
  box-shadow: 0 10px 30px -15px var(--navy-shadow);
}

.skill-item {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.skill-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.skill-item:hover img {
  transform: scale(1.1);
}

/* Tooltip styling */
.skill-item::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background: var(--accent-color);
  color: var(--primary-color);
  font-size: 0.8rem;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 1;
}

.skill-item:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Special handling for light icons */
[alt="GitHub"] {
  filter: invert(1);
}

[alt="Express.js"] {
  filter: invert(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .skill-item {
    width: 60px;
    height: 60px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }

  .skill-item {
    width: 50px;
    height: 50px;
    padding: 8px;
  }
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--accent-color);
  box-shadow: 0 10px 30px -15px var(--navy-shadow);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.project-tech {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-details {
  list-style: none;
}

.project-details li {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.project-details li::before {
  content: "→";
  color: var(--accent-color);
  position: absolute;
  left: 0;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--secondary-color);
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 5px var(--accent-color);
  outline: none;
}

.submit-btn {
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

.footer {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.9);
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: 2;
  }

  .contact-form {
    order: 1;
  }
}

/* Animated background for sections */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  z-index: -1;
}

/* Skills icons animation */
.skill-category li i {
  transition: transform 0.3s ease;
}

.skill-category li:hover i {
  transform: scale(1.2);
}

/* Contact form styling update */
.form-group input,
.form-group textarea {
  background: var(--secondary-color);
  border-color: var(--accent-color);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 5px var(--accent-color);
  outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: var(--secondary-color);
    flex-direction: column;
    justify-content: center;
    transition: 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  section {
    padding: 80px 20px;
  }
}

/* About Section Enhancements */
.highlight-text {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.key-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.point {
  background: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.point:hover {
  transform: translateY(-5px);
}

.point i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.achievements {
  margin-top: 3rem;
}

.achievements h3 i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

.achievements ul {
  list-style: none;
  margin-top: 1rem;
}

.achievements li {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.achievements li i {
  color: var(--accent-color);
}

/* Skills Section Enhancements */
.skill-category li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-category li i {
  font-size: 1.2rem;
  width: 25px;
  text-align: center;
}

/* Contact Section Enhancements */
.contact-item {
  background: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-details h4 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.social-links-extended {
  margin-top: 2rem;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-icons a {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* Icon Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

.bounce {
  animation: bounce 2s infinite;
}

.float {
  animation: float 3s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .key-points {
    grid-template-columns: 1fr;
  }

  .contact-item {
    padding: 1rem;
  }
}
