/* Combined CSS from styles.css, meteor.css, star-cursor.css, animations.css */
:root {
    --background: #f5f5f5;
    --foreground: #333333;
    --muted-foreground: #6b7280;
    --border: #e5e7eb;
    --accent: #0077b5;
    --radius: 0.5rem;
}
.intro-logo {
    display: block;
    margin: 0 auto 20px; /* Centers the logo and adds space below */
    width: 150px; /* Adjust size as needed */
    height: auto;
    filter: brightness(0) invert(1); /* Changes the logo color to white */
}
.dark {
    --background: #111827;
    --foreground: #f3f4f6;
    --muted-foreground: #9ca3af;
    --border: #374151;
    --accent: #3b82f6;
    background-color: #0a0e17; /* Darker background for better meteor visibility */
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    font-size: 14px;
    min-height: 100vh;
}

a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Main content */
main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.page-header {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-link {
    font-size: 14px;
    color: var(--muted-foreground);
}

.back-link:hover {
    color: var(--foreground);
}

.page-title {
    font-size: 20px;
    font-weight: 600;
}

.minimal-content {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.content-section {
    margin-bottom: 48px;
}

.header-section {
    margin-bottom: 24px;
}

h1 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

p {
    color: var(--muted-foreground);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Progress bar */
.progress-container {
    position: relative;
    padding: 0 2px;
    margin: 32px 0;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 24px;
    margin: 32px 0;
    touch-action: none;
    user-select: none;
}

.progress-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background-color: var(--border);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    height: 100%;
    background-color: var(--foreground);
    opacity: 0.8;
    width: 100%; /* Changed from 28% to 100% */
}

/* Section buttons */
.button-container {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.section-button {
    background-color: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.section-button:hover {
    border-color: var(--accent);
    background-color: rgba(59, 130, 246, 0.1);
    text-decoration: none;
}

.work-button, .life-button, .now-button {
    width: 120px;
    text-align: center;
}

.dynamic-content {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    min-height: 160px;
}

.dynamic-content.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-message {
    color: var(--muted-foreground);
}

.load-error {
    color: #f59e0b;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 480px) {
    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .work-button, .life-button, .now-button {
        width: 140px;
    }
}

/* Active content */
.active-content {
    opacity: 1;
    display: block;
    padding-bottom: 60px;
}

/* Footer button */
.footer-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    font-size: 12px;
    color: var(--muted-foreground);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-button:hover {
    color: var(--foreground);
}

/* Recreational certifications */

.cert-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.cert-section:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.cert-section:last-child {
    border-bottom: none;
}

.cert-content {
    flex: 1;
}

.cert-image {
    width: 60px;
    height: 60px;
    margin-left: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.05);
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-title {
    font-weight: 500;
    color: var(--foreground);
}

.cert-issuer {
    font-size: 12px;
    color: var(--muted-foreground);
    margin-bottom: 4px;
}

.cert-date {
    font-size: 12px;
    color: var(--muted-foreground);
}

.section-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--foreground);
}


/* Navigation */
.nav-section {
    margin-top: 32px;
    position: sticky;
    top: 0;
    background-color: var(--background);
    padding: 10px 0;
    z-index: 100;
}

.nav-link {
    display: inline-block;
    margin-right: 16px;
    font-size: 14px;
    color: var(--muted-foreground);
}

.nav-link:hover {
    color: var(--foreground);
}

/* Media queries for responsiveness */
@media (max-width: 640px) {
    .container {
        padding: 24px 16px;
    }
    
    .nav-section {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
    }
}/* Meteor Shower Animation */
.night-sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9990;  /* Changed from 10 to avoid conflicts with cursor */
    overflow: hidden;
}

/* Shining Stars */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
                0 0 12px rgba(255, 255, 255, 0.4);
    animation: twinkle 3s ease-in-out infinite;
}

.star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
                0 0 20px rgba(255, 255, 255, 0.5),
                0 0 30px rgba(255, 255, 255, 0.3);
    animation: twinkle 3s ease-in-out infinite reverse;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Default cursor replacement with terminal icon */
body, 
div:not([class^="cursor"]), 
span, 
p, 
h1, h2, h3, h4, h5, h6, 
header, main, footer, section, article, nav, aside {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 17 10 11 4 5'%3E%3C/polyline%3E%3Cline x1='12' y1='19' x2='20' y2='19'%3E%3C/line%3E%3C/svg%3E") 12 12, auto;
}

