/* ==================================================================
   NOMINOOM'S WEBSITE STYLESHEET
   
   Main CSS file for core layout and components.
   Interactive sections have their own CSS files.
   ================================================================== */


/* ==================================================================
   1. CSS VARIABLES & THEME
   ==================================================================
   Use CSS variables to keep colors, spacing, and radii centralized.
   Change a value here to update the whole site instantly.
   ================================================================== */
:root {
  /* Background gradient start */
  --bg: #272727;
  --font-science: "Science Gothic", sans-serif;
  --sc-slnt: 0;
  --sc-wdth: 100;
  --sc-ctrs: 0;

  .share-tech-mono-regular {
  font-family: "Share Tech Mono", monospace;
  font-weight: 400;
  font-style: normal;
}


  /* Maximum container width */
  --container: 1100px;

  /* Default gap used in grids */
  --gap: 1.25rem;

  /* Reserved for future use */
  --max-width: 1200px;
  /* Approximate header height: used to offset the main content when
     header is fixed. Adjust if you change header padding or font sizes. */
  --header-h: 72px;

  --radius : 15px;
}

/* ==================================================================
   2. RESET & BASE STYLES
   ==================================================================
   - Make box-sizing predictable
   - Set base font rendering and defaults
   ================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: share-tech-mono-regular, monospace;
  background: linear-gradient(180deg, var(--bg), #272727);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden; /* Prevent horizontal scrolling only */
  overflow-y: auto; /* Allow vertical scrolling */
}

/* ==================================================================
   3. CANVAS & HERO LAYOUT
   ==================================================================
   - Styles for the particle canvas and the content overlay.
   ================================================================== */

#particle-canvas {
    position: fixed; /* Position relative to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Place it behind the content */
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
}

.hero-content {
    position: absolute; /* Position on top of the canvas */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2; /* Place it in front of the canvas */
}

.hero-title {
    font-size: 3.75rem;
    color: rgb(255, 255, 255);
    margin: .25rem 0;
    font-family: share-tech-mono-regular, monospace;
}

.hero-lead {
    color: #ccc;
    max-width: 60ch;
    margin: 0.5rem auto;
    font-family:'Share Tech Mono', monospace;
    font-size: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 75%;
}

.social-btn:hover {
    background: rgba(195, 0, 255, 0.2);
    transform: translateY(-3px);
    opacity: 95%;
}

.social-btn svg {
    width: 32px;
    height: 32px;
}


/* ------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}


/* ------------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------------ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-icon {
    width: 40px;
    height: 40px;
    display: block;
    transition: transform 0.3s;
}

.menu-toggle.active .menu-icon {
    transform: rotate(90deg);
}

.nav-bar-links {
    display: flex;
    list-style: none;
    gap: 45px;
    margin-left: auto;
    color: white;
    transition: all 0.3s ease;
}

.nav-bar-links a {
    font-family: "Share Tech Mono", monospace;
    color: var(--text-white);
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

.nav-bar-links a:hover {
    color: purple;
    font-size: 25px;
}

/* Mobile navbar */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-bar-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 2rem;
        margin: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 2px solid rgba(119, 0, 255, 0.5);
    }
    
    .nav-bar-links.active {
        right: 0;
    }
    
    .nav-bar-links a {
        font-size: 1.2rem;
        text-align: left;
        width: 100%;
    }
    
    .nav-bar-links a:hover {
        font-size: 1.3rem;
        padding-left: 0.5rem;
    }
}


/* ------------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------------ */

.hero-bleed {
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 100vh;
    display: block;
    position: relative;
    z-index: 0;
    overflow: hidden;
}


/* ------------------------------------------------------------------
   ABOUT ME SECTION
   ------------------------------------------------------------------ */

.aboutMe {
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}

.aboutMe-container-left {
  max-width: auto;
  padding: 1rem;
  background: rgb(255, 255, 255);;
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(2,6,23,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 800px;
  z-index: 10;
  }

  .aboutMe-container-right {
  max-width: 800px;
  padding: 0 1rem;
  padding-right: 1rem;
  background: rgb(255, 255, 255);;
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(2,6,23,0.6);
  display: flex;
  flex-direction: column;
  z-index: 10;
  align-items: center;
  justify-content: center;
  justify-self: center;
  }

  .aboutMe-Certs-header {
    max-width: 800px;
    padding: 0 1rem;
    padding-right: 1rem;
    background: rgba(255, 255, 255, 0);;
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(2,6,23,0.6);
    display: flex;
    flex-direction: column;
    z-index: 10;
    align-items: center;
    justify-content: center;
    justify-self: center;
  }

  .aboutMe-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .aboutMe-image {
    width: 100%;
    height: auto;
    
    display: flex;
    border-radius: none;
    margin-bottom: 1rem;
  }

  .certCard-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: 1fr 1fr 1fr;
    margin: 1.25rem 0;
    width: 100%;
  }

  .certCard {
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    background: rgb(255, 255, 255);
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 8px 22px rgba(2,6,23,0.6);
    justify-content: center;
    align-items: center;
  }

  .certCard-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    justify-self: center;
  }

  .certName {
    padding: 0.5rem;
    color: var(--text);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
  }

  .certSubtext {
    padding: 0 0.5rem 1rem 0.5rem;
    color: var(--muted);
    text-align: center;
    font-size: 0.65rem;
  }

  .terminal {
    position: relative;
    background: #111;
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(2,6,23,0.6);
    overflow: hidden;
    font-family: 'Share Tech Mono', monospace;
    color: #fff;
    max-width: 800px;
    max-height: 1200px;
    margin: 2rem auto;
    z-index: 100;
    width: 100%;
    height: 100%;
  }

  .terminal-header {
    background: #222;
    padding: 0.5rem 1rem;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
  }

  .terminal-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
  }

  .terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
  }

  .terminal-button.close {
    background: #ff5f56;
  }
  .terminal-button.minimize {
    background: #ffbd2e;
  }
  .terminal-button.maximize {
    background: #27c93f;
  }

  .terminal-title {
    font-size: 0.9rem;
    color: #fff;
  }

  .terminal-body {
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    min-height: 600px;
    min-width: 800px;
  }

  .terminal-line {
    color: rgb(119, 0, 255);
    margin-bottom: 0.5rem;
  }

  .terminal-input {
    width: 100%;
    background: transparent;
    border: none;
    color: rgb(153, 0, 255);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    padding: 1rem;
    outline: none;
  }

  .terminal-input::placeholder {
    color: rgb(153, 0, 255);
    opacity: 0.5;
  }
   ------------------------------------------------------------------ */

/* Tablet and smaller desktop */
@media (max-width: 900px) {
  .hero-title {
    font-size: 3.5rem !important;
  }
  
  .social-btn {
    width: 44px !important;
    height: 44px !important;
  }
  
  .social-btn svg {
    width: 28px !important;
    height: 28px !important;
  }
  
  /* Stack aboutMe on tablets */
  .aboutMe {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  
  .aboutMe-container-left {
    width: 100%;
    max-width: 500px;
  }
  
  .aboutMe-container-right {
    max-width: 100%;
  }
  
  /* Make cert cards 2 columns on tablet */
  .certCard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile devices */
@media (max-width: 640px) {
  /* Scale hero title for mobile */
  .hero-title {
    font-size: 2.5rem !important;
    padding: 0 1rem;
  }
  
  .hero-lead {
    font-size: 0.9rem !important;
    padding: 0 1rem;
  }
  
  /* Adjust social buttons for mobile */
  .social-links {
    gap: 1rem !important;
  }
  
  .social-btn {
    width: 40px !important;
    height: 40px !important;
  }
  
  .social-btn svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  /* Make container padding smaller on mobile */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Adjust header for mobile */
  .aboutMe {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .aboutMe-container-left {
    width: 100%;
    max-width: 100%;
  }
  
  .aboutMe-container-right {
    max-width: 100%;
    padding: 1rem;
  }
  
  /* Make cert cards stack in 1 column on mobile */
  .certCard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Adjust terminal for mobile */
  .terminal {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .terminal-title {
    font-size: 0.75rem;
  }
  
  .terminal-body {
    padding: 0.75rem;
    font-size: 0.8rem;
  }
  
  .terminal-input {
    font-size: 0.8rem;
    padding: 0.75rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 400px) {
  .hero-title {
    font-size: 2rem !important;
  }
  
  .social-links {
    gap: 0.75rem !important;
  }
  
  .social-btn {
    width: 36px !important;
    height: 36px !important;
  }
  
  .social-btn svg {
    width: 20px !important;
    height: 20px !important;
  }
}


/* ------------------------------------------------------------------
   UTILITY HELPERS
   ------------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ------------------------------------------------------------------
   FOCUS STYLES & TOUCH OPTIMIZATION
   ------------------------------------------------------------------ */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 3px solid rgba(255, 255, 255, 0.219);
  outline-offset: 3px;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
  button, a, .pad, .egg-box {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Prevent text selection on interactive elements */
  .pad, .egg-box, .music-card, .graffiti-card, .skill-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Smooth scrolling on mobile */
  html {
    scroll-behavior: smooth;
  }
}


.toyTitle {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 3.75rem;
  color: rgb(255, 255, 255);
  margin: .25rem 0;
  font-family: 'Share Tech Mono', monospace;
  z-index: 10;
}

.toyTitle-text {
  color: rgb(119, 0, 255);
  background-color: #000; 
  font-size: 20px;
  font-weight: bold;
  padding: 1rem 2rem;
  border-radius: var(--radius);
}

@media (max-width: 640px) {
  .toyTitle {
    font-size: 2rem;
    top: 10%;
    width: 90%;
  }
  
  .toyTitle-text {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
}

/* ------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------ */

.site-footer {
  background: rgba(0, 0, 0, 0.9);
  padding: 2rem;
  text-align: center;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.5rem 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
}

.footer-tagline {
  color: rgba(119, 0, 255, 0.9);
  font-style: italic;
  font-size: 0.85rem !important;
}

/* Mobile responsiveness for footer */
@media (max-width: 640px) {
  .site-footer {
    padding: 1.5rem 1rem;
  }
}

/* end of stylesheet */
