* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Consolas', monospace;
}

body {
    background: #1a1a2e;
    color: #e0e0e0;
    line-height: 1.6;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

/* Dark mode toggle */
.toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #16213e;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: #19559e;
    transition: .4s;
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e0e0e0'%3E%3Cpath d='M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1-8.313-12.454z'/%3E%3C/svg%3E");
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
}

input:checked + .slider {
    background: #0f3460;
}

input:checked + .slider:before {
    content: "";
    transform: translateX(26px);
    background: #19559e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm0-2a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM11 1h2v3h-2V1zm0 19h2v3h-2v-3zM3.515 4.929l1.414-1.414L7.05 5.636 5.636 7.05 3.515 4.93zM16.95 18.364l1.414-1.414 2.121 2.121-1.414 1.414-2.121-2.121zm2.121-14.85l1.414 1.415-2.121 2.121-1.414-1.414 2.121-2.121zM5.636 16.95l1.414 1.414-2.121 2.121-1.414-1.414 2.121-2.121zM23 11v2h-3v-2h3zM4 11v2H1v-2h3z'/%3E%3C/svg%3E");
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Light mode */
body.light {
    background: #e0e0e0;
    color: #1a1a2e;
}

body.light .content {
    background: #ffffff;
}

body.light .skill-item {
    background: #0f3460;
    color: #e0e0e0;
}

/* Main content */
.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    perspective: 1000px;
}

.header {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    /* animation: float 3s ease-in-out infinite; */
}

h1 {
    font-size: 2.5em;
    color: #0f3460;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

h1:after {
    content: "🔧";
    position: absolute;
    font-size: 0.8em;
    top: -10px;
    right: -30px;
    animation: spin 4s linear infinite reverse;
}

.content {
    background: #16213e;
    padding: 30px;
    border-radius: 15px;
    transform: rotateX(5deg);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.content:hover {
    transform: rotateX(0deg) scale(1.02);
}

p {
    margin-bottom: 20px;
    font-size: 1.1em;
    position: relative;
}

p:hover:after {
    content: "✨";
    position: absolute;
    right: -20px;
    animation: sparkle 1s infinite;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.skill-item {
    background: #0f3460;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    height: 100%;
}

.skill-item:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 5px 15px rgba(15, 52, 96, 0.4);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes sparkle {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(15, 52, 96, 0.2), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.fixed-height {
    min-height: 1.2em;
    display: block;
    overflow: visible;
    position: relative;
}

.date-container {
    position: fixed;
    top: 10px;
    left: 10px;
    font-family: Consolas, monospace;
    font-size: 14px;
    z-index: 100;
}

body .date-container {
    color: white;
}

body.light .date-container {
    color: black;
}

html {
  font-size: 67%;
}

/* Responsive design */
body {
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  .container {
    width: 90%;
    padding: 0.5rem;
    margin: -50px auto 0;
    max-width: 600px;
  }

  .date-container {
    font-size: 85%;
  }
  
  .content {
    padding: 15px;
    transform: rotateX(5deg);
  }
  
  .content:hover {
    transform: rotateX(0deg) scale(1.02);
  }
  
  .header {
    margin-top: 120px;
    margin-bottom: 20px;
    font-size: 75%;
    animation: float 3s ease-in-out infinite;
  }
  
  h1 {
    font-size: 2.2em;
  }
  
  h1:after {
    content: "";
  }
  
  p {
    margin-bottom: 15px;
    font-size: 1em;
  }
  
  p:hover:after {
    content: "✨";
  }
  
  .skills {
    gap: 10px;
    margin-top: 20px;
  }
  
  .skill-item {
    padding: 8px 15px;
    margin: 0.3rem 0;
  }
  
  .skill-item:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 5px 15px rgba(15, 52, 96, 0.4);
  }
  
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  html {
    font-size: 50%;
  }
  
  .content {
    padding: 12px;
    transform: none;
  }
  
  .content:hover {
    transform: none;
  }
}

/* Make sure images and other elements don't overflow */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

.bio {
    font-style: italic;
    margin-bottom: 25px;
    color: #19559e;
}

body.light .bio {
    color: #0f3460;
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    opacity: 0.8;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: inherit;
    z-index: 100;
}

@media (max-width: 768px) {
    .footer {
        margin-top: 20px;
        padding: 10px;
    }
}