/* ===== GLOBAL VARIABLES ===== */
/* I'm using the root variable to keep my colours consistent throughout the site
   This makes it easier to change the colour scheme later if needed */
:root {
    --primary-color: #805464;
    --secondary-color: #FFA5CB;
    --white: #ffffff;
    --off-white: #e0e0e0;
    --black: #000000;
    --background:#f9f9f9; 
    --background-grey: #555555; 
    --dark-grey: #464646;
    --transition: all 0.3s ease;
    --shadow: 0 0 15px rgba(128, 84, 100, 0.6);
    --border-radius: 10px;
}

/* ===== RESET & BASE STYLES ===== */
/* This resets the browser defaults to start with a clean slate, it also helps avoid cross-browser inconsistencies */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SukhumvitSet', sans-serif;
    color: var(--black);
    line-height: 1.6;
    align-items: center;
    text-align: center;
  }

img {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
}

/* ====== WEBKIT SECTION ===== | Source: https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-scrollbar 
/* Adds a custom scrollbar  */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== TYPOGRAPHY =====*/ 
/* Loading custom fonts for  brand identity. I'm using different weights of the same font family for consistency */
@font-face {
    font-family: 'SukhumvitSet';
    src: url('fonts/SukhumvitSet-Text.ttf') format('truetype');
    font-weight: normal;
  }
  
  @font-face {
    font-family: 'SukhumvitSet';
    src: url('fonts/SukhumvitSet-Bold.ttf') format('truetype');
    font-weight: bold;
  }
  
  @font-face {
    font-family: 'SukhumvitSet';
    src: url('fonts/SukhumvitSet-SemiBold.ttf') format('truetype');
    font-weight: 600;
  }
  
/* The h1-h3 adds styling to headings to create visual hierarchy - I added a decorative underline to section titles */
h1 {
    font-family: "friandise", sans-serif;
    font-weight: 400;
    text-align: center;
    letter-spacing: 1.2px;
    margin: 2% auto;
    font-size: 40px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

h2 {
    font-family: "SukhumvitSet-SemiBold", sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 3vw, 18px);
    letter-spacing: 1.2px;
    margin: 2%;
    color: var(--white);
    text-transform: uppercase;
}

h3 {
    font-family: "SukhumvitSet-SemiBold", sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 3vw, 18px);
    letter-spacing: 1.2px;
    color: var(--primary-color);
    text-transform: uppercase;
}

/* A clamp is added for responsive font sizing - Add this so it automatically adjusts between a min and max size based on the resolution */
p {
    font-family: 'SukhumvitSet-Text', sans-serif;
    text-align: center;
    font-size: clamp(16px, 2vw, 20px); /* Source: https://www.w3schools.com/cssref/func_clamp.php */
    line-height: 1.5;
}

/* ====== NAVIGATION =====*/
/* I added an absolute position so it stays at on top of the page */
.nav {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
    text-align: center;
}

.nav ul {
    font-family: "sukhumvitset-semibold", sans-serif;
    font-size: 12px;
    display: flex;
    align-items: center;
    text-align: end;
    justify-content: space-around;
    letter-spacing: 2px;
    list-style: none;
    cursor: pointer;
}

/* Used a flexbox to align the navigation items and make it responsive */
.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    gap: 20px;
    background: var(--background-grey);
    padding: 10px 20px;
    flex-wrap: wrap;
}

.nav-flex li a {
    color: white;
    text-decoration: none;
    font-size: clamp(14px, 3vw, 18px);
    padding: 8px 12px;
    transition: var(--transition);
}
/* Added hover effect for navigation links and added a shadow effect */
.nav-flex li a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 3px rgba(255, 165, 203, 0.3);
}

.nav a:hover {
    color: var(--primary-color);
}

/* Call-to-Action Contact Button - Added a button so that the contact us stand out */   
.nav-button{ 
    font-family:"SukhumvitSet-SemiBold", sans-serif;
    color: var(--white);
    background-color:var(--primary-color);
    padding: 1rem;
    border: none;
    cursor: pointer;
    align-self:end;
    letter-spacing: 1.5px;
    font-size: 18px;
}

.logo {
    width: 200px;
}

/* Hamburger Menu Styles for movile devices | Source: https://codepen.io/erikterwan/pen/EVzeRP */
.hamburger-menu {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  .bar1, .bar2, .bar3 {
    width: 30px;
    height: 3px;
    background-color:var(--white);
    margin: 6px 0;
    transition: 0.4s;
  }

  /* Hamburger animation */
.change .bar1 {
    transform: rotate(-45deg) translate(-6px, 6px);
}
  
.change .bar2 {
    opacity: 0;
}
  
.change .bar3 {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* ====== HERO SECTION =====*/ 
/* Full-width hero image with fixed height */
.hero {
    position: relative;
    width: 100%;
    height: 880px; 
    overflow: hidden; 
  }
  
  .hero-images {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 100%; 
  }
  
  .hero-img {
    width: 100%;
    height: 100%; 
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; 
    object-fit: cover; 
    object-position: center;
    transition: opacity 1.5s ease-in-out; /* Smooth fade transition */
  }
  /* Used this so that only the first image is displayed, the second image is hidden */
  .hero-img.active {
    opacity: 1;
    z-index: 1;
  }

/* ====== BANNER SECTION ====== */
/* Added a marquee to display a banner message */
.banner {
    overflow: hidden;
    background-color: var(--primary-color);
    padding: 10px 0;
    margin-top: 0;
    position: relative;
  }
  
  .marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
    user-select: none;
  }
  /* Added a keyframes animation to create a scrolling effect | Source: https://codepen.io/jamesbarnett/pen/kQebQO*/
  .marquee-content {
    display: flex;
    animation: marquee 250s linear infinite;
    white-space: nowrap;
    color: white;
    font-size: 16px;
    letter-spacing: 1.5px;
    font-weight: 500;
    text-transform: uppercase;
  }
  
  .marquee-content span {
    padding: 0 15px;
  }
  
  .separator {
    color: white;
    font-size: 1.2rem;
  }
  
  /* Animates horizontal scrolling from right to left for a marquee effect */
  @keyframes marquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }

/* ====== ABOUT SECTION =====*/
.about {
    padding: 40px 40px;
    background-color: var(--background); 
}

.about .container {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.about h1 {
    margin-bottom: 24px;
    text-align: center;
}
/* Added strong styling so that the welcome message stands out*/
.about p {
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: center; 
}

.about p strong {
    font-weight: 900;
    font-family: 'SukhumvitSet-bold', sans-serif;
    text-align: center;
    font-size: 18px;
}

/* Social Media Icons - Has a hover effect so that it stands out */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
}

/* :nth-child() added a custom hover colour for each social media background  | Source: https://dev.to/piyushpatil1243/5-css-social-media-icons-hover-effects-l87 */ 
/* Facebook */
.social-icon:nth-child(1):hover {
    background-color: #3b5998;  
}

/* Instagram - Has a gradient background */
.social-icon:nth-child(2):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* X formally known Twitter */
.social-icon:nth-child(3):hover {
    background-color: #171717;
}

/* Youtube */
.social-icon:nth-child(4):hover {
    background-color: #FF0000;
}

/* === FORM SUBMISSION MESSAGES === */ 
/* Form success message */
.form-success {
    display: none;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 16px;
    border-radius: 4px;
    margin-top: 24px;
    font-weight: bold;
}

/* Form error message */
.form-error {
    display: none;
    background-color: #ffebee;
    color: #c62828;
    padding: 16px;
    border-radius: 4px;
    margin-top: 24px;
    font-weight: bold;
}

/* Required field indicator - added an asterisk to show the section needs to be filled | Source: https://developer.mozilla.org/en-US/docs/Web/CSS/:required*/
.required::after {
    content: '*';
    color: var(--secondary-color);
    margin-left: 4px;
}

/* Styling for the scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    text-decoration: none;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    opacity: 0.5;
  }
  /* Hover effects for better user interaction */
  .scroll-top:hover {
    opacity: 1;
  }
  
  /* Smooth scrolling behaviour for the entire page */
  html {
    scroll-behavior: smooth;
  }

/* ====== FOOTER SECTION =====*/
/* Styling for the footer */
footer {
    background-color: var(--dark-grey);
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
    flex-shrink: 0;
  }

/* ====== RESPONSIVE SECTION ===== */

/* Mobile Resolution (0 - 600px) */
@media screen and (max-width: 600px) {
    /* Typography */
    h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    p {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .nav-flex {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 60px 20px 60px 20px;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-flex.active {
        right: 0;
    }
    
    .nav-flex li {
        width: 100%;
        text-align: center;
        margin: 8px 0;
    }
    
    .nav-flex li a {
        font-size: 16px;
        padding: 5px 8px;
    }
    
    .nav-button {
        width: 50%;
        margin-top: 5px;
        font-size: 16px;
        padding: 8px;
    }
    
    .logo {
        width: 150px;
        margin-bottom: 5px;
    }
    
    /* Hero Section */
    .hero {
        height: 350px; 
    }
    
    .hero-img {
        object-position: center top; 
        max-width: 100%;
    }
    
    /* Banner */
    .marquee-content {
        font-size: 14px;
    }
    
    .separator {
        margin: 0 8px;
    }
    
    /* About Section */
    .about {
        padding: 30px 15px;
    }
    
    /* Social Media */
    .social-icons {
        gap: 10px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    /* Contact Form */
    .contact-container {
        flex-direction: column;
    }
    
    .contact-image-container img {
        height: 330px;
        object-fit: cover;
    }
    
    .contact-form {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    /* Footer */
    footer {
        padding: 15px;
        font-size: 12px;
    }
}

/* Tablet Resolution (601px - 1023px) */
@media screen and (min-width: 601px) and (max-width: 1023px) {
    /* Typography */
    h1 {
        font-size: 36px;
    }
    
    /* Navigation - Horizontal for tablet */
    .hamburger-menu {
        display: none;
    }
    
    .nav-flex {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: static;
        width: 100%;
        height: auto;
        background: rgba(0, 0, 0, 0.5);
        padding: 10px 15px;
        gap: 15px;
    }
    
    .nav-flex li {
        width: auto;
        margin: 0;
    }
    
    .nav-flex li a {
        font-size: 16px;
        padding: 6px 8px;
    }
    
    .nav-button {
        width: auto;
        margin-top: 0;
    }

    .logo {
        width: 150px;
    }
    
    /* Hero Section */
    .hero {
        height: 500px;
    }

    .hero-img {
        max-width: 100%;
    }
    
    /* About Section */
    .about {
        padding: 35px 25px;
    }

    /* Contact Form */
    .contact-container {
        gap: 20px;
    }
    
    /* Social Media */
    .social-icons {
        gap: 15px;
    }
    
    /* Timeline */
    .timeline-content {
        padding: 20px;
    }
}

/* Desktop Resolution (1024px and above) */
@media screen and (min-width: 1024px) {
    /* Navigation - Horizontal for desktop */
    .hamburger-menu {
        display: none;
    }
    
    .nav-flex {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: static;
        width: 100%;
        height: auto;
        background: rgba(0, 0, 0, 0.5);
        padding: 10px 20px;
    }
    
    .hero-img {
    max-width: 100%; 
    }
    
    .nav-flex li {
        width: auto;
        margin: 0;
    }
    
    .nav-button {
        width: auto;
        margin-top: 0;
    }
}
