@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap");

/* Add keyframe animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 10px var(--primary)); }
  50% { filter: drop-shadow(0 0 20px var(--accent)); }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

body {
  cursor: none;
  background-color: var(--background);
  color: var(--text-primary);
}

/* Base responsive styles */
:root {
  --primary: #00E5FF;
  --primary-dark: #00B8D4;
  --secondary: #222831;
  --accent: #1DE9B6;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --background: #1A1F25;
  --card-bg: rgba(57, 62, 70, 0.5);
  --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --shadow-color: rgba(0, 229, 255, 0.2);
  --container-padding: 2rem;
  --header-height: 80px;
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --header-height: 60px;
  }
}

/* Enhanced responsive header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 var(--container-padding);
  position: relative;
}

header img {
  height: var(--header-height);
  width: auto;
}

/* Mobile menu styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 100;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.navigation ul {
  display: flex;
  list-style-type: none;
  gap: 2rem;
}

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

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

hr {
  opacity: 10%;
}

/* Enhanced hero section responsiveness */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5rem auto;
  max-width: 1200px;
  padding: 0 var(--container-padding);
  gap: 2rem;
}

.arrow {
  position: absolute;
  transform: translateX(-12rem) translateY(1.5rem);
  animation: bounce 2s infinite;
  z-index: 2;
}

.heroSub {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: slideInLeft 1s ease-out;
}

.name {
  font-size: 3rem;
  color: #eeeeee;
  position: relative;
  animation: fadeIn 1s ease-out;
}

.title {
  font-size: 4rem;
  color: var(--primary);
  position: relative;
  animation: fadeIn 1s ease-out;
  text-shadow: 0 0 20px var(--shadow-color);
}

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

.hireMe {
  background: var(--gradient-1);
  color: var(--text-primary);
  border-radius: 24px;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.cv {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border-radius: 24px;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

/* Enhanced about section responsiveness */
.aboutMe {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5rem auto;
  max-width: 1200px;
  padding: 0 var(--container-padding);
  gap: 4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.aboutMe.visible {
  opacity: 1;
  transform: translateY(0);
}

.textContainer {
  flex: 1.5;
  display: flex;
  flex-direction: column;
}

.textTitle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 2rem;
}

.aboutName {
  color: #eeeeee;
}

.aboutTitle {
  color: var(--primary);
}

.aboutMeParagraf {
  text-align: justify;
  color: var(--text-secondary);
}

#translateButton {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 16px;
}

#translateButton:hover {
  background-color: #0056b3;
}

.works {
  background-image: url("assets/svg/background.svg");
  padding: 10rem 10rem;
  margin: 5rem 0;
}

.worksContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
  margin: 5rem auto;
  max-width: 1200px;
}

.projectTitle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  font-size: 2rem;
}

.works ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0;
  list-style-type: none;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.works li {
  border-radius: 16px;
  background-color: var(--card-bg);
  backdrop-filter: blur(4px);
  padding: 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.works li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.works li:hover::before {
  border-color: var(--primary);
  transform: scale(0.98);
}

.works li a {
  text-decoration: none;
  color: #eeeeee;
  display: block;
}

.works li img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  transition: all 0.5s ease;
}

.work-description {
  padding: 1rem 0.5rem;
  text-align: center;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.work-description h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.work-description h3::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background-color: #00adb5;
  transition: all 0.3s ease;
}

.works li:hover h3::after {
  width: 100%;
  left: 0;
}

.work-description p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.works li:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px var(--shadow-color);
  background-color: rgba(57, 62, 70, 0.8);
  border-color: var(--primary);
}

.works li:hover img {
  transform: scale(1.05);
}

.works li:hover .work-description {
  transform: translateY(-5px);
}

.works li:hover p {
  opacity: 1;
}

/* Enhanced contact section responsiveness */
.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 2rem var(--container-padding);
}

.contactTitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 2rem;
}

.contact h3,
.contact a {
  color: #eeeeee;
  text-decoration: none;
}

.emailAndPhone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.3s ease;
}

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

.socialMedia {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.socialMedia a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  background-color: rgba(57, 62, 70, 0.5);
  backdrop-filter: blur(4px);
  padding: 1rem;
  transition: transform 0.3s ease;
}

.socialMedia a:hover {
  background-color: rgba(0, 173, 181, 0.5);
  transform: translateY(-5px);
}

.socialMedia img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.socialMedia a:hover img {
  transform: rotate(360deg);
}

footer {
  color: #eeeeee;
  padding: 2rem;
  text-align: center;
}

.navigation ul li {
  position: relative;
  transition: transform 0.3s ease;
}

.navigation ul li::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #00adb5;
  transition: width 0.3s ease;
}

.navigation ul li:hover::after {
  width: 100%;
}

.navigation ul li:hover {
  transform: translateY(-2px);
}

.heroImg {
  flex: 1;
  max-width: 500px;
  height: auto;
  animation: slideInRight 1s ease-out;
  filter: drop-shadow(0 0 20px var(--shadow-color));
}

.heroBtns a {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.heroBtns a:hover {
  transform: translateY(-3px);
}

.hireMe:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.cv:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.light {
  animation: glow 3s infinite;
  filter: drop-shadow(0 0 10px var(--primary));
}

/* Responsive typography */
@media (max-width: 1024px) {
  .name {
    font-size: 2.5rem;
  }
  
  .title {
    font-size: 3rem;
  }
  
  .aboutMeParagraf {
    font-size: 0.95rem;
  }
}

/* Tablet styles */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    margin: 3rem auto;
  }
  
  .heroSub {
    align-items: center;
  }
  
  .heroBtns {
    justify-content: center;
  }
  
  .aboutMe {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .textTitle {
    justify-content: center;
  }
  
  .contact {
    gap: 2rem;
  }
  
  .arrow {
    display: none;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(34, 40, 49, 0.95);
    backdrop-filter: blur(10px);
    padding: 80px 2rem;
    transition: right 0.3s ease;
    z-index: 99;
  }
  
  .navigation.active {
    right: 0;
  }
  
  .navigation ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .name {
    font-size: 2rem;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  .heroImg {
    width: 100%;
  }
  
  .aboutMeImg {
    width: 100%;
  }
  
  .contact {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .emailAndPhone {
    font-size: 0.9rem;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .heroBtns {
    flex-direction: column;
    gap: 1rem;
  }
  
  .name {
    font-size: 1.8rem;
  }
  
  .title {
    font-size: 2.2rem;
  }
  
  .aboutMeParagraf {
    font-size: 0.9rem;
  }
}

/* Custom Cursor */
body {
  cursor: none;
  background-color: #222831;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.2s;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s;
}

/* Cursor hover effect */
.cursor-hover {
  transform: scale(1.5);
  background-color: rgba(0, 173, 181, 0.5);
}

.outline-hover {
  transform: scale(1.5);
  border-color: rgba(0, 173, 181, 0.5);
}

/* Additional hover effects for links and buttons */
a, button, .works li {
  cursor: none;
}

a:hover ~ .cursor-dot,
button:hover ~ .cursor-dot,
.works li:hover ~ .cursor-dot {
  transform: scale(2);
}

@media (max-width: 1400px) {
  .arrow {
    transform: translateX(-10rem) translateY(1.5rem);
  }
}

@media (max-width: 1200px) {
  .arrow {
    transform: translateX(-8rem) translateY(1.5rem);
  }
}
