/* ====== GLOBAL STYLES ====== */
:root {
  --primary: #0077b6;
  --primary-dark: #03045e;
  --secondary: #00b4d8;
  --light: #caf0f8;
  --lighter: #bde0fe;
  --lightest: #a2d2ff;
  --accent: #90e0ef;
  --text: #333;
  --white: #fff;
  --shadow: rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: "Comic Neue", cursive;
  background: linear-gradient(
    135deg,
    var(--lightest),
    var(--lighter),
    var(--light)
  );
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  position: relative;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ====== DESKTOP VIEW ====== */
.desktop-view {
  display: block;
  height: 100vh;
}

.desktop {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px;
  height: calc(100vh - 40px);
  position: relative;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

.desktop-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.desktop-icon {
  width: 100px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
  position: relative;
}

.desktop-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

.desktop-icon i {
  font-size: 60px;
  color: var(--primary);
  text-shadow: 3px 3px 0 var(--accent), 6px 6px 0 rgba(0, 0, 0, 0.2);
  filter: drop-shadow(0 5px 5px var(--shadow));
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-icon-label {
  color: var(--text);
  font-size: 14px;
  margin-top: 5px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.7);
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 0 3px 0 var(--accent);
  display: inline-block;
}

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), var(--light));
  border-top: 3px solid var(--primary);
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  box-shadow: 0 -5px 15px var(--shadow);
  z-index: 100;
}

.start-button {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  font-family: "Fredoka One", cursive;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--white);
  box-shadow: 0 4px 0 var(--primary-dark);
  transition: all 0.2s;
}

.start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--primary-dark);
}

.start-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--primary-dark);
}

.start-button i {
  margin-right: 8px;
  font-size: 20px;
}

.taskbar-apps {
  display: flex;
  flex-grow: 1;
  margin-left: 15px;
  overflow-x: auto;
  scrollbar-width: none;
}

.taskbar-apps::-webkit-scrollbar {
  display: none;
}

.taskbar-app {
  background: linear-gradient(45deg, var(--light), var(--accent));
  border: none;
  border-radius: 15px;
  padding: 5px 12px;
  margin-right: 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--text);
  font-weight: bold;
  box-shadow: 0 3px 0 var(--primary);
  transition: all 0.2s;
  white-space: nowrap;
}

.taskbar-app.active {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 3px 0 var(--primary-dark);
}

.taskbar-app:hover {
  transform: translateY(-2px);
}

.taskbar-app i {
  margin-right: 5px;
}

.clock {
  background: linear-gradient(45deg, var(--lightest), var(--lighter));
  border-radius: 15px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: bold;
  color: var(--text);
  box-shadow: 0 3px 0 var(--primary);
  min-width: 70px;
  text-align: center;
}

/* Music Button */
.music-button {
  background: linear-gradient(45deg, #a2d2ff, #bde0fe);
  border: none;
  border-radius: 15px;
  padding: 5px 10px;
  margin-right: 10px;
  font-size: 18px;
  cursor: pointer;
  color: #0077b6;
  box-shadow: 0 3px 0 #0077b6;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #0077b6;
}

.music-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #0077b6;
}

/* ====== WINDOWS ====== */
.window {
  position: absolute;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 25px var(--shadow), 0 0 0 4px var(--primary);
  min-width: 320px;
  min-height: 250px;
  display: none;
  z-index: 1;
  overflow: hidden;
  resize: both;
}

.window.active {
  z-index: 10;
}

.window-header {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  user-select: none;
  border-radius: 20px 20px 0 0;
  font-family: "Fredoka One", cursive;
  font-size: 18px;
  box-shadow: 0 3px 0 var(--primary-dark);
}

.window-title {
  display: flex;
  align-items: center;
  text-shadow: 1px 1px 0 var(--primary-dark);
}

.window-title i {
  margin-right: 10px;
  font-size: 22px;
  background: var(--white);
  color: var(--primary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 var(--primary-dark);
}

.window-controls {
  display: flex;
}

.window-control {
  width: 30px;
  height: 30px;
  margin-left: 8px;
  background: var(--white);
  border-radius: 50%;
  font-size: 16px;
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--primary-dark);
  transition: all 0.2s;
}

.window-control:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--primary-dark);
}

.window-control:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--primary-dark);
}

