@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

/* Modern Dark Creative CSS for Homepage */
:root {
  --primary-color: #6a11cb;
  --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  --secondary-color: #c5c6c7;
  --accent-color: #66fcf1;
  --background-color: #1f2833;
  --card-background: #0b0c10;
  --text-color: #c5c6c7;
  --link-color: #66fcf1;
  --link-hover-color: #45a29e;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(102, 252, 241, 0.15);
  --card-border: 1px solid rgba(102, 252, 241, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  background-image: radial-gradient(circle at top right, rgba(106, 17, 203, 0.15), transparent 400px), 
                    radial-gradient(circle at bottom left, rgba(37, 117, 252, 0.1), transparent 400px);
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%2366fcf1' fill-opacity='0.05' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

header {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.profile {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(11, 12, 16, 0.6);
  padding: 25px 35px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
  max-width: fit-content;
  margin: 0 auto;
  backdrop-filter: blur(5px);
  border: var(--card-border);
}

.profile::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  transform: rotate(30deg);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(30deg); }
  20%, 100% { transform: translateX(100%) rotate(30deg); }
}

h1 {
  font-size: 1.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  color: white;
  white-space: nowrap;
}

h2 {
  color: var(--accent-color);
  margin: 25px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid;
  border-image: var(--primary-gradient);
  border-image-slice: 1;
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.link-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

a {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  padding: 16px 20px;
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
  box-shadow: var(--box-shadow);
  font-weight: 500;
  border: var(--card-border);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-color);
  transition: width 0.3s ease;
  z-index: -1;
}

a:hover {
  color: var(--card-background);
  transform: translateY(-3px);
  box-shadow: 0 7px 25px rgba(102, 252, 241, 0.25);
}

a:hover::before {
  width: 100%;
}

.section {
  margin-bottom: 50px;
  padding: 20px;
  border-radius: var(--border-radius);
  background: rgba(11, 12, 16, 0.6);
  backdrop-filter: blur(5px);
  border: var(--card-border);
  box-shadow: var(--box-shadow);
  transform: perspective(1000px) rotateX(0deg);
  transition: transform 0.5s ease;
}

.section:hover {
  transform: perspective(1000px) rotateX(2deg);
}

.profile img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(102, 252, 241, 0.3);
  margin-bottom: 12px;
}

footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--secondary-color);
  border-top: var(--card-border);
}

hr {
  border: none;
  height: 10px;
  margin: 5px 0;
  visibility: hidden;
}

/* Back Button Styles */
.back-button {
  position: fixed;
  left: 30px;
  bottom: 30px;
  background-color: var(--card-background);
  color: var(--accent-color);
  border: var(--card-border);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(102, 252, 241, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.back-button:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(102, 252, 241, 0.2);
}

.back-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
  z-index: -1;
}

.back-button:hover {
  color: var(--card-background);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 252, 241, 0.35);
}

.back-button:hover::before {
  width: 100%;
}

.back-icon {
  transition: transform 0.3s ease;
}

.back-button:hover .back-icon {
  transform: translateX(-2px);
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  
  header {
    padding: 20px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 15px;
  }

  .back-button {
    left: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
  }
}
