:root {
    --white: rgb(255, 255, 255);
    --white2: rgb(245, 245, 245);
    --black: rgb(0, 0, 0);
    --black2: rgb(18, 18, 18);
    --black3: rgb(24, 24, 24);
    --black4: rgb(42, 42, 42);
    --main-color: rgb(228, 228, 228);
    --main-color2: rgb(139, 139, 139);
    --secondary-color: rgb(63, 63, 63);
    --secondary-color2: rgb(83, 83, 83);
}

::-webkit-scrollbar {
    width: 6px;
}

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

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

@font-face {
    font-family: "Old";
    src: url("OldEnglishFive-axyVg.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: black;
    margin: 0;
    padding: 0;
}

p, li {
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--main-color);
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}

img {
    user-select: none;
}

div {
    user-select: none;
}

.noSelect {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.noSelect:focus {
    outline: none !important;
}

body {
    margin: auto;
    margin-top: 90px;
    background-image: linear-gradient(to bottom right, var(--black2), var(--black4));
    align-items: center;
    overflow-x: hidden;
}

.header {
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--black);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75); /* adjust opacity as needed */
    backdrop-filter: blur(21px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--white);
    z-index: 10;
    box-shadow: 0 9px 15px rgba(255, 255, 255, 0.12);
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
}

.bottom-header {
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 100%;
    height: 300px;
    background-color: var(--black);
    backdrop-filter: blur(3px);
    border-top: 9px solid var(--black4);
    filter: brightness(120%);
}

.home {
    margin: auto;
    width: 85%;
    z-index: 0;
    padding-bottom: 30px;
    padding-top: 0px;
}

.title-text {
    font-family: "Old";
    margin: 11vw;
    margin-bottom: 21px;
    text-align: center;
    font-size: 2.4vw;
    color: var(--white);
    font-weight: bolder;
    letter-spacing: 2.4px;
    transform: scaleY(1.3);
}

.title-text2 {
    font-family: "Old";
    margin: 3vh;
    margin-bottom: 3vh;
    text-align: center;
    font-size: 2.7vw;
    color: var(--white);
    font-weight: bolder;
    letter-spacing: 2.4px;
    transform: scaleY(1.3);
}

.title-text3 {
    font-family: "Old";
    margin: 3.9vh;
    margin-bottom: 4.5vh;
    text-align: center;
    font-size: 2.7vw;
    color: var(--white);
    font-weight: bolder;
    letter-spacing: 2.4px;
    transform: scaleY(1.3);
}

.subtitle-text {
    font-weight: 400;
    margin-left: 6px;
    font-size: 1.05vw;
    text-align: start;
    color: var(--white);
    letter-spacing: 1.2px;
    transform: scaleY(1.3);
    font-weight: bold;
    margin-bottom: 3px;
}

.main-text {
    text-align: start;
    margin-left: 6px;
    margin-right: 6px;
    margin-bottom: 21px;
    font-size: 1.2vw;
    color: var(--main-color);
    filter: brightness(0.9);
    letter-spacing: 0px;
}

.promo-text {
    text-align: center;
    font-size: 0.9vw;
    color: var(--secondary-color2);
    margin: auto;
    margin-right: 30px;
    margin-left: 30px;
}


.nav-scroll {
    font-size: 1.8vw;
    color: var(--secondary-color2);
    font-weight: bolder;
}

li {
    text-align: center;
    font-size: 1.2vw;
    color: var(--main-color);
    margin: auto;
    text-align: start;
    margin-bottom: 6px;
    letter-spacing: 0px;
    filter: brightness(0.9);
}

/* ================= EXPERTISE CARD ================= */
.expertise-div {
    background-image: linear-gradient(to bottom right, var(--black4), var(--secondary-color));
    border: 1px solid var(--black);
    box-shadow: 3px 3px 15px rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    padding: 15px;
    padding-top: 45px;
    padding-bottom: 45px;   
    margin-top: 6px;
    margin-bottom: 6px;

    display: flex;
    flex-direction: column; /* 👈 IMPORTANT */
}

/* ================= HEADER ================= */
.expertise-header {
    width: 100%;
    display: flex;
    flex-direction: column;     /* title then arrow */
    align-items: flex-start;
    cursor: pointer;
}

.expertise-header .subtitle-text {
    margin: auto;
    text-align: center;
    color: var(--main-color2);
}

/* ================= ARROW ================= */
.expertise-header .arrow {
    width: 100%;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9vw;
    color: var(--main-color);
    transition: transform 0.3s ease;
}

