:root {
  --primary-blue: #2a6ef0;
  --secondary-blue: #4d8aff;
  --accent-blue: #6aa4ff;
  --dark-blue: #1a3d7a;
  --light-blue: #e6f0ff;
  --white: #ffffff;
  --gray: #f5f7fa;
  --text-dark: #333333;
  --success: #4caf50;
  --error: #f44336;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
  outline: none;
}

body {
  background-color: var(--gray);
  color: var(--text-dark);
  overflow-x: hidden;
}

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

section {
  padding: 80px 0;
}

h1,
h2,
h3 {
  color: var(--dark-blue);
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 500;
  transition: color 0.3s;
}

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

.auth-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-blue);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn:hover {
  background-color: var(--dark-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: white;
}

.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  background-color: var(--primary-blue);
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-blue);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border 0.3s;
}

.form-control:focus {
  border-color: var(--primary-blue);
  outline: none;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
}

.form-footer a {
  color: var(--primary-blue);
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.user-menu {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  width: 200px;
  display: none;
  z-index: 100;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 10px 20px;
  display: block;
  text-decoration: none;
  color: var(--text-dark);
  transition: background-color 0.3s;
}

.dropdown-item:hover {
  background-color: var(--light-blue);
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #555;
}

.highlight {
  color: var(--primary-blue);
}

.cube {
  position: absolute;
  width: 150px;
  height: 150px;
  transform-style: preserve-3d;
  animation: rotate 20s infinite linear;
  right: 15%;
  top: 20%;
  z-index: 1;
}

.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
}

.cube-face:nth-child(1) {
  transform: rotateY(0deg) translateZ(75px);
}
.cube-face:nth-child(2) {
  transform: rotateY(90deg) translateZ(75px);
}
.cube-face:nth-child(3) {
  transform: rotateY(180deg) translateZ(75px);
}
.cube-face:nth-child(4) {
  transform: rotateY(-90deg) translateZ(75px);
}
.cube-face:nth-child(5) {
  transform: rotateX(90deg) translateZ(75px);
}
.cube-face:nth-child(6) {
  transform: rotateX(-90deg) translateZ(75px);
}

@keyframes rotate {
  0% {
    transform: rotateX(0) rotateY(0) rotateZ(0);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

.pyramid {
  position: absolute;
  width: 120px;
  height: 120px;
  transform-style: preserve-3d;
  animation: float 8s infinite ease-in-out;
  left: 10%;
  bottom: 20%;
  z-index: 1;
}

.pyramid-face {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid var(--secondary-blue);
  opacity: 0.7;
}

.pyramid-face:nth-child(1) {
  transform: rotateY(0deg) rotateX(30deg);
}
.pyramid-face:nth-child(2) {
  transform: rotateY(90deg) rotateX(30deg);
}
.pyramid-face:nth-child(3) {
  transform: rotateY(180deg) rotateX(30deg);
}
.pyramid-face:nth-child(4) {
  transform: rotateY(270deg) rotateX(30deg);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotateY(0);
  }
  50% {
    transform: translateY(-20px) rotateY(180deg);
  }
}

.about {
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-image {
  flex: 1;
  position: relative;
}

.floating-card {
  background-color: var(--light-blue);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(15deg);
  transition: transform 0.5s;
}

.floating-card:hover {
  transform: perspective(1000px) rotateY(0);
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.info-item i {
  color: var(--primary-blue);
  margin-right: 15px;
  font-size: 1.2rem;
  width: 25px;
}

.skills {
  background-color: var(--light-blue);
}

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

.skill-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--primary-blue),
    var(--accent-blue)
  );
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-card i {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.skill-card h3 {
  margin-bottom: 15px;
}

.achievements {
  background-color: var(--white);
}

.achievement-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.achievement-card {
  background-color: var(--light-blue);
  border-radius: 15px;
  padding: 30px;
  width: 300px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.achievement-card:hover {
  transform: scale(1.05);
}

.achievement-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.achievement-icon i {
  font-size: 2rem;
  color: white;
}

.contact {
  background-color: var(--light-blue);
  text-align: center;
}

.contact p {
  max-width: 600px;
  margin: 0 auto 30px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-link:hover {
  background-color: var(--dark-blue);
  transform: translateY(-5px);
}

footer {
  background-color: var(--dark-blue);
  color: white;
  text-align: center;
  padding: 30px 0;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content {
    flex-direction: column;
  }

  .cube,
  .pyramid {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .auth-buttons {
    display: none;
  }
}