.window-content {
  padding: 20px;
  background: var(--white);
  height: calc(100% - 54px);
  overflow-y: auto;
  border-radius: 0 0 20px 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2390e0ef' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

/* ====== DECORATIVE ELEMENTS ====== */
.decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.cloud {
  background: var(--white);
  border-radius: 50%;
  opacity: 0.8;
  animation: float 20s infinite ease-in-out;
}

.cloud:before,
.cloud:after {
  content: "";
  position: absolute;
  background: var(--white);
  border-radius: 50%;
}

.cloud1 {
  width: 80px;
  height: 40px;
  top: 15%;
  left: 10%;
  animation-duration: 25s;
}

.cloud1:before {
  width: 50px;
  height: 50px;
  top: -25px;
  left: 10px;
}

.cloud1:after {
  width: 60px;
  height: 40px;
  top: -15px;
  right: 10px;
}

.cloud2 {
  width: 60px;
  height: 30px;
  top: 30%;
  right: 15%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.cloud2:before {
  width: 40px;
  height: 40px;
  top: -20px;
  left: 8px;
}

.cloud2:after {
  width: 50px;
  height: 30px;
  top: -10px;
  right: 8px;
}

.cloud3 {
  width: 100px;
  height: 50px;
  top: 10%;
  right: 30%;
  animation-duration: 35s;
  animation-delay: -10s;
}

.cloud3:before {
  width: 60px;
  height: 60px;
  top: -30px;
  left: 15px;
}

.cloud3:after {
  width: 70px;
  height: 50px;
  top: -20px;
  right: 15px;
}

.cloud4 {
  width: 70px;
  height: 35px;
  top: 50%;
  left: 20%;
  animation-duration: 28s;
  animation-delay: -15s;
}

.cloud4:before {
  width: 45px;
  height: 45px;
  top: -22px;
  left: 10px;
}

.cloud4:after {
  width: 55px;
  height: 35px;
  top: -15px;
  right: 10px;
}

.cloud5 {
  width: 90px;
  height: 45px;
  top: 60%;
  right: 25%;
  animation-duration: 32s;
  animation-delay: -20s;
}

.cloud5:before {
  width: 55px;
  height: 55px;
  top: -27px;
  left: 12px;
}

.cloud5:after {
  width: 65px;
  height: 45px;
  top: -18px;
  right: 12px;
}

.star {
  color: #ffd166;
  font-size: 30px;
  animation: twinkle 3s infinite alternate;
  filter: drop-shadow(0 0 5px rgba(255, 209, 102, 0.7));
}

.star1 {
  top: 10%;
  left: 25%;
  animation-delay: 0.5s;
}

.star2 {
  top: 20%;
  right: 20%;
  animation-delay: 1s;
}

.star3 {
  top: 40%;
  left: 15%;
  animation-delay: 1.5s;
}

.star4 {
  top: 15%;
  right: 40%;
  animation-delay: 2s;
}

.star5 {
  top: 50%;
  right: 10%;
  animation-delay: 2.5s;
}

.star6 {
  top: 30%;
  left: 40%;
  animation-delay: 3s;
}

.kawaii-face {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 5px 15px var(--shadow);
  animation: bounce 5s infinite ease-in-out;
}

.kawaii-face:before {
  content: "✧";
  color: var(--primary);
}

.face1 {
  top: 20%;
  right: 30%;
}

.face2 {
  bottom: 25%;
  left: 15%;
  animation-delay: -2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  25% {
    transform: translateX(20px) translateY(-10px);
  }

  50% {
    transform: translateX(0) translateY(-20px);
  }

  75% {
    transform: translateX(-20px) translateY(-10px);
  }
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* ====== MOBILE VIEW ====== */
.mobile-view {
  display: none;
  height: 100vh;
}

.mobile-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    135deg,
    var(--lightest),
    var(--lighter),
    var(--light)
  );
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  overflow: hidden;
}

.mobile-header {
  background: linear-gradient(to bottom, var(--accent), var(--light));
  padding: 15px;
  text-align: center;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 3px 10px var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-header h1 {
  font-family: "Fredoka One", cursive;
  color: var(--primary);
  font-size: 24px;
  text-shadow: 1px 1px 0 var(--white);
  flex-grow: 1;
}

.mobile-music-button {
  background: linear-gradient(45deg, var(--lightest), var(--lighter));
  border: none;
  border-radius: 15px;
  padding: 8px;
  font-size: 20px;
  cursor: pointer;
  color: var(--primary);
  box-shadow: 0 3px 0 var(--primary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.mobile-music-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--primary);
}

.mobile-music-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--primary);
}

.mobile-datetime {
  text-align: center;
  padding: 15px;
  color: var(--primary-dark);
  font-family: "Fredoka One", cursive;
}

.mobile-time {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 5px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.mobile-date {
  font-size: 18px;
  opacity: 0.8;
}

.desktop-datetime {
  text-align: center;
  padding: 15px;
  color: var(--primary-dark);
  font-family: "Fredoka One", cursive;
  margin-bottom: 20px;
}

.desktop-time {
  font-size: 100px;
  font-weight: bold;
  margin-bottom: 5px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.desktop-date {
  font-size: 18px;
  opacity: 0.8;
}

.mobile-apps {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 50%;
}

.mobile-app-icon {
  width: 100px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.mobile-app-icon:active {
  transform: scale(0.95);
}

.mobile-app-icon i {
  font-size: 55px;
  color: var(--primary);
  text-shadow: 3px 3px 0 var(--accent), 6px 6px 0 rgba(0, 0, 0, 0.2);
  filter: drop-shadow(0 5px 5px var(--shadow));
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-app-label {
  color: var(--text);
  font-size: 14px;
  margin-top: 8px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.7);
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 0 3px 0 var(--accent);
  display: inline-block;
}

.mobile-app-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 1000;
  display: none;
  flex-direction: column;
}

.mobile-app-header {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 3px 10px var(--shadow);
}

.mobile-back-button {
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  margin-right: 15px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.2s;
}

.mobile-back-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-app-title {
  font-family: "Fredoka One", cursive;
  font-size: 20px;
  text-shadow: 1px 1px 0 var(--primary-dark);
}

.mobile-app-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2390e0ef' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

/* ====== SHARED CONTENT STYLES ====== */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.profile-picture {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--lightest), var(--lighter));
  padding: 5px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px var(--shadow);
}

