video {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    filter: blur(5px) brightness(1) opacity(0.8);
    z-index: -1; /* Ensure the video stays behind the content */
}

html, body {
    height: 100%;
}

/* Fade-in Animation */
@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.viewport-header {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center-align logo and h2 */
    justify-content: center; /* Center in viewport */
    gap: 0.5vh; /* Add dynamic spacing based on viewport height */
    position: relative;
    height: 100vh;
    text-align: center;
}

#logo {
    max-width: 60%; /* Responsive logo size */
    height: auto;
    opacity: 0; /* Start hidden */
    /* animation: fade-in 1.5s 1.5s forwards; */
    z-index: 1;
    filter: brightness(1.8) drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.5));
}

.viewport-header h2 {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 2vw; /* Responsive font size */
    letter-spacing: 0.7vw;
    color: white;
    opacity: 0;
    margin: 0; /* Remove fixed margins */
    /* animation: fade-in 1.5s 1.5s forwards; */
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.5));
    padding-bottom: 6vh;
}

/* Adjust spacing for smaller screens */
@media (max-width: 768px) {
    .viewport-header {
        gap: 3vh; /* Smaller gap for smaller viewports */
    }

    #logo {
        max-width: 70%;
    }

    .viewport-header h2 {
        font-size: 2.5vw; /* Larger text on small screens */
        letter-spacing: 1vw;
    }
}

@media (max-width: 480px) {
    .viewport-header {
        gap: 2vh; /* Minimal spacing */
    }

    #logo {
        max-width: 80%;
    }

    .viewport-header h2 {
        font-size: 4.5vw;
        letter-spacing: 1vw;
    }
}

/* Overlay styling */
@-moz-keyframes overlay { 0% { opacity: 0; } 100% { opacity: 1; } }
@-webkit-keyframes overlay { 0% { opacity: 0; } 100% { opacity: 1; } }
@-o-keyframes overlay { 0% { opacity: 0; } 100% { opacity: 1; } }
@-ms-keyframes overlay { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes overlay { 0% { opacity: 0; } 100% { opacity: 1; } }

#overlay {
    /* -moz-animation: overlay 1.5s 1.5s forwards;
    -webkit-animation: overlay 1.5s 1.5s forwards;
    -o-animation: overlay 1.5s 1.5s forwards;
    -ms-animation: overlay 1.5s 1.5s forwards;
    animation: overlay 1.5s 1.5s forwards; */
    background-attachment: fixed, fixed;
    background-image: url("img/overlay-pattern.png"), url("img/overlay.svg");
    background-position: top left, center center;
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
    height: 100%;
    z-index: 0;
    left: 0;
    opacity: 0.55;
    position: fixed;
    top: 0;
    width: 100%;
    filter: brightness(1.5);
}

/* Scroll button */
.scroll {
    position: absolute;
    z-index: 1;
    bottom: 20%;
    width: 60px;
    height: 60px;
    border: 2px solid white;
    border-radius: 50%;
    opacity: 0;
    cursor: pointer;
    /* animation: fade-in 1.5s 1.5s forwards, down 1.5s 2.5s infinite; */
    transition: width 0.3s ease, height 0.3s ease;
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.5)) brightness(1);
    /* -webkit-animation: down 2.5s infinite; */
}

.scroll::before {
    content: '';
    position: absolute;
    top: 15px; 
    transform: translateX(-50%) rotate(-45deg); 
    width: 18px;
    height: 18px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
}

/* Content main */
.content-section {
    height: auto; /* Full viewport height */
    background-color: white; /* White background */
    color: black;
    /* display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 2rem;
    padding: 20px;
    z-index: 1; */
}

/* h1, p {
    margin: 0;
} */


/* Base state: all hero elements invisible before video loads */
#logo,
.viewport-header h2,
.scroll {
    opacity: 0;
    transform: translateY(14px);               /* slightly stronger fade-up */
    transition: opacity 1.1s ease-out, 
                transform 1.1s ease-out;
}

