/* Font imports - Move these to the top of the file */
@font-face {
    font-family: 'Thunder';
    src: local('Thunder'),
         url('/fonts/Thunder-LC.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    font-synthesis: none;
}

@font-face {
    font-family: 'Thunder';
    src: local('Thunder'),
         url('/fonts/Thunder-MediumLC.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    font-synthesis: none;
}

@font-face {
    font-family: 'Thunder';
    src: local('Thunder'),
         url('/fonts/Thunder-SemiBoldLC.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    font-synthesis: none;
}

@font-face {
    font-family: 'Thunder';
    src: local('Thunder'),
         url('/fonts/Thunder-BoldLC.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    font-synthesis: none;
}

:root {
    --font-white: #f5f5f5; 
    --bg-dark: #0F0F0F;
    --gradient-1-yellow: #e2b772;
    --gradient-2-red: #eb5255;
    --gradient-3-blue: #7daff8;
    --gradient-4-purple: #b26cb3;
  }

/* Base styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Thunder', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--font-white);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.nav-container {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    top: 1rem;
    padding: 1rem;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, .48);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-height: 2.5rem;
}

.nav {
    display: flex;
    gap: 2rem;
    margin-left: 2rem;
}

.nav-link {
    color: var(--font-white);
    text-decoration: none;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    font-weight: 400;
    line-height: 1.25;
    transition: all;
    transition-duration: 300ms;
    transition: all 0.4s ease-in-out;
    padding-top: 0.25rem;
    cursor: pointer;
}

.nav-link:hover {
    background: url("/img/gradient-btn-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-btn {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.4s ease-in-out;
    text-decoration: none;
    color: var(--bg-dark) !important;
    background: url("/img/gradient-btn-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0.5rem 0.5rem 0.25rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all;
    transition-duration: 300ms;
    cursor: pointer;
    white-space: nowrap;
}

.nav-btn:hover {
    scale: 1.05;
    color: var(--font-white) !important;
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;  /* Ensure background doesn't create scrollbars */
}

.hero-title {
    position: absolute;
    font-size: 3.5rem;
    max-width: 50rem;
    width: 90vw;
    margin: 4rem auto auto;
    line-height: 0.9;
    font-weight: 600;
    text-rendering: geometricPrecision;
    top: 43%;
    z-index: 20;         /* Ensure text stays on top */
    text-transform: uppercase;
}

.house-diagram {
    position: relative;
    inset: 0;          /* Fill the entire container */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;        /* Place behind the text */
    width: 100%;
    max-width: 30rem;
}

.house-wrapper {
    width: min(90%, 28rem);
    aspect-ratio: 1 / 1;
    /* background-color: green; */
    object-fit: contain;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    position: relative;
}

#gradient-anim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    mask-image: url(/img/final-house-sm.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask: url(/img/final-house-sm.svg);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
	/* filter: url('data:image/svg+xml, <svg><filter id="noiseFilter" width="140%" height="140%"><feTurbulence type="fractalNoise" baseFrequency="0.8" stitchTiles="stitch" /><feColorMatrix in="colorNoise" type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /><feComposite operator="in" in2="SourceGraphic" result="monoNoise" /><feBlend in="SourceGraphic" in2="monoNoise" mode="multiply" /></filter></svg>#noiseFilter'); */
}

.filter {
	display: none;
}

.meshgradient {
    width: 100%;
    height: 100%;
    position: relative;
}


.color {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	filter: blur(60px);
	mix-blend-mode: normal;
}

.c1 {
	background: radial-gradient(#7daff8 100%, transparent 0%);
	animation: wave1 5s infinite ease-in-out;
}

.c2 {
	background: radial-gradient(#e2b772 100%, transparent 0%);
	animation: wave2 8s infinite ease-in-out;
}

.c3 {
	background: radial-gradient(#b26cf3 100%, transparent 0%);
	animation: wave3 10s infinite ease-in-out;
}

.c4 {
	background: radial-gradient(#eb5255 100%, transparent 0%);
	animation: wave4 6s infinite ease-in-out;
}

@keyframes wave1 {

	0%,
	100% {
		transform: translate(0%, 0%) scale(1);
	}

	25% {
		transform: translate(20%, 15%) scale(1.5) rotate(8deg);
	}

	50% {
		transform: translate(60%, 60%) scale(1.2) rotate(-8deg);
	}

	75% {
		transform: translate(15%, 70%) scale(1.4) rotate(5deg);
	}
}

@keyframes wave2 {

	0%,
	100% {
		transform: translate(0%, 0%) scale(1);
	}

	25% {
		transform: translate(-15%, 20%) scale(1.4) rotate(-5deg);
	}

	50% {
		transform: translate(-60%, 65%) scale(1.2) rotate(8deg);
	}

	75% {
		transform: translate(-20%, -20%) scale(1.3) rotate(-8deg);
	}
}

@keyframes wave3 {

	0%,
	100% {
		transform: translate(0%, 0%) scale(1);
	}

	25% {
		transform: translate(15%, -20%) scale(1.3) rotate(10deg);
	}

	50% {
		transform: translate(70%, -60%) scale(1.2) rotate(-6deg);
	}

	75% {
		transform: translate(20%, 10%) scale(1.5) rotate(4deg);
	}
}

@keyframes wave4 {

	0%,
	100% {
		transform: translate(0%, 0%) scale(1);
	}

	25% {
		transform: translate(-20%, -15%) scale(1.4) rotate(-9deg);
	}

	50% {
		transform: translate(-75%, -75%) scale(1.2) rotate(7deg);
	}

	75% {
		transform: translate(-10%, -60%) scale(1.3) rotate(-5deg);
	}
}
  
.color-btn {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	filter: blur(30px);
	mix-blend-mode: normal;
}

.house-clip {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    width: min(100%, 28rem);
    aspect-ratio: 1 / 1;
    object-fit: cover;
	display: relative;
}

.house-diagram .hero-description {
    margin-top: 1rem;
    font-size: 1.75rem;
    line-height: 1.1;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;        /* Keep above background */
}

.scroll-indicator-mobile {
	display: none;
}

.arrow-down {
    /* height: 16px; */
    width: auto;
    opacity: 0.7;
    animation: pulse 4s ease-in-out infinite;
    background: #999;
    clip-path: url(#chevron);
    -webkit-clip-path: url(#chevron);
}

.scroll-indicator:hover .arrow-down {
    background: url("/img/gradient-bg-text.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    clip-path: url(#chevron);
    -webkit-clip-path: url(#chevron);
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1.0; }
    100% { opacity: 0.7; }
}

/* Organization Structure */
.row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 500;
}

.row.middle {
    justify-content: space-between;
    max-width: 800px;
    padding: 0 2rem;
}

.house-icon {
    width: 160px;
    height: 160px;
}

/* Portfolio Grid */
.work-wrapper {
    width: 100%;
    overflow: hidden;
    margin: 4rem 0 6rem;
    position: relative;
    display: flex;
    justify-content: center;
}

.work-grid {
    display: flex;
    gap: 2rem;
    width: 100vw;
    max-width: 2000px;
}

.work-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.work-item {
    position: relative;
    width: 100%;
    aspect-ratio: 107/133;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
    transition: transform 0.3s ease;
    will-change: transform;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-heading {
    font-size: clamp(4rem, 8vw, 12rem);
    font-weight: 600;
    text-rendering: geometricPrecision;
    text-transform: uppercase;
    line-height: 1.1;
}

/* .col-1, .col-3, .col-5 {
    transform: translateY(-50%);
} */

/* Flow Section */
.flow-section {
    padding: 6rem 2rem;
    text-align: center;
}
.flow {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 6rem auto auto;
    gap: 0.75rem;
}
.flow-row-text-1, .flow-row-text-2 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
}

.flow-row-text-2 {
    margin-top: 0.25rem;
}

.flow-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.align-left {
    text-align: left;
}
.align-right {
    text-align: right;
}

.flow-header {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1;
}

.flow-desc {
    /* margin-top: 1rem; */
    font-size: 1.4rem;
    color: #c3c3c3;
}

.flow-box {
    height: 6rem;
    /* border: 2px solid var(--font-white); */
    border-left: 0px;
    /* background-color: var(--font-white); */
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 2rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.pricing-desc {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
    margin-top: -8px;
}

.pricing-table {
    display: flex;
    flex-direction: row;
    margin: auto;
    max-width: 800px;
    justify-content: space-between;
    gap: 4rem;
}

/* .pricing-cell:hover .pricing-cost {
    animation: rotateBackground 2s alternate infinite;
} */

.pricing-cost {
    font-size: 5rem;
    font-weight: 600;
    line-height: 1;
    background: url("/img/gradient-bg-text.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

@keyframes rotateBackground {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 100% 100%;
    }
}

.pricing-services {
    font-size: 1.5rem;
    line-height: 1.3;
}

.cta {
    display: flex;
    justify-content: center;
}
.cta a {
    text-decoration: none !important;
    color: var(--font-white);
}
.primary-button {
    margin: auto;
    font-size: 2rem;
    font-weight: 500;
    position: relative;
    /* background: url("/img/gradient-btn-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; */
    padding: 1rem 2rem 0.75rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0rem;
    transition: all;
    transition-duration: 300ms;
    cursor: pointer;
    color: var(--bg-dark);
    text-align: center;
    overflow: hidden;
}

.primary-button #gradient-anim-btn {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
	filter: url('#noiseFilter');
}

.primary-button .primary-caps {
    font-size: 3rem;
}

/* .nav-btn:hover::after {
    content: " →";
} */

.primary-button:hover {
    scale: 1.05;
    color: var(--font-white);
}

.contact-info {
    margin-top: 4rem;
    font-size: 2rem;
}

.contact-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
}

.contact-info a {
    text-decoration: none;
    color: var(--font-white);
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    scale: 0.8;
}

.footer-icon-email {
    max-height: 24px;
    margin-right: 0.5rem;
}

.footer-icon-insta {
    max-height: 28px;
    margin-right: 0.4rem;
}

.footer-link:hover {
    background: url("/img/gradient-btn-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

#process, #work, #pricing {
    scroll-margin-top: 80px;
}

.slider-container {
    width: 80%;
    max-width: 600px;
    margin: 50px auto;
    position: relative;
}
input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    height: 4px;
    outline: none;
    border-radius: 2px;
    position: relative;
    z-index: 2;
}
input[type="range"]::-webkit-slider-runnable-track {
    width: calc(100% - 16px); /* 8px offset on both sides */
    margin-left: 8px;
    margin-right: 8px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 4px;
    height: 20px;
    background: black;
    cursor: pointer;
    position: relative;
    z-index: 3;
}
input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 20px;
    background: black;
    cursor: pointer;
    position: relative;
    z-index: 3;
}
.tooltip {
    position: absolute;
    top: -35px;
    background: #222;
    color: white;
    padding: 8px 8px 4px 8px;
    border-radius: 5px;
    font-size: 1.5rem;
    line-height: 1;
    white-space: nowrap;
    transform: translateX(-50%);
}
.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-weight: 500;
    font-size: 1.75rem;
}

.video-section {
    padding: 6rem 2rem 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* .video-container {
    width: 100%;
    height: 100%;
} */
.video-container div {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
}

#video-mobile {
    display: none;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .work-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
        width: 90vw;
    }
}

@media (max-width: 1024px) {
    .work-grid {
        /* transform: rotate(-3deg) scale(1.05); */
    }

    .hero-title {
        font-size: 3rem;
        max-width: 40rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav {
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .house-diagram {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
        max-width: 35rem;
        top: 40%;
    }

    .org-structure {
        gap: 3rem;
    }

    .row.middle {
        padding: 0 1rem;
    }

    .house-icon {
        width: 120px;
        height: 120px;
    }

    .work-wrapper {
        margin: 2rem 0 4rem;
    }
    
    .work-grid {
        gap: 1rem;
        /* transform: rotate(-5deg) scale(1.05); */
        /* padding: 1rem; */
        scale: 1.3 !important;
    }
    
    .work-col {
        gap: 1rem;
    }

    .work-col:nth-child(5) {
        display: none;
    }

    .work-item {
        aspect-ratio: 400/565;
    }

    .flow-title {
        font-size: clamp(3rem, 5vw, 4rem);
        margin-bottom: 3rem;
    }

    .flow-text h3 {
        font-size: 1.5rem;
    }

    .flow-text p {
        font-size: 1rem;
    }

    .flow-grid {
        grid-template-columns: 1fr;
        row-gap: 1rem;
    }

    .flow-line, .flow-vertical-line {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 2.5rem;
    }
    
    .flow-line-content, .flow-vertical-line-content {
        background: #333;
        width: 2px;
        height: 100%;
        border-radius: 1px;  
    }

    .flow-empty {
        display: none;
    }

    .pricing-table {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        top: 0;
        left: 0;
        transform: translateX(0%);
        border-radius: 0;
        width: 100vw;
        position: fixed;
    }

    .nav {
        margin-left: 0;
        width: 100%;
        gap: 1rem;
        justify-content: space-around;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .hero {
        height: auto;
        padding-top: 10rem;
        padding-bottom: 6rem;
    }

    .house-diagram img {
        width: 100%;
    }

	.house-wrapper {
		width: 70%;
	}

    .hero-title {
        font-size: 2rem;
        top: 31%;
    }

    .hero-description {
        font-size: 1rem !important;
    }

	.scroll-indicator {
		display: none;
	}

	.scroll-indicator-mobile {
		display: block;
		position: absolute;
		bottom: 2rem;
		left: 50%;
		transform: translateX(-50%);
		z-index: 2;        /* Keep above background */
	}
	
	.arrow-down-mobile {
		width: auto;
		height: 24px;
		opacity: 0.7;
		animation: pulse 4s ease-in-out infinite;
		color: #999;
	}

    .section-heading {
        font-size: 3rem;
    }

    .work-grid {
        scale: 1.4 !important;
    }

    .flow-section {
        padding: 3rem 2rem 0;
    }

    .flow {
        margin-top: 3rem;
        gap: 2.5rem;
        position: relative;
    }

    .flow-row-text-1, .flow-row-text-2 {
        flex-direction: column;
        justify-content: start;
        gap: 2rem;
        padding-left: 1.5rem;
    }

    .flow-content {
        text-align: left !important;
    }

    .flow-header {
        font-size: 2.1rem;
    }

    .flow-desc {
        font-size: 1rem;
    }

    .flow-box {
        display: none;
    }

    .flow::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 4px; /* Width of the left border */
        background: linear-gradient(to bottom, #363636 50%, var(--gradient-4-purple), var(--gradient-3-blue), var(--gradient-2-red), var(--gradient-1-yellow));
        background-size: 100% 300%;
        animation: animatedBorder 7s ease infinite;
      }
      
      @keyframes animatedBorder {
        0% {
          background-position: 0% 150%;
        }
        100% {
          background-position: 0% 30%;
        }
      }

    .org-structure {
        gap: 2rem;
    }

    .house-icon {
        width: 100px;
        height: 100px;
    }

    .row {
        font-size: 1rem;
    }

    .booking-text, .booking-text-2 {
        font-size: 2rem;
    }

    .work-wrapper {
        margin: 1rem 0 2rem;
        height: 560px !important;
        align-items: center;
    }
    
    .work-grid {
        transform: none;
    }

    .work-col:nth-child(4) {
        display: none;
    }
    
    .work-col {
        gap: 1rem;
    }

    .contact-info {
        margin-top: 0;
    }

    .contact-links {
        flex-direction: column;
        gap: 0.25rem;
    }

    .slider-container {
        width: 100%;
        margin: 50px 0;
    }

    .pricing-section {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }

    .price-labels {
        font-size: 1.5rem;
    }

    .pricing-desc {
        font-size: 1.75rem;
        margin-top: 2px;
    }

    .video-section {
        padding-bottom: 0;
    }

    .video-container div {
        width: 100%;
        height: 100%;
        aspect-ratio: 5/4;
    }

    #video-desktop {
        display: none;
    }

    #video-mobile {
        display: block;
        width: 100%;
        height: 100%;
        aspect-ratio: 4/5;
    }
}

/* Add smooth transitions */
.work-grid, .work-col, .work-item {
    transition: all 0.3s ease-out;
}


.box__bg {
    position: relative;
    z-index: 0;
    /* height: 400px;
    width: 400px; */
    /* border-radius: 12px; */
    overflow: hidden;
    padding: 12px;
  }
  
  .box__bg::before {
    content: "";
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -450%;
    width: 200%;
    height: 1000%;
    background-color: var(--font-white);
    background-repeat: no-repeat;
    background-size: 100%100%, 50%50%;
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;
    background-image: conic-gradient(#363636 270deg, var(--gradient-4-purple), var(--gradient-3-blue), var(--gradient-2-red), var(--gradient-1-yellow));
    animation: bgRotate 7s linear infinite;
    rotate: 0deg;
    /* filter: blur(8px); */
  }
  
  .box__bg::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0px;
    top: 4px;
    width: calc(100% - 4px);
    height: calc(100% - 8px);
    background: var(--bg-dark);
    /* border-radius: 12px; */
  }
  
  @keyframes bgRotate {
    0% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(80deg);
    }
    70% {
        transform: rotate(120deg);
    }
    90% {
      transform: rotate(270deg);
    }
    100% {
        transform: rotate(1turn);
    }
  }