/* Pointer cursor (hand) replacement with terminal icon */
a, button, input[type="submit"], input[type="button"], 
.section-button, [role="button"], 
input[type="checkbox"], input[type="radio"],
select, details, summary,
.nav-link, .back-link, .footer-button {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 17 10 11 4 5'%3E%3C/polyline%3E%3Cline x1='12' y1='19' x2='20' y2='19'%3E%3C/line%3E%3C/svg%3E") 12 12, pointer;
}

/* Text cursor replacement with terminal icon with blinking cursor */
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="search"], input[type="tel"],
input[type="url"], input:not([type]), textarea {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 17 10 11 4 5'%3E%3C/polyline%3E%3Cline x1='12' y1='19' x2='20' y2='19'%3E%3C/line%3E%3Cline x1='12' y1='5' x2='12' y2='14' stroke='rgba(255,255,255,0.9)' stroke-width='1.5'%3E%3C/line%3E%3C/svg%3E") 12 12, text;
}

/**
 * Optimized animations.css
 * Defines all animation keyframes and classes in one place
 */

/* === KEYFRAME DEFINITIONS === */
@keyframes floatInUp {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes floatInLeft {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes floatInRight {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes floatInDown {
    from {
      opacity: 0;
      transform: translateY(-50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* === ANIMATION CLASSES === */
  
  /* Default animation properties */
  .float-in-up, .float-in-left, .float-in-right, .float-in-down {
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
    animation-fill-mode: forwards;
  }
  
  /* Animation type classes */
  .float-in-up {
    animation-name: floatInUp;
  }
  
  .float-in-left {
    animation-name: floatInLeft;
  }
  
  .float-in-right {
    animation-name: floatInRight;
  }
  
  .float-in-down {
    animation-name: floatInDown;
  }
  
  /* Set initial state to hidden for all animated elements */
  .animate-element,
  .header-section h1,
  .header-section p,
  .intro-logo,
  .section-button,
  .progress-container,
  .nav-section,
  .footer-button,
  .section-title,
  .cert-section,
  .page-header,
  .content-section {
    opacity: 0;
  }
  
  /* Delay classes - Systematic approach */
  .delay-100 { animation-delay: 0.1s; }
  .delay-200 { animation-delay: 0.2s; }
  .delay-300 { animation-delay: 0.3s; }
  .delay-400 { animation-delay: 0.4s; }
  .delay-500 { animation-delay: 0.5s; }
  .delay-600 { animation-delay: 0.6s; }
  .delay-700 { animation-delay: 0.7s; }
  .delay-800 { animation-delay: 0.8s; }
  .delay-900 { animation-delay: 0.9s; }
  .delay-1000 { animation-delay: 1s; }
  .delay-1100 { animation-delay: 1.1s; }
  .delay-1200 { animation-delay: 1.2s; }
  .delay-1300 { animation-delay: 1.3s; }
  .delay-1400 { animation-delay: 1.4s; }
  .delay-1500 { animation-delay: 1.5s; }
  .delay-1600 { animation-delay: 1.6s; }
  .delay-1700 { animation-delay: 1.7s; }
  .delay-1800 { animation-delay: 1.8s; }
  .delay-1900 { animation-delay: 1.9s; }
  .delay-2000 { animation-delay: 2s; }
  
  /* === CONTENT VISIBILITY CLASSES === */
  
  /* Work/Life Content Display - Start hidden, transition to visible */
  .work-content, .life-content {
    opacity: 0;
  }
  
  .work-content.active-content,
  .life-content.active-content {
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
  }
  
  /* === ADDITIONAL STYLES MOVED FROM INLINE === */
  
  /* Word morphing animation from index.html */
  #morph-word {
    display: inline-block;
    transition: opacity 0.5s ease-in-out;
  }
  
  .morph-container {
    display: inline-block;
    width: 60px; /* Reduced width for less spacing */
    text-align: center;
  }
  
  /* External link icon from work.html */
  .external-link-icon {
    vertical-align: middle;
    margin-left: 5px;
    color: var(--muted-foreground);
    height: 14px;
    width: 14px;
  }
  
  .cert-title:hover .external-link-icon {
    color: var(--accent);
  }