/* styles/style.css */
@font-face {
  font-family: 'Alliance No.2';
  src: url('../assets/fonts/Alliance No.2 Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body {
    background-color: #111111;
    color: #cccccc;
    font-family: 'Alliance No.2', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero-flex{
    display:flex;
    gap:3rem;
    justify-content:space-between;
    align-items:center;   
    flex-wrap:wrap;           
    max-width:1200px;               
    margin:0 auto;   
    padding:3rem 1rem;
}

.hero-left{
    flex:0 0 340px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2rem; 
}

.social-links{
display:flex;
justify-content:center;
gap:1.2rem;
margin-top:0.5rem;
}

.social-icon{
font-size:1.9rem;           
color:#bbbbbb;
transition:color .3s, transform .3s;
}

.social-icon:hover,
.social-icon:focus{
color:#ffffff;
transform:translateY(-2px) scale(1.05);
}

.hero-text{
    max-width:580px;
    text-align:left;
}

.hero-photo{
    width:280px;
    height:310px;
    object-fit:cover;  
    border-radius:50px;    
    box-shadow:0 0 16px rgba(0,0,0,.35);
    transform: translateY(-50px);
}

@media(max-width:800px){
    .hero-flex{ flex-direction:column; align-items:center; }
    .hero-left{ width:100%; max-width:360px; }
    .hero-text{ text-align:center; }
    .tagline{ padding-right:0; }
    .cta-buttons{ flex-direction:column; }
}

.hero {
    max-width:600px;
    text-align:center; 
} 

.hero-text h1 {
    font-size:clamp(2.5rem,3vw + 2rem,4rem);
    font-weight: 400;
    letter-spacing: 2.3px;
    margin:0 0 .5rem;
    color: white;
}  

.hero-text .tagline {
    font-size:clamp(1rem,1.1vw + .6rem,1.4rem);
    color: #bbbbbb;
    padding-right:0; 
}

.affiliations {
    margin-top: 2rem;
    font-size: 1rem;
    color: #bbbbbb;
    text-align: center;
    max-width: 600px;
}

.affiliations p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.affiliations a {
    color: #adadad;
    font-weight: 600;
    text-decoration: underline;
}

.affiliations a:hover {
    color: #9abdc4;
}

.hero-text .blurb {
    max-width: none;
    font-weight: 300;
    letter-spacing: 0.6px;
    line-height: 2;
    margin-top: 2rem;
}    

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    text-decoration: none;
    color: rgb(160, 160, 160);
    border: 1px solid rgb(46, 46, 46);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 4px;
}

.cta-button:hover {
    background-color: rgb(34, 34, 34);
    color: rgb(228, 228, 228);
}

.footer-section {
    margin-top: auto;
    text-align: center;
    font-size: 0.9rem;
    color: #bbbbbb;
}

.footer-section a {
    color: #bbbbbb;
    text-decoration: underline;
}

.footer-section span {
    font-weight: 500;
    color: #dddddd;
}

html {
    scroll-behavior: smooth;
}

.main-full-height {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Site header & footer ---------- */
.site-header{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    max-width:1200px;
    margin:0 auto;
    padding:1rem 1.25rem;
    position:relative;
    z-index:1;
}

.logo a{
    color:#ffffff;
    font-size:1.6rem;
    font-weight:700;
    text-decoration:none;
}

.site-nav a{
    color:#bbbbbb;
    margin-left:1.5rem;
    font-weight:500;
    text-decoration:none;
    transition:color .3s;
}

.site-nav a:hover{ color:#ffffff; }

.site-footer{
    text-align:center;
    color:#888888;
    font-size:.9rem;
    margin-top: auto;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }
    .tagline {
        font-size: 1rem;
    }
    .blurb {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-button {
        width: 100%;
        max-width: 250px;
        margin-bottom: 1rem;
    }
}

/* Project Page Layout */
.projects-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.project-entry {
    display: flex;
    flex-direction: row;
    align-items: center; 
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ai2-image {
    width: 250px;
    height: 140px;
    border-radius: 4px;
    object-fit: cover;
}

.cleanpath-image {
    width: 250px;
    height: 190px;
    border-radius: 4px;
    object-fit: cover;
}

.sustainiq-image {
    width: 250px;
    height: 235px;
    border-radius: 4px;
    object-fit: cover;
}

.quizcraft-image {
    width: 250px;
    height: 190px;
    border-radius: 4px;
    object-fit: cover;
}

.drmario-image {
    width: 250px;
    height: 190px;
    border-radius: 4px;
    object-fit: cover;
}

.project-text {
    position: relative;
    flex: 1;
    color: #eeeeee;
    padding-bottom: 0rem;
}

.tagline a {
    color: #dfdfdf;
    text-decoration: underline;
}

.tagline a:hover {
    color: #9abdc4;
}

.project-text h2 {
    margin-top: 2;
    font-size: 1.5rem;
}

.project-text .tagline {
    font-size: 1rem;
    color: #c4c4c4;
    margin: 01rem 0;
}

.tags {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #888888;
}

.tag {
    display: inline-block;
    background-color: #333333;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

hr {
    border: none;
    border-top: 0.3px solid #333;
}

.github-link {
    position: absolute;
    bottom: 0;                   /* sit on the bottom edge */
    right: 0;                    /* hug the right edge */
    color: #bbbbbb;
    font-size: 1.7rem;
    transition: color 0.3s;
}

.github-link:hover {
    color: #ffffff;
}

.experience-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.exp-entry {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.exp-bullets {
    margin: 0.5rem 0 1rem;
    padding-left: 1.2rem;    
    padding-right: 1.2rem;
    list-style-type: disc;   
    font-size: 0.95rem;
    line-height: 1.6;
    color: #dddddd;     
}

.exp-logo {
    width: 250px;
    height: 190px;
    border-radius: 4px;
    object-fit: cover;
}

.exp-text {
    flex: 1;
    font-weight: 100;
    position: relative;
    color: #9e9e9e;
    padding-bottom: 2rem;
}

strong {
    color: #ffffff;
    font-weight: 600;
}

.exp-date {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1rem;
    font-weight: 400;
    padding-right: 1rem;
    color: #aaaaaa;
}

.role-title {
    margin: 0;
    font-size: 1.4rem;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #bbbbbb;
}

.exp-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.page-header {
    max-width: 900px;
    margin: 2rem auto 1.5rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    color: #ffffff;
}

.back-arrow {
    color: #bbbbbb;
    font-weight: 400;
    font-size: 2rem;
    transition: color 0.3s;
    text-decoration: none;
  }
  .back-arrow:hover {
    color: #ffffff;
  }
  .page-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
  }
  #particles-js {
    position: fixed;
    inset:0;
    z-index: -3;
    width: 100%;
    height: 100%;
  }
canvas {
    display: block;
  }
  
  

   [data-reveal]{
    opacity:0;
    transform:translateY(24px);
    transition:opacity 1.5s cubic-bezier(.2,.6,.3,1),
               transform 1.5s cubic-bezier(.2,.6,.3,1);
  }
  
  [data-reveal].reveal-on{
    opacity:1;
    transform:none;
  }

/* ===== Dim-background overlay (for project / experience pages) ===== */
body.dim::before{
    position:fixed;
    inset:0;
    z-index: -1;                
    background:rgba(0, 0, 0, 0.4); 
    pointer-events:none;      
  }

  