section aside header footer {
    display: block;
}
/*mobile first*/
body {
    background-color: #030917;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: #b6b9bf;
    cursor: default; /* keep normal cursor */
}

.services{
    line-height: 1.6em;
}

/* Spotlight */
.cursor-light {
  position: fixed;
  width: 300px;
  height: 300px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    transparent 70%
  );
  filter: blur(40px);
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out;
  z-index: 9999;
}

* {
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    background-color: #030917;
    width: 100%;
    height: 15vh;
    padding: 1em;
    position: fixed;
    margin: 0;
    transition-property: background-color;
    transition-duration: 3s;
}

header:hover {
    background-color: #b52abf;
}

.logo-container {
    flex-shrink: 0; 
}

.logo {
  max-width: 60px;
  height: 60px;
  border-radius: 50%;
}

#smallheader{
    display: block;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 0;
}

.profile{
    display: block;
    float: right;
    width: 150px;
    height: 150px;
    margin: 0 5px 3px 3px;
    overflow: hidden;
}

.profile img{
    display: block;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-weight: lighter;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-align: center;
    letter-spacing: 2px;
}

h2 {
    font-family: 'Courier New', Courier,'Times New Roman', Times, serif, monospace;
    font-size: 1rem;
    display: block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: bolder;
    letter-spacing: 0.5px;
}

h3{
    color: #d6b24f;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h4{
    color: #806608;
}

.email{
    border-bottom: 1px solid #5250b3;
}

.email:hover{
    color: #4056e6;
}

.main-nav {
    position: fixed;
    top: 0;
    right: -100%; /* hidden off-screen */
    width: 30%;
    height: auto;
    background-color: white;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-top: 0;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    line-height: 1.7rem;
}

nav a.active {
  
  font-weight: 700;      /* slightly bolder */
}

.main-nav.active {
  right: 0;
}

.menu-icon {
    display: block;
    font-size: 1.7rem;
    cursor: pointer;
    color: aliceblue;
}

.close-btn {
    font-size: 2rem;
    align-self: flex-end;
    cursor: pointer;
    margin-bottom: 1rem;
    color: black;
    font-weight: bold;
}

.main-nav ul {
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0 2px 2px 4px;
    margin-top: 0;
}

.main-nav a {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    color: black;
    text-decoration: none;
}

.main-nav li:hover a{
    color: #4056e6;
    font-size: 1.4em;
}

section, article{
    padding: 0;
    text-align: left;
    display: block;
    font-size: 0.7rem;
}

section ul {
  padding-left: 15px;
  margin-left: 0;
}

article ul {
  padding-left: 15px;
  margin-left: 0;
}

#image-container {
    display: block;
    background-image: url(images/background.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0;
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: flex-end;
    
}

.content{
    margin: 0.3em;
}

.content em {
    
    font-size: 0.8rem;
    font-weight: bolder;
    color: #CCCCCC;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1.6);
    margin: 0;
    padding: 0;
    justify-content: end;
}

footer {
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   background-color: #030917;
   padding-left: 1rem;
   border-top: 1px solid rgba(240, 248, 255, 0.2);
}

footer a {
   font-family: Verdana, Geneva, Tahoma, sans-serif;
   font-size: 0.8em;
   color: #c9ccd4;
   text-decoration: none;
}
 
.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav ul{
    padding-left: 0;
}

.footer-nav a{
    text-decoration: none;
    line-height: 1rem;
}

.footer-nav a:hover {
    color: #4056e6;
    font-size: 1.2em;
}

.footer-nav li{
    list-style: none;
}

.copyright{
    font-size: 0.8em;
}

/* Floating container */
.contact-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

/* Main button */
.fab-trigger {
  background: #115891;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.fab-trigger:hover {
  background: #0e2954;
}

/* Options container */
.fab-options {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 10px;
  gap: 8px;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition: all 0.25s ease;
}

/* Individual buttons */
.fab-item {
  background: white;
  color: #0e2954;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.fab-item:hover {
  background: #f2f2f2;
  transform: translateX(-4px);
}

/* OPEN STATE */
.contact-fab.open .fab-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

article {
  display: block;
}

article img {
  overflow-x: hidden;
  width: 300px;
  height: auto;
  padding: 0;
}

.unorder{
    list-style: none;
    padding-left: 1px;
    margin-top: 0;
}

#emphasise{
    color: #b6b9bf;
}

.tech-stack-list {
  list-style: none; /* remove default bullets */
  padding: 0;
  margin: 8px 0;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 8px; /* space between icon and label */
  margin-bottom: 6px; /* space between items */
}

.tech-item img {
  width: 24px;
  height: 24px;
}

.project-demo {
  position: relative;
  max-width: 80%;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid #ffffff; /* white border */
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); /* subtle glow */
  margin: 1.5em;
}

.demoVideo {
  width: 300px;
  height: 350px;
  display: block;
  padding: 0;
  
}

.screenshotSlide {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0; /* hidden initially */
  transition: opacity 1s ease-in-out;
}

.screenshotSlide img {
  width: 95%;
  height: auto;
  border-radius: 8px;
}

.icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
}

/*Medium screen*/
@media screen and (min-width: 720px){
    header {
        width: 100%;
        padding: 1rem;
    }

    h2{
       font-size: 1.4rem;
       letter-spacing: 0.2em;
    }

    .menu-icon, .close-btn {
        display: none;
    }

    .main-nav {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        right: 0;
        flex-wrap: wrap;
        background-color: transparent;
        max-width: 100%;
        position: relative;
    }

    .main-nav ul {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        padding: 1rem;
        margin: 0;
        
    }

    .main-nav a {
        color: aliceblue;
        display: flex;
        justify-content: space-between;
        font-weight: lighter;
        text-shadow: 5px 2px 8px rgba(0, 0, 0, 0.6);
    }

    section, article{
        font-size: 1rem;
        
    }

    .logo {
        max-width: 80px;
        height: 80px;
    }

  
}/*end medium screen*/

/*Large screens*/
@media screen and (min-width: 1040px){
   #image-container{
    height: 550px;
    padding:0;
   }

   .project-demo{
    max-width: 50%;
    margin-left: 50px;
   }

   .demoVideo{
    margin-left: 20px;
   }

   #emphasise{
    display: block;
    text-align: center;
    font-size: 1.1em;
    padding: 8px;
   }

   .services {
    display: grid;
    grid-template-columns: auto auto;
    gap: 2rem;
    /*border: 1px solid #363d3a;*/
    margin: 2rem;
    border-radius: 10%;
   }

   .service-header {
    grid-column-start: 1;
    grid-column-end: 3;
   }

   .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
    "top top"
    "left right";
    gap: 5em;
    padding: 0 0 1.5em 1.5em;
   }

   .top {
    grid-area: top;
  }

   .left {
    grid-area: left;
    
  }
  
   .right {
    grid-area: right;
    
  }

   article{
    margin-left: 2px;
   }

   li{
    margin-bottom: 8px;
   }

    .logo {
        max-width: 85px;
        height: 85px;
    }

  .contact-fab:hover .fab-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

 
}