/* ================= CONTENT ================= */
.expertise-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s ease, opacity 0.3s ease;
}

/* ================= EXPANDED STATE ================= */
.expertise-div.active .expertise-content {
    max-height: 1200px; /* safe height */
    opacity: 1;
}

.expertise-div.active .arrow {
    transform: rotate(180deg);
}

/* ================= MOBILE ================= */
@media (max-width: 800px) {
    .expertise-header .arrow {
        font-size: 3vw;
    }
}


.repair-bg {
    position: relative;
    overflow: hidden; /* keeps the blur inside the rounded corners */
}

.repair-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../icons/repairs.jpg"); /* your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(2px) brightness(0.5);       /* <-- the blur */
    transform: scale(1.1);   /* prevents edge clipping after blur */

    z-index: 0;
}

.repair-bg > * {
    position: relative;
    z-index: 1; /* keeps your text and content sharp */
}




/* Make the old structure behave like a background-card layout */

.news-div{
    background-image: linear-gradient(to bottom right, var(--secondary-color), var(--main-color2));
    border: 1px solid var(--main-color);
    box-shadow: 3px 3px 15px rgba(255, 255, 255, 0.08);
    outline-offset: -9px;
    display: flex;
    align-items: center;
    height: auto;
    transition: all 200ms;
    border-radius: 6px;
    margin-top: 5px;
    margin-bottom: 3px;
}

.news-div2 {
  background-color: black;
  background-size: cover;
  background-position: center;

  border: 3px solid var(--secondary-color);
  box-shadow: 1px 1px 3px rgba(255, 255, 255, 0.08);
  position: relative;
  border-radius: 6px;
  overflow: hidden;

  height: 300px;
  padding: 45px;
  display: flex;
  justify-content: center;
  align-items: center;

  margin-top: 6px;
  margin-bottom: 6px;
}

/* Make the <img> become the background */
.news-div2 .latest-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 1;
    filter: brightness(0.55)blur(4px); 
    transition: transform 0.6s ease-in-out, filter 0.6s ease-in-out;
}

/* Center the text container */
.news-div2 > div {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Centering the existing text styles */
.news-div2 .subtitle-text,
.news-div2 .main-text {
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    color: white !important;
    text-shadow: 0px 0px 12px black;
    margin-left: 30px;
    margin-right: 30px;
    font-size: 1.8vw;
}

/* Hover effect */
.news-div2:hover .latest-image {
    filter: brightness(0.6) blur(3px);
    transform: scale(1.1);
}

.news-div2:hover {
    transform: scaleX(1.005);
    border: 3px solid var(--main-color2);
    box-shadow: 3px 3px 30px rgba(255, 255, 255, 0.1);
}

.collage {
    width: 100%;
    margin: auto;
    padding: 3px 0;
}

.collage-container {
    width: 100%;
    display: flex;
    gap: 3px;
    justify-content: center;
    flex-wrap: wrap;
}

.column {
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 33%;
}

.photo img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    border-radius: 3px;
}

.icon-container {
    margin-top: 45px;
    margin-bottom: 30px;
    height: 180px;
    display: flex;
    flex-direction: column;
    gap: 18%;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(to bottom right, var(--secondary-color), var(--main-color2));
    border: 2px solid var(--main-color);
    outline: 1px solid var(--main-color);
    box-shadow: 3px 3px 15px rgba(255, 255, 255, 0.08);
    outline-offset: -9px;
    border-radius: 15px;
}

.icon-div {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 30px;
    margin-right: 30px;
    cursor: pointer;
}

.icon-div:hover {
    filter: brightness(1.5);
}

.icon-container a {
    text-decoration: none;
}

.icon-container img {
    width: 15px;
    height: 15px;
    padding: 3px;
    margin: auto;
    margin-bottom: 6px;
}

.latest-image {
    width: 12%;
    height: auto;
    display: inline-block;
    object-fit: cover;
    padding: 0px;
    margin-right: 6px;
    border-radius: 6px;
}

.hidden {
    opacity: 0.15;
    filter: blur(0.05rem);
}

.show {
    opacity: 1;
    filter: blur(0rem);
    transition: all 600ms;
}

.hidden2 {
    opacity: 0.2;
    filter: blur(0.05rem);
    transform: translateX(+2%);
}

.show2 {
    opacity: 1;
    filter: blur(0rem);
    transform: translateX(0);
    transition: all 600ms;
}

.social-navbar {
    margin-top: 6px;
    height: 45px;
    background-image: linear-gradient(to bottom right, var(--secondary-color), var(--main-color2));
    z-index: 9;
    padding: 0px 0;
    text-align: right;
    padding-right: 12px;
    padding-left: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    vertical-align: middle;
}

.social-icons a {
    margin: 12px;
    display: inline-block;
}

.nav-icon {
    height: 18px;
    width: 18px;
    transition: transform 0.2s ease;
}

.nav-icon:hover {
    transform: scale(1.2);
}

.cv-button {
    width: 240px;
    height: 45px;
    font-size: 2vh;
    background-color: var(--main-color2);
    color: white;
    cursor: pointer;
    outline: rgb(255, 255, 255) solid 1.5px;
    transition: background-color 0.2s ease;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 6px;
    text-align: center;
}

.cv-button:hover {
    background-color: white;
    color: black;
}

.collage2 {
    height: clamp(330px, 90vh, 900px);
    width: 100%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    margin: auto;
    background-color: var(--black);
    background: radial-gradient(
        circle at 90% 90%,
        rgba(200,200,200,0.18) 0%,
        rgba(30,30,30,0.06) 40%,
        rgba(0,0,0,1) 85%
    );

    /* pulse animation */
    animation: glowPulse 9s ease-in-out infinite;
}

@keyframes glowPulse {
    0% { background-size: 130% 150%; }
    50% { background-size: 100% 100%; }
    100% { background-size: 130% 150%; }
}



.collage2-main-img {
    display: block;
    width: 22vh;
    height: 22vh;
    border-radius: 100%;
    object-fit: cover;
    object-position: center;
    background-color: transparent;
    position: relative;
    z-index: 1;
    margin: auto;
    margin-top: 22vh;
    border: 1px solid var(--black4);
    box-shadow: 1px 1px 3px rgba(255, 255, 255, 0.7);
}

.fade-in-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

/* --- CAROUSEL CONTAINER --- */
.carousel {
    width: 100%;      /* adjust if needed */
    height: 50vh;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;

  opacity: 0;
  animation: fade 15s infinite; 
}

/* 15s total / 3 images = 5s intervals */
.carousel-track img:nth-child(1) { animation-delay: 0s; }
.carousel-track img:nth-child(2) { animation-delay: 5s; }
.carousel-track img:nth-child(3) { animation-delay: 10s; }

@keyframes fade {
  0% { opacity: 0; }
  5% { opacity: 1; }         /* Fade in during the first 0.75s */
  33.33% { opacity: 1; }     /* Stay fully visible until 5s */
  38.33% { opacity: 0; }     /* Fade out over the next 0.75s */
  100% { opacity: 0; }
}



@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Consolidation of inline styles from NEWS and BIO sections */
.news-div2 div {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 30px; /* Replaces inline margins */
}

/* Specific styling for the date/timestamp that was display:none */
.news-date {
    display: none; /* Keep hidden as per original design */
    margin: 6vw;
    margin-left: auto;
    position: absolute;
    right: 0;
    font-size: 0.9vw;
}

/* CV Section specific styling */
#cvSection {
    display: none;
    margin-top: 30px;
}

.cv-heading {
    color: var(--white);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Separator lines (BIO section) */
.bio-separator {
    margin-bottom: 12px;
    border: 1.5px solid rgb(132, 132, 132);
    outline: none;
}

/* --- Missing Layout Classes --- */

/* Fixes the Header and Section Divider */
.header-line {
    width: 100%; 
    height: 1px; 
    margin-bottom: 6px; 
    background-color: white;
}

.section-divider {
    width: 100%; 
    height: 1px; 
    margin-top: 0; 
    margin-bottom: 6px; 
    background-color: white; 
    opacity: 0.3;
}

/* Fixes Hero/Title Text Positioning */
.hero-text-container {
    position: absolute; 
    top: 45vh; 
    width: 100%;
}

.hero-name {
    position: relative; 
    font-size: 3.9vh; 
    font-weight: bold; 
    color: darkgray; 
    z-index: 2; 
    width: auto; 
    margin-right: 15px; 
    margin-left: 15px; 
    margin-bottom: 15px;
}

.hero-nav-links {
    position: relative; 
    color: white; 
    z-index: 3; 
    text-align: center; 
    margin-top: 1.5vh; 
    margin-left: 0px;
    letter-spacing: 1px;
}

/* Expertise Title spacing */
.expertise-title {
    text-align: center; 
    margin-top: 30px; 
    margin-bottom: 15px;
}

/* Fixes CV Section Layout */
.cv-container {
    height: auto; 
    padding-top: 60px; 
    padding-bottom: 60px;
}

.cv-wrapper {
    width: 90%; 
    text-align: center;
}

.cv-title {
    text-align: center; 
    margin-bottom: 15px; 
    margin-top: 0px;
}

/* Newsletter & Contact Layouts */
.newsletter-container {
    border-bottom-right-radius: 0px; 
    border-bottom-left-radius: 0px; 
    margin-bottom: 0px; 
    height: auto; 
    padding-top: 60px; 
    padding-bottom: 60px;
}

.newsletter-form {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 10px; 
    width: 100%;
}

.newsletter-input {
    width: 70%; 
    max-width: 400px; 
    padding: 12px; 
    border-radius: 6px; 
    border: none;
}

.contact-container {
    border-top-right-radius: 0px; 
    border-top-left-radius: 0px; 
    margin-top: 0px;
}

.contact-prompt {
    margin: 0px; 
    text-align: center; 
    padding: 0px;
}

.email-display {
    margin-top: 1.2vw;
}

.contact-socials {
    display: flex;
}

/* Footer Fixes */
.footer-logo {
    cursor: pointer; 
    height: 21%; 
    margin: auto; 
    opacity: 0.3;
}

ins.adsbygoogle {
    background: #222; /* Dark background to match your site */
    border: 1px dashed #444;
    display: block;
    min-height: 100px;
}





/* Update the Hero Container */
.collage2 {
    position: relative;
    height: 76vh; /* Increased height for impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Make carousel images act as background */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-carousel img {
    filter: brightness(0.7) blur(2.5px); /* Darken images so text pops */
    transition: opacity 1.5s ease-in-out;
    box-shadow: 1px 1px 3px rgba(255, 255, 255, 0.6);
}

/* Content Overlay Styling */
.hero-overlay {
    position: relative;
    z-index: 5;
    padding: 20px;
    max-width: 800px;
}


.hero-name {
    font-size: clamp(1rem, 4.5vh, 8rem) !important;
    margin: 33vh 0 0 0 !important;
    letter-spacing: 2.7px;
    color: var(--main-color2);
    
}


.news-div2 {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
}

/* This creates the highlight layer ON TOP of the images */
.news-div2::after {
  content: "";
  position: absolute;
  inset: 0;               /* Stretch to fill the whole div */
  pointer-events: none;    /* Crucial: allows you to click the images/links underneath */
  z-index: 10;            /* Ensures it sits above the carousel images */
  
  /* The "Bright Bottom-Right" Effect */
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0) 60%, 
    rgba(255, 255, 255, 0.36) 100%
  );

  /* Optional: Adds a bright "lip" to the bottom and right edges */
  box-shadow: inset -2px -2px 10px rgba(255, 255, 255, 0.3);
}


@media (max-width: 800px) {
    .home {
        width: 97%;
    }

    .header {
        height: 90px;
    }

    .title-text {
        font-size: 6vw;
        margin-top: 120px;
        margin-left: 3%;
        margin-right: 3%;
        margin-bottom: 12px;
    }

    .title-text2 {
        font-size: 6vw;
        margin-left: 3%;
        margin-right: 3%;
    }

    .title-text3 {
        font-size: 4.5vw;
        margin-left: 3%;
        margin-right: 3%;
    }
      

    .subtitle-text {
        font-size: 3.3vw;
        margin-bottom: 3px;
    }

    .news-div2, .news-div2:hover{
        border: 1px solid var(--secondary-color2);
    }

    .news-div2 .subtitle-text{
        font-size: 4.8vw;
    }
    .news-div2 .main-text {
        font-size: 4.2vw;
    }

    .nav-scroll {
        font-size: 4.9vw;
        letter-spacing: 0px;
        font-weight: bold;
    }

    .hero-name {
    font-size: clamp(1rem, 2.7vh, 8rem) !important;
    margin: 33vh 0 0 0 !important;
    }

    .main-text {
        font-size: 3.3vw;
        margin-bottom: 15px;
    }

    .promo-text {
        text-align: center;
        font-size: 3vw;
    }

    li {
        font-size: 3.3vw;
        margin-bottom: 9px;
    }

    .latest-image {
        width: 42%;
    }

    .collage-container {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .column {
        margin: auto;
        display: flex;
        flex-direction: column;
        gap: 1vw;
        width: 100%;
    }

    .icon-div {
        margin-left: 12px;
        margin-right: 12px;
    }

    .collage2 {
        height: calc(100vh - 195px);
    }

    .collage2-main-img {
        margin-top: 120px;
    }
}