.profile-picture img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
}

.profile-name {
  font-family: "Fredoka One", cursive;
  font-size: 22px;
  color: var(--primary);
  text-shadow: 1px 1px 0 var(--accent);
}

.window-content h2,
.mobile-app-content h2 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 24px;
  font-family: "Fredoka One", cursive;
  text-shadow: 1px 1px 0 var(--accent);
}

.window-content p,
.mobile-app-content p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6;
}

.window-content h3,
.mobile-app-content h3 {
  color: var(--primary);
  margin: 20px 0 10px;
  font-size: 20px;
  font-family: "Fredoka One", cursive;
  text-shadow: 1px 1px 0 var(--accent);
}

.simple-list {
  list-style: none;
  margin: 10px 0 20px;
}

.simple-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.simple-list li:before {
  content: "✨";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.info-box {
  background: linear-gradient(45deg, var(--lightest), var(--lighter));
  border-radius: 15px;
  padding: 15px;
  margin: 15px 0;
  box-shadow: 0 3px 0 var(--primary);
}

.info-box h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-family: "Fredoka One", cursive;
  font-size: 18px;
}

.info-box p {
  margin-bottom: 5px;
}

.highlight {
  background: linear-gradient(45deg, #ffafcc, #ff5e78);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
  display: inline-block;
}

.skills-list,
.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.skill-tag,
.tool-tag {
  background: linear-gradient(45deg, var(--lightest), var(--lighter));
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  color: var(--text);
  box-shadow: 0 3px 0 var(--primary);
  display: inline-block;
  transition: all 0.2s;
}

.skill-tag:hover,
.tool-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--primary);
}

.project-showcase {
  margin-top: 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.project-card {
  background: linear-gradient(45deg, var(--lightest), var(--lighter));
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 0 var(--primary);
  transition: all 0.2s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 0 var(--primary);
}

.project-image {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.project-info {
  padding: 15px;
}

.project-title {
  font-family: "Fredoka One", cursive;
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 5px;
}

.project-description {
  font-size: 14px;
  margin-bottom: 10px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.project-tag {
  background: rgba(255, 255, 255, 0.7);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--primary);
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 0 var(--accent);
}

.faq-question {
  background: linear-gradient(45deg, var(--lightest), var(--lighter));
  padding: 12px 15px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:after {
  content: "+";
  font-size: 20px;
}

.faq-answer {
  background: #f8f9fa;
  padding: 15px;
  display: none;
}

.faq-item.active .faq-question:after {
  content: "-";
}

.faq-item.active .faq-answer {
  display: block;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.link-card {
  background: linear-gradient(45deg, var(--lightest), var(--lighter));
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 3px 0 var(--primary);
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 0 var(--primary);
}

.link-card i {
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--primary);
}

.link-card h4 {
  margin-bottom: 5px;
  font-family: "Fredoka One", cursive;
}

/* ====== RESIZE HANDLE ====== */
.resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  cursor: nwse-resize;
  z-index: 5;
}

.resize-handle:before {
  content: "";
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 15px;
  height: 15px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* ====== SCROLLBAR STYLES ====== */
.window-content::-webkit-scrollbar,
.mobile-app-content::-webkit-scrollbar {
  width: 8px;
}

.window-content::-webkit-scrollbar-track,
.mobile-app-content::-webkit-scrollbar-track {
  background: var(--light);
  border-radius: 10px;
}

.window-content::-webkit-scrollbar-thumb,
.mobile-app-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.window-content::-webkit-scrollbar-thumb:hover,
.mobile-app-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ====== MOBILE-SPECIFIC FIXES ====== */
@media (max-width: 768px) {
  .mobile-app-content .faq-item {
    margin: 0 auto 15px;
    max-width: 90%;
  }

  .mobile-app-content .faq-question {
    padding: 12px 15px;
    font-size: 16px;
  }

  .mobile-app-content .faq-answer {
    padding: 12px 15px;
    font-size: 14px;
  }

  .mobile-app-content .faq-question:after {
    font-size: 18px;
  }
}

/* ====== MEDIA QUERIES ====== */
@media (max-width: 768px) {
  .desktop-view {
    display: none;
  }

  .mobile-view {
    display: block;
  }
}