/* When video is ready → fade everything in */
/* body.video-ready #overlay {
    opacity: 0.55;
    transform: translateY(0);
} */

body.video-ready #logo {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;                   /* LOGO fades in first */
}

body.video-ready .viewport-header h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.55s;                   /* TITLE fades in after logo */
}

body.video-ready .scroll {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.85s;                   /* SCROLL fades in last */
    animation: down 1.5s 1.1s infinite;        /* bouncing starts later */
}


:root{
  --main-font:"Open Sans",sans-serif;
  --heading-font:"Outfit",sans-serif;
  --accent:#767676;              /* matching the old gradient’s mid-tone   */
  --bg:white;
  --fg:black;

  --main-text-color: #0c1618;
  --gray-text-color: #565a5b;
}
*{box-sizing:border-box}
body{
  margin:0;
  font:400 1rem/1.7 var(--main-font);
  color:var(--fg);
  background:var(--bg);
}
/* Common styles */
html {
  /* font-size: 62.5%; */
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* title */
.title{
  font:500 3rem var(--heading-font);
  margin:0 0 2em;
  text-align: center;
}
.title span{               /* coloured part (“Talk”) */
  background:linear-gradient(45deg,#cdcdcd 0%,var(--accent) 50%,#272727 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* Sercvices Section */
.services-row {
    display: flex;
    row-gap: 6rem;
    column-gap: 2rem; /* horizontal spacing */
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 5rem;
  }

.services-row p {
  font-size: 1.5rem;
  line-height: 1.7;
  text-align: center;
  color: var(--gray-text-color);
}
  
.service-card {
  flex: 30%;
}

.service-card-img {
  display: block;
  height: 4rem;
  margin: 0 auto 2rem;
  filter: opacity(0.6);
}

.service-card-title {
  text-align: center;
  text-transform: uppercase;
  text-decoration: bold;
  letter-spacing: 0.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 1em;
  text-align: center;
  color: var(--gray-text-color);
  font-weight: bold;
}

.container {
  padding: 4rem 15rem;
  max-width: 120rem;
  margin: 0 auto;
}

.about-title {
  margin-bottom: 7rem;
}

/* Loader */
body:after{                          /* solid backdrop beneath spinner     */
  content:'';
  position:fixed;inset:0;
  background: var(--bg);
  z-index:998;
}
body.loaded:after{display:none}

.preloader{
  position:fixed;inset:0;
  background: var(--bg);
  display:grid;
  place-items:center;
  z-index:999;
  opacity:1;visibility:visible;
  transition:opacity .4s ease-out, visibility .4s ease-out;
}
.preloader div{
  display:flex;
  font:400 2.5rem var(--heading-font);
  text-transform:uppercase;
  color: var(--fg);
  letter-spacing:2px;
}
.preloader div span{
  padding:0 6px;
  animation:loader 1s linear infinite;
}
.preloader div span:nth-child(2){animation-delay:.1s}
.preloader div span:nth-child(3){animation-delay:.2s}
.preloader div span:nth-child(4){animation-delay:.3s}
.preloader div span:nth-child(5){animation-delay:.4s}
.preloader div span:nth-child(6){animation-delay:.5s}
.preloader div span:nth-child(7){animation-delay:.6s}

@keyframes loader{from{opacity:1}to{opacity:0}}

body.loaded .preloader{opacity:0;visibility:hidden}


/* Contact */
/* ---------- Contact Section ---------- */
.contact-section{
  max-width:1000px;
  padding:110px 20px;
  margin:auto;
}
.contact-row{
  display:flex;
  flex-wrap:wrap;
  gap:40px;
}
.contact-col{
  flex:1 1 300px;
}

.title-heading{
  display:inline-block;
  padding-left:20px;
  font:500 .9rem var(--heading-font);
  letter-spacing:1px;
  text-transform:uppercase;
  position:relative;
  color:#777;
}
.title-heading:before{
  content:'';
  position:absolute;
  top:50%;left:0;
  translate:0 -50%;
  width:12px;height:12px;
  border:2px solid #ccc;
  border-radius:50%;
}
.contact-heading{
  font:500 3rem var(--heading-font);
  margin:0 0 1em;
}
.contact-heading span{               /* coloured part (“Talk”) */
  background:linear-gradient(45deg,#cdcdcd 0%,var(--accent) 50%,#272727 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* contact details (Email / Call) */
.contact-details h6{
  font:500 .9rem var(--heading-font);
  text-transform:uppercase;
  letter-spacing:1px;
  margin:0 0 .3em;
}
.contact-details h3{margin:.3em 0 1.2em}

/* links inside the contact section */
.contact-link{
  text-decoration:none;          /* no underline */
  color:var(--fg);               /* inherit the dark text colour */
}
.contact-link:hover{
  color:var(--accent);           /* optional: accent on hover */
  /* text-decoration:none;       /* keep off if you don’t want an underline on hover */
}

/* ---------- Form ---------- */
form{
  margin-top:1rem;
}
input[type="text"],
input[type="email"],
textarea{
  width:100%;
  padding:14px 18px;
  margin-bottom:1rem;
  border:1px solid #ccc;
  border-radius:.45em;
  font:400 1rem var(--main-font);
  transition:border-color .15s;
}
input:focus,textarea:focus{border-color:var(--accent);outline:none}
textarea{height:160px;resize:vertical}

/* ---------- Button ---------- */
.button{
  position:relative;
  display:inline-block;
  cursor:pointer;
  font:500 .9rem var(--heading-font);
  text-transform:uppercase;
  letter-spacing:1px;
  padding:13px 30px;
  border:1.5px solid var(--fg);      /* ← visible border          */
  background:var(--fg);
  color:var(--bg);
  border-radius:3em;
  overflow:hidden;
  transition:background .15s, color .15s, border-color .15s;
}

/* state styles */
.button:hover,
.button:focus{
  background:var(--bg);
  color:var(--fg);
  border-color:var(--fg);          /* keeps border in hover      */
  outline:0;                       /* remove default focus ring  */
}
.button:active{
  background:var(--accent);
}

/* Footer */
.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.footer-social {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 0;
}

.footer-social img {
  width: 1.8rem; /* adjust size as you like */
  height: auto;
  filter:opacity(0.6);
}

.footer p {
  color: var(--gray-text-color);
  font-size: small;
}

.footer-copyright {
  font-size: 1.6rem;
}

.footer a,
.footer p a {
  text-decoration: none;
  color: var(--gray-text-color);
}

@media (max-width: 1150px) {
  .contact-col{
    text-align:center;
  }

  .container {
    padding: 4rem 5rem;
    max-width: 120rem;
    margin: 0 auto;
  }
}

/* Shrink button on smaller viewports */
@media (max-width: 600px) {
  .service-card {
    flex: 100%;
  }

  .title {
    font: 400 2.5rem var(--heading-font);
  }

  .contact-heading {
    font: 400 2.5rem var(--heading-font);
    margin: 0 0 1em;
  }

  .services-row {
    margin-bottom: 4rem;
    row-gap: 1.5rem;
  }

  .footer-copyright {
    text-align: center;
  }

}

/* === hide the pattern overlay on handheld / narrow screens === */
@media (max-width: 600px),
       (hover: none) and (pointer: coarse) /* “true” touch devices         */ {
  #overlay {
    display: none !important;
  }
}

@media (max-width: 500px) {

  .container {
    padding: 4rem 3rem;
  }

  .service-card p {
    font-size: 1em;
  }

  .contact-details h3 {
    font-size: 1em;
  }
}

@keyframes down {
	0% {
		transform: translate(0);
	}
	20% {
		transform: translateY(15px);
	}
	40% {
		transform: translate(0);
	}
}

@keyframes scroll {
	0% {
		height: 40px;
	}
	30% {
		height: 70px;
	}
	60% {
		height: 40px;
	}
}