/* ---------------------------------------------------------------------- */
/* BASE STYLES & LARGE SCREEN DEFAULTS */
/* ---------------------------------------------------------------------- */

/* Keyframes for the centered "Copied! 👍" message animation */
@keyframes copy-feedback-fade 
{
    /* The animation runs for 2 seconds. It appears immediately, stays until 90%, and fades out (100%). */
    0%   { opacity: 0; transform: translate(-50%, -30%); } /* Starts slightly higher */
    10%  { opacity: 1; transform: translate(-50%, -50%); } 
    90%  { opacity: 1; transform: translate(-50%, -50%); } 
    100% { opacity: 0; transform: translate(-50%, -70%); } /* Fades out higher */
}

 html 
{ 
  scroll-behavior: smooth;
  scroll-padding-top: 60px; 
}

body
{
  width: 100%;
    padding: 0;
    margin: 0;
    background-image: url("/Images/pebblecolour2.jpg");
    background-size: cover;
    background-attachment: fixed;
}

header
{
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 9999;
}

header ul
{
  display: flex;
  gap: 30px;
  list-style: none;
  font-size: 1.5rem;
  margin: 10px 0;
  padding: 5px 15px;
  background-color: rgba(112, 91, 69, 0.9);
  border-radius: 22px;
  border: solid white;
  border-width: 1px;
}

header a
{
  text-decoration: none;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600; 
  font-style: normal;
  color: rgb(238, 206, 171);
  display: inline-block;
  transition: all 0.75s;
  padding: 8px 20px;
}

header a:hover
{
  scale: 1.2;
  border-radius: 5px;
  color: rgb(38, 140, 140);
  /* background-color: rgb(221, 206, 206); */
}

.main-content
{
  /* Ensures divs stack vertically by NOT using display: flex */
  width: 85%;
  margin-left: 8vw;
  background-color: rgba(112, 91, 69, 0.9); 
  border-radius: 20px;
  padding-top: 10px;
  padding-bottom: 0px;
  line-height: 1.6;
  color: rgb(238, 206, 171);
}

div
{
  display: block;
}

.reka, .mainbox1, .mainbox2, .mainbox3, .mainbox4, .window
{
  padding: 10%;
  margin-bottom: 30px; 
  box-sizing: border-box;
  padding-top: 10%;
  margin-top: 0;
  text-align: justify;
  text-decoration: none;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 500; 
  font-style: normal;
  font-size: 1.1rem;
}

.reka
{
  padding-top: 0%;
  font-size: 120%;
}

.rekacenter
{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
.rekaimg
{
width: 50%;
max-width: 600px;
border-radius: 22px;
height: auto;
}

.reka h1
{
font-family: "Hurricane", cursive;
font-weight: 500;
font-style: normal;
font-size: clamp(3rem, 7vw, 600%); 
}

.quote
{
 font-size: clamp(1.2rem, 3vw, 2.1rem);
 padding-left: 10%;
 line-height: 1.4;
}

.window
{
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.windowimg
{
margin: 0;
padding: 0;
width: 100%;
height: auto;
object-fit: cover;
padding-top: 10%;
}

/* SIDE NAVBAR ---------------------------------------------------------------------------------------------------------------------------------------------*/

.fixed-center-wrapper {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: flex-start; 
    top: 77px;
    z-index: 99; 
    pointer-events: none; 
    
}

.social-taskbar {
    left: 10px; 
    right: auto;
    position: relative; 
    width: 45px; 
    height: 140px; 
    background-color: transparent; 
    box-shadow: none;
    z-index: 1000; 
    border-radius: 10px; 
    overflow: visible; 
    pointer-events: auto; 
    text-align: center;
}

.social-taskbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(112, 91, 69, 0.9); 
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    z-index: 1001; 
}


.social-taskbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-top: 10px; 
    z-index: 1002;
    position: relative; 
    height: auto; 
    display: block; 
}

.social-taskbar li {
    margin: 0;
    position: relative;
    background-color: transparent; 
    z-index: 1002;
}

.social-taskbar a {
    display: flex;
    align-items: center;
    padding: 5px 0; 
    color: rgb(238, 206, 171); 
    text-decoration: none;
    justify-content: center; 
    position: relative;
    z-index: 1003;
}

.social-taskbar i {
    font-size: 20px;
    width: 20px; 
    text-align: center;
    transition: color 0.2s ease;
}

.email-item a::after {
    content: attr(data-email);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 45px; 
    right: auto; 
    white-space: nowrap;
    padding: 10px 15px;
    background-color: rgb(38, 140, 140);
    color: white;
    font-size: 15px;
    line-height: 1.2; 
    border-radius: 10px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translate(-10px, -50%); 
    z-index: 999; 
    pointer-events: none; 
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-family: "Montserrat Alternates", sans-serif;
}

/* Show tooltip on desktop hover */
@media (min-width: 769px) {
    .email-item a:hover::after {
        opacity: 1;
        transform: translate(0, -50%); 
    }
    .email-item a:hover i {
        color: rgb(38, 140, 140);
    }
}

.social-taskbar li.facebook a:hover i { color: #3b5998; }
.social-taskbar li.instagram a:hover i { color: #E1306C; }
.social-taskbar li.linkedin a:hover i { color: #0077B5; }
/* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ */

#copy-feedback-container {
    position: fixed;
    top: 16%;
    left: 10%;
    transform: translate(-50%, -50%);
    z-index: 99999; /* Ensure it's on top of everything */
    pointer-events: none; /* Allows clicks to pass through */
}

.copied-message {
    background-color: rgba(38, 140, 140, 0.9); 
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0; 
    animation: copy-feedback-fade 2s ease-in-out;
}


/* ---------------------------------------------------------------------- */
/* MEDIA QUERIES (RESPONSIVENESS AND MOBILE STYLES) */
/* ---------------------------------------------------------------------- */
/* For screens smaller than 1024px */
@media (max-width: 1024px) {
    header ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        font-size: 1.1rem;
        padding: 5px 10px;
    }
    header a:hover {
        scale: 1.05;
    }
    .main-content {
        width: 95%;
        margin: 5px auto;
    }
}

/* For screens smaller than 768px (Mobile/Tablet Portrait) */
@media (max-width: 768px) {

    /* --- CONTENT LAYOUT --- */
    .rekacenter {
        flex-direction: column;
        text-align: center;
    }
    .rekaimg {
        width: 50%;
        max-width: 250px;
        margin-bottom: 20px;
    }
    .quote {
        padding-left: 0;
        font-size: 1.1rem;
    }
    .reka h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
        text-align: center;
    }
    
    /* --- SOCIAL TASKBAR MOBILE REPOSITIONING (SIDEBAR -> FOOTER) --- */
    
    .fixed-center-wrapper {
        position: static;
        top: auto; 
        left: auto;
        right: auto;
        bottom: auto;
        padding: 0;
        pointer-events: auto; 
    }
    
    .social-taskbar {
        position: static;
        width: 100%; 
        margin-top: 10px; 
        background-color: transparent; 
        box-shadow: none;
        padding: 0;
        height: 10%;
        margin-bottom: 10px;
    }
    
    .social-taskbar::before {
        display: none;
    }

    .social-taskbar ul {
        display: flex;
        justify-content: center;
        padding: 10px 0;
        background-color: rgba(112, 91, 69, 0.9); 
        border-radius: 10px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
        width: 95%;
        margin: 0 auto; 
        gap: 15px; 
    }
    
    .social-taskbar i {
        font-size: 24px; 
    }

    /* Hide the desktop tooltip/email on mobile */
    .email-item a::after {
        content: none;
        opacity: 0;
    }
}

/* For screens smaller than 480px (Phone Portrait) */
@media (max-width: 480px) {
    header ul {
        flex-direction: column;
        gap: 5px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    header a {
        padding: 3px 8px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .main-content {
        padding: 10px;
        width: 98%;
        border-radius: 10px;
    }

    .reka, .mainbox1, .mainbox2, .mainbox3, .mainbox4 {
        padding: 5%;
        margin-bottom: 15px;
        font-size: 1rem;
    }
    
    .reka h1 {
        font-size: clamp(2rem, 12vw, 3rem);
    }
    
    .social-taskbar ul {
        width: 98%; 
        gap: 10px; 
    }
    
    /* Adjust message size for smaller screens */
    .copied-message {
        font-size: 1rem;
        padding: 10px 20px;
    }
}