/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;500;600;700&family=Open+Sans:wght@300;400;500;600&display=swap');

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}

body {
    background: #ffffff;
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

::selection {
    color: #ffffff;
    background: #000000;
}

/* Container for max-width constraint */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Layout */
main {
    padding-top: 132px;
}

main:has(.all-buildings) {
    margin-bottom: -20px;
}

header {
    position: fixed;
    z-index: 999;
    width: 100%;
    padding: 30px 0;
    transition: background-color 0.3s ease;
}

header.white-bg {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header:has(.home-menu)+main {
    padding-top: 0;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: auto;
    padding: 0 50px;
    max-width: 1400px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1.5px;
    position: relative;
    font-family: 'Montserrat', sans-serif !important;
}

.home-menu.white-bg a {
    color: #000000;
}

.home-menu.white-bg a:not(:has(.logo-img)):before {
    background-color: #000 !important;
}

/* Left and Right Menu Containers */
.menu-left,
.menu-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.menu-left {
    justify-content: flex-end;
    flex: 1;
}

.menu-right {
    justify-content: flex-start;
    flex: 1;
}

.site-name {
    font-size: 25px;
    text-transform: none;
    text-align: center;
    flex: 0 0 auto;
    padding: 0 50px;
}

@media (max-width: 375px) {
    .site-name {
        padding-right: 0;
    }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1003;
}

.mobile-menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.home-menu.white-bg .mobile-menu-toggle .bar {
    background-color: #000000;
}

/* Mobile menu container (hidden on desktop) */
.menu-main-container {
    display: none;
}

@media (max-width: 480px) {
    header {
        padding: 20px 0;
    }

    .site-name {
        font-size: 20px;
    }

    nav {
        padding: 0 20px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    z-index: 1;

    @media (max-width: 600px) {
        height: 60vh;
    }
}

.hero-section.z-index-hero {
    z-index: 0;
}

.hero-vid {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-vid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
}

.hero-content h1 {
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    font-size: 66px;
    letter-spacing: 7px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 38px;
    }
}

/* Heading Text */
.heading-txt {
    width: 100%;
    padding: 50px 0;
    margin: 0 auto;
}

.heading-txt h2 {
    font-weight: 300;
    font-size: 36px;
    width: 682px;
    margin: auto 50px;
    letter-spacing: 3.73px;
    text-transform: uppercase;
    line-height: 40px;
    font-family: 'Montserrat', sans-serif;
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: center;
    padding: 50px 0;
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
    margin: 0 auto;
}

.stats h3 {
    font-size: 35px;
    width: 17rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 300;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.stats p {
    font-size: 15px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    width: 250px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.stats .statistic {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.stats .statistic:not(:last-child) {
    border-right: 1px solid #d9d9d9;
}

/* Million/Billion Indicators */
.mil::after {
    content: '+';
    position: relative;
}

.property-grid {
    padding-top: 150px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 60px;
}

.property-imgs {
    display: flex;
    padding-bottom: 50px;
    border-bottom: 1px solid #d9d9d9;
    margin: 0 auto;
}

@media (max-width: 1250px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        /* Alternative approach - use auto-fit with max-width */
        /* grid-template-columns: repeat(auto-fit, minmax(300px, 400px)); */
    }
}

/* Better solution: Center 2 items when there are exactly 2 patents */
@media (max-width: 1250px) {
    .property-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
        justify-content: center;
        gap: 40px;
    }
}

@media (max-width: 750px) {
    .property-grid {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 115px;
    }
}

.content.building {
    height: auto !important;
    max-height: 350px;
}

/* Property Images Section */
.property-imgs {
    display: flex;
    padding-bottom: 50px;
    border-bottom: 1px solid #d9d9d9;
    margin: 0 auto;
}

.property-imgs a {
    color: black;
    text-decoration: none;
}

.property-imgs a:hover {
    text-decoration: underline;
}

.property-divider {
    border: 5px solid #ffffff;
    height: 100%;
    width: 5px;
}

.property-imgs p {
    font-size: 11px;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    padding-top: 10px;
}

.property-home {
    width: 50%;
}

.property-home p {
    margin-left: 50px;
}

@media (max-width: 800px) {
    .property-home p:first-of-type {
        padding-bottom: 4rem;
    }
}

.property-home img {
    height: 100%;
    max-height: 600px;
    width: 100%;
    border: 1px solid #d9d9d9;
    object-fit: cover;
    object-position: center;
}

/* Text Boxes */
.textbox {
    display: flex;
    padding: 50px 0;
    border-bottom: 1px solid #d9d9d9;
    width: 100%;
    margin: auto;
}

.textbox:last-child {
    border-bottom: none;
    padding: 50px 0 0 0;
}

.textbox-content {
    margin-right: 50px;
    width: 100%;
    max-width: 1000px;
    padding: 0 10px;
}

.textbox h3 {
    min-width: 300px;
    margin-left: 50px;
    margin-right: 50px;
    font-weight: 300;
    font-size: 28px;
    letter-spacing: 3.73px;
    width: 320px;
    text-transform: uppercase;
    line-height: 34px;
    font-family: 'Montserrat', sans-serif;
}

.textbox-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 15.5px;
    margin-bottom: 20px;
}

/* Down Arrow */
.arrow {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    z-index: 10;
}

.down-arrow {
    display: inline-block;
    cursor: pointer;
    animation: bounce 1.5s infinite alternate;
}

.down-arrow::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

/* Partners Section */
.partners-section {
    width: 100%;
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #d9d9d9;
}

.partners-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 50px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 80px;
}

.partner {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

.partner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    max-height: 100px;
    max-width: 200px;
}

.partner img:hover {
    transform: scale(1.05);
}

/* Mobile Responsive Design */
@media (max-width: 1000px) {

    .partner {
        width: 120px;
        height: 120px;
    }

    .partner img {
        max-height: 80px;
        max-width: 160px;
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 60px 20px;
    }

    .partners-section h2 {
        font-size: 28px;
        letter-spacing: 2px;
        margin-bottom: 40px;
    }

    .partners-grid {
        gap: 40px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }

    .partner {
        width: 150px;
        height: 100px;
        margin: 0 auto;
    }

    .partner img {
        max-height: 70px;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .partners-section {
        padding: 50px 15px;
    }

    .partners-section h2 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .partners-grid {
        gap: 30px;
        grid-template-columns: 1fr;
        max-width: 200px;
    }

    .partner {
        width: 200px;
        height: 80px;
    }

    .partner img {
        max-height: 60px;
        max-width: 180px;
    }
}

/* Newsletter Section */
.newsletter-section {
    width: 100%;
    padding: 60px 0;
    border-bottom: 1px solid #d9d9d9;
    position: relative;
}

.newsletter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 3rem;
    position: relative;
}

input {
    text-align: center;
}

.newsletter-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    position: relative;
}

.newsletter-input {
    height: 48px;
    width: 220px;
    padding: 0 15px;
    border: 1px solid #d9d9d9;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.newsletter-input::placeholder {
    color: #999;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
}

.newsletter-submit {
    height: 48px;
    padding: 0 15px;
    background-color: white;
    border: 1px solid #000;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 220px;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.newsletter-submit:hover:not(.loading):not(.success) {
    background-color: #000;
    color: #fff;
}

.newsletter-submit:disabled {
    cursor: not-allowed;
}

/* Button States */
.submit-text,
.submit-loader,
.submit-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-loader,
.submit-success {
    opacity: 0;
    visibility: hidden;
}

/* Loading State */
.newsletter-submit.loading .submit-text {
    opacity: 0;
    visibility: hidden;
}

.newsletter-submit.loading .submit-loader {
    opacity: 1;
    visibility: visible;
}

.newsletter-submit.loading {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #666;
}

/* Success State */
.newsletter-submit.success .submit-text,
.newsletter-submit.success .submit-loader {
    opacity: 0;
    visibility: hidden;
}

.newsletter-submit.success .submit-success {
    opacity: 1;
    visibility: visible;
}

/* Spinner Animation */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Checkmark */
.checkmark {
    width: 16px;
    height: 16px;
}

/* Success Overlay */
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 10;
}

.success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-content {
    text-align: center;
    animation: slideInUp 0.6s ease-out;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: #000;
}

.success-icon svg {
    width: 100%;
    height: 100%;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawCircle 0.6s ease-out forwards, drawCheck 0.3s ease-out 0.6s forwards;
}

.success-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    color: #000;
}

.success-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
    letter-spacing: 1px;
}

/* Animations */
@keyframes slideInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    0% {
        stroke-dasharray: 0, 100;
    }

    100% {
        stroke-dasharray: 100, 100;
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .newsletter-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-section h3 {
        margin-bottom: 20px;
    }

    .newsletter-form {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input,
    .newsletter-submit {
        width: 100%;
    }
}

/* Footer Section */
.site-footer {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: white;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
}

.footer-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.footer-left>img {
    filter: brightness(0%);
}

.footer-logo {
    width: 190px;
    margin: 0 0 0 -30px;
}

@media (max-width: 1100px) {
    .footer-logo {
        height: 160px;
    }
}

.follow-text {
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-right: 15px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 24px;
    height: 24px;
}

.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: auto;
}

.copyright {
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.footer-right {
    text-align: right;
    flex: 1;
}

.legal-link {
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #000;
    transition: color 0.3s ease;
    text-decoration: none;
}

.legal-link:hover {
    text-decoration: underline;
}

/* Patents Container and Grid Styles */
.patents-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: white;
}

.patents-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: #000;
}

.page-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Section */
.filter-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #d9d9d9;
}

.filter-container {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    min-width: 300px;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 50px 0 20px;
    border: 1px solid #d9d9d9;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #000;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #666;
}

.category-wrapper {
    min-width: 200px;
}

.category-select {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    border: 1px solid #d9d9d9;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    outline: none;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;

    /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Add custom arrow */
    background-image: url('/down-arrow.svg');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 12px;
    padding-right: 40px;
}

.category-select:hover {
    border-color: #000;
}

/* Results Info */
.results-info {
    text-align: center;
    margin-bottom: 40px;
}

.results-info p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #666;
}

/* Property Grid for Patents */
.property-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
    padding-top: 0;
}

.patents-container .property-grid:nth-child(2) {
    grid-template-columns: repeat(3, 1fr);
}

/* Patent Card Styles */
.patent-card {
    background: white;
    border: 1px solid #d9d9d9;
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 426.66px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.patent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #000;
}

.patent-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.patent-image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
}

.patent-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    transition: transform 0.3s ease;
}

.patent-card:hover .patent-image {
    transform: scale(1.05);
}

.patent-info {
    padding: 25px;
    border-top: 1px solid #d9d9d9;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.patent-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: #000;
    margin: 0;
    flex-grow: 1;
}

.patent-number {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #000;
    padding: 8px 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0;
    align-self: flex-start;
}

.patent-card:hover .patent-number {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.patent-category {
    display: inline-block;
    background-color: #f5f5f5;
    color: #000;
    padding: 5px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    border: 1px solid #d9d9d9;
    align-self: flex-start;
    margin: 0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 15px;
    color: #000;
}

.no-results p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #666;
}

/* Updated Pagination Styles - Add these to your existing styles.css */

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #d9d9d9;
}

.pagination-arrow {
    color: black;
    width: 48px;
    height: 48px;
    border: 1px solid #d9d9d9;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-arrow:hover:not(:disabled) {
    border-color: #000;
    background-color: #000;
    color: white;
}

.pagination-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-arrow svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

.pagination-number {
    color: black;
    width: 48px;
    height: 48px;
    border: 1px solid #d9d9d9;
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-number:hover {
    border-color: #000;
    background-color: #000;
    color: white;
}

.pagination-number.active {
    background-color: #000;
    color: white;
    border-color: #000;
}

/* Mobile pagination styles */
.mobile-pagination {
    display: none;
}

.page-info {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

/* Responsive pagination */
@media (max-width: 975px) {
    .pagination {
        gap: 8px;
    }

    .desktop-pagination {
        display: none;
    }

    .mobile-pagination {
        display: block;
    }

    .pagination-arrow {
        width: 44px;
        height: 44px;
    }

    .pagination-arrow svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 5px;
        margin-top: 40px;
        padding-top: 30px;
    }

    .pagination-arrow {
        width: 40px;
        height: 40px;
    }

    .pagination-arrow svg {
        width: 16px;
        height: 16px;
    }

    .page-info {
        font-size: 12px;
    }
}

/* Prevent content shifting during loading and ensure containers always exist */
.patents-container {
    min-height: 60vh;
}

.property-grid {
    min-height: 400px;
    /* Always maintain the grid structure */
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
    padding-top: 0;
    grid-template-columns: repeat(3, 1fr);
}

.results-info {
    text-align: center;
    margin-bottom: 40px;
    min-height: 24px;
    /* Reserve space for the text */
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    min-height: 200px;
}

.pagination {
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #d9d9d9;
    min-height: 88px;
    /* Reserve space for pagination */
}

/* Loading state to prevent flash */
.results-info,
.property-grid,
.no-results,
.pagination {
    transition: opacity 0.3s ease;
}

/* Contact Form Section */
.contact-section {
    width: 100%;
    padding: 60px 0;
    border-bottom: 1px solid #d9d9d9;
    position: relative;
}

.contact-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.contact-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: #000;
}

.required {
    color: #000;
    margin-left: 3px;
}

.contact-input,
.contact-textarea {
    height: 48px;
    padding: 0 15px;
    border: 1px solid #d9d9d9;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    outline: none;
    text-align: left;
    transition: all 0.3s ease;
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.contact-textarea {
    height: 150px;
    padding: 15px;
    resize: vertical;
}

.contact-submit {
    margin: 0 auto;
    height: 48px;
    padding: 0 15px;
    background-color: white;
    border: 1px solid #000;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 220px;
    min-width: 120px;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.contact-submit:hover:not(.loading):not(.success) {
    background-color: #000;
    color: #fff;
}

.contact-submit:disabled {
    cursor: not-allowed;
}

/* Button States */
.submit-text,
.submit-loader,
.submit-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-loader,
.submit-success {
    opacity: 0;
    visibility: hidden;
}

/* Loading State */
.contact-submit.loading .submit-text {
    opacity: 0;
    visibility: hidden;
}

.contact-submit.loading .submit-loader {
    opacity: 1;
    visibility: visible;
}

.contact-submit.loading {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #666;
}

/* Success State */
.contact-submit.success .submit-text,
.contact-submit.success .submit-loader {
    opacity: 0;
    visibility: hidden;
}

.contact-submit.success .submit-success {
    opacity: 1;
    visibility: visible;
}

.contact-submit.success {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Spinner Animation */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Checkmark */
.checkmark {
    width: 16px;
    height: 16px;
}

.hero-small {
    height: 50vw;
    max-height: 800px;
}

@media (max-width: 600px) {
    .hero-small {
        height: 90vw;
    }
}

/* menu */
/* From Uiverse.io by Cornerstone-04 */
.box {
    /* width: 140px; */
    height: auto;
    float: left;
    transition: .5s linear;
    position: relative;
    display: block;
    overflow: hidden;
    padding: 8px;
    text-align: center;
    background: transparent;
    text-transform: uppercase;
}

.box:before {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    border-bottom: 1px solid transparent;
    border-left: 1px solid transparent;
    box-sizing: border-box;
    transform: translateX(100%);
}

.box:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    border-top: 1px solid transparent;
    border-right: 1px solid transparent;
    box-sizing: border-box;
    transform: translateX(-100%);
}

/* .box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  } */

.box:hover:before {
    border-color: #fff;
    height: 100%;
    transform: translateX(0);
    transition: .3s transform linear, .3s height linear .3s;
}

.box:hover:after {
    border-color: #fff;
    height: 100%;
    transform: translateX(0);
    transition: .3s transform linear, .3s height linear .5s;
}

.main-menu.white-bg .box:hover:before {
    border-color: #000;
}

.main-menu.white-bg .box:hover:after {
    border-color: #000;
}

button {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    border: none;
    background: transparent;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1.5px;
    position: relative;
    font-family: 'Montserrat', sans-serif !important;
}

a.building-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    text-decoration: none;
    margin: 0 auto;
    max-height: 529px;
    max-width: 415px;
    transition: all 0.5s ease-in-out;
}

.building-wrapper p {
    padding: 20px 0 5px 2rem !important;
    margin-left: 0 !important;
}

.building-wrapper p.no-space {
    font-size: 12px !important;
    padding: 0 0 20px 2rem !important;
}

.building-wrapper.press-post p {
    font-size: 12px;
    letter-spacing: 1.4px;
    padding: 0 0 0 0 !important;
    margin-left: 0 !important;
}

a.building-wrapper p {
    transition: all 0.4s ease-in-out;
    background-color: #000;
    color: #fff;
}


a.building-wrapper:not(:has(.content-details)):hover p {
    background-color: #000;
    color: #fff;
}

a.building-wrapper-slider {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    max-width: 100%;
    text-decoration: none;
}

.building {
    width: 100%;
    height: 587px;
    max-width: 502px;
    background-size: cover;
    background-position: center;
}

.building-slider {
    width: 100%;
    height: 587px;
    background-size: cover;
    background-position: center;
}

.building-wrapper p {
    font-size: 13px;
    padding: 5px 0;
    letter-spacing: 1px;
    font-weight: 500 !important;
    margin-left: 2rem;
    color: #000000;
    text-decoration: none;
}

.building-wrapper-slider p {
    font-size: 13px;
    padding: 5px 0;
    letter-spacing: 1px;
    font-family: hudson !important;
    font-weight: 500 !important;
    margin-left: 1rem;
    color: #000000;
    text-decoration: none;
}

@media (min-width: 1600px) {
    .building {
        max-width: 100%;
    }
}

@media (max-width: 1600px) {
    .all-buildings {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1300px) {
    .all-buildings {
        grid-template-columns: repeat(2, 1fr);
    }
}

.content.building {
    position: relative;
    overflow: hidden;
    border: 1px solid #000;
    transition: all 0.5s ease-in-out;
}

.placeholder-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f6f7f8;
    background-image: linear-gradient(to right,
            #f6f7f8 0%,
            #edeef1 20%,
            #f6f7f8 40%,
            #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.content-image.lazyloaded+.placeholder-shimmer {
    display: none;
}

.building-wrapper p {
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
}

.content.building img {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    max-width: 502px;
    object-fit: cover;
    /* This maintains aspect ratio while filling container */
    object-position: center;
    /* Centers the image content */
}

.building-wrapper:hover .content.building {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.patents-header {
    margin-top: 132px;
}

/* Quote Section */
.quote-section {
    width: 100%;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #d9d9d9;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.quote-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.quote-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-mark {
    font-family: 'Montserrat', sans-serif;
    font-size: 200px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.1);
    line-height: 1;
    user-select: none;
    position: absolute;
    z-index: 0;
    transition: all 0.3s ease;
}

.quote-mark-left {
    top: -60px;
    left: 80px;
    transform: rotate(-10deg);
}

@media (max-width: 1388px) {
    .quote-mark-left {
        left: -10px;
    }
}

.quote-mark-right {
    bottom: -60px;
    right: -40px;
    transform: rotate(10deg);
}

.quote-section:hover .quote-mark {
    color: #000;
    transform: scale(1.05);
}

.quote-section:hover .quote-mark-left {
    transform: rotate(-10deg) scale(1.05);
}

.quote-section:hover .quote-mark-right {
    transform: rotate(10deg) scale(1.05);
}

.quote-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 300;
    line-height: 1.3;
    text-align: center;
    color: #000;
    margin: 0;
    padding: 40px;
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #000 30%, #333 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s ease-in-out infinite alternate;
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.quote-image {
    flex: 0 0 400px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    transition: all 0.5s ease;
}

.quote-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(0, 0, 0, 0.1) 0%,
            transparent 30%,
            transparent 70%,
            rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quote-image:hover::before {
    opacity: 1;
}

.quote-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Timeline Section - Complete Update */
.timeline-section {
    width: 100%;
    padding: 100px 0;
    border-bottom: 1px solid #d9d9d9;
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    position: relative;
    z-index: 1;
}

.timeline-header {
    text-align: center;
    margin-bottom: 80px;
}

.timeline-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3.73px;
    margin-bottom: 20px;
    color: #000;
    line-height: 40px;
}

.timeline-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Timeline Structure */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, #d9d9d9 10%, #d9d9d9 90%, transparent 100%);
    transform: translateX(-50%);
    z-index: 1;
}

/* Timeline Items - Initial Hidden State */
.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    opacity: 0;
    /* Start hidden for animation */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Different positions for left/right items */
.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

/* Timeline Content */
.timeline-content {
    flex: 1;
    background: white;
    padding: 30px;
    border: 1px solid #d9d9d9;
    position: relative;
    transition: all 0.3s ease;
    max-width: 45%;
}

.timeline-content:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #000;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
}

/* Left side content (odd items) */
.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: #d9d9d9;
}

/* Right side content (even items) */
.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: #d9d9d9;
}

.timeline-content:hover::before {
    border-left-color: #000;
    border-right-color: #000;
}

/* Timeline Year */
.timeline-year {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #000;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Timeline Description */
.timeline-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #000;
    border: 4px solid white;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 0 2px #d9d9d9;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    width: 25px;
    height: 25px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

/* Milestone styling for special timeline items */
.timeline-item.milestone .timeline-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-color: #000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.timeline-item.milestone .timeline-year {
    color: #000;
    font-weight: 600;
}

.timeline-item.milestone .timeline-dot {
    background: #000;
    width: 25px;
    height: 25px;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #000;
}

/* Mobile Responsive Design for Timeline */
@media (max-width: 768px) {
    .timeline-container {
        padding: 0 20px;
    }

    .timeline-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 40px;
    }

    .timeline-content {
        max-width: calc(100% - 80px);
        margin-left: 60px;
    }

    .timeline-content::before {
        left: -30px !important;
        right: auto !important;
        border: 15px solid transparent;
        border-right-color: #d9d9d9 !important;
        border-left-color: transparent !important;
    }

    .timeline-content:hover::before {
        border-right-color: #000 !important;
        border-left-color: transparent !important;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-year {
        font-size: 20px;
    }

    .timeline-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .timeline-section {
        padding: 60px 0;
    }

    .timeline-header {
        margin-bottom: 60px;
    }

    .timeline-title {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .timeline-content {
        padding: 20px;
        margin-left: 50px;
        max-width: calc(100% - 70px);
    }

    .timeline-dot {
        left: 20px;
        width: 15px;
        height: 15px;
    }

    .timeline::before {
        left: 20px;
    }
}

/* Main media queries and responsive styles */
@media (max-width: 800px) {
    .property-divider {
        display: none;
    }

    .property-imgs {
        flex-direction: column;
        padding-bottom: 30px;
    }

    .property-home {
        width: 100%;
    }

    main:has(.all-buildings) {
        padding-top: 0px;
    }

    main {
        padding-top: 0px;
    }

    .patents-container {
        padding: 40px 15px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .patent-card {
        margin: 0 auto;
        width: 100%;
    }

    .footer-left {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }

    .footer-logo {
        margin: 0 0 -1rem 0;
    }

    .follow-text {
        margin: 0 0 10px 0;
    }

    .footer-right {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .contact-submit {
        width: 100%;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        width: 150px;
    }

    .follow-text,
    .copyright,
    .legal-link {
        font-size: 12px;
    }

    .search-wrapper,
    .category-wrapper {
        min-width: 250px;
    }

    .hero-content h1 {
        font-size: 28px;
    }
}

@media (max-width: 900px) {
    .partner {
        width: 80px;
        height: 80px;
    }

    .newsletter-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-section h3 {
        margin-bottom: 20px;
    }

    .newsletter-form {
        width: 100%;
    }

    .property-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    /* Hide desktop menus on mobile */
    .menu-left,
    .menu-right {
        display: none;
    }

    /* Center the nav and show mobile elements */
    nav {
        justify-content: center;
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .menu-main-container {
        display: flex;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        justify-content: center;
        align-items: center;
    }

    .menu-main-container.active {
        left: 0;
    }

    #menu-main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #menu-main a {
        color: #ffffff;
        display: block;
        padding: 15px 0;
        font-size: 24px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .menu-main-container.active #menu-main a {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }

    /* Sequential animation for menu items */
    .menu-main-container.active #menu-main a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .menu-main-container.active #menu-main a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .menu-main-container.active #menu-main a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .menu-main-container.active #menu-main a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #ffffff;
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #ffffff;
    }

    /* Keep site name visible over the menu */
    .site-name {
        position: relative;
        z-index: 1002;
    }

    nav.white-bg .mobile-menu-toggle.active .bar {
        background-color: #ffffff;
    }
}

@media (max-width: 815px) {
    .building {
        width: 100%;
        height: 364px;
    }

    .all-buildings {
        margin: auto 50px;
    }

    a.building-wrapper {
        width: 100% !important;
    }

    a.building-wrapper p {
        font-size: 12px;
        padding: 20px 0 5px .5rem !important;
    }

    a.building-wrapper p.no-space {
        padding: 0 0 20px .5rem !important;
    }
}

@media (max-width: 775px) {
    .heading-txt h2 {
        color: #9f9f9f;
        width: 90%;
        text-align: center;
        font-size: 18px;
        line-height: 25px;
        margin: auto;
    }
}

@media (max-width: 650px) {
    .arrow {
        display: none;
    }

    .textbox h3 {
        font-size: 22px;
    }

    .building {
        height: 264px;
    }

    .content.building {
        margin: auto;
    }
}

@media (max-width: 600px) {
    .partners-section h2 {
        font-size: 28px;
    }

    .partners-grid {
        gap: 10px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input,
    .newsletter-submit {
        width: 100%;
    }

    .all-buildings {
        margin: auto 25px;
    }
}

@media (max-width: 500px) {
    .all-buildings {
        margin: auto auto;
    }

    .all-buildings p {
        width: unset;
    }

    a.building-wrapper {
        max-width: 335px;
    }

    .all-buildings {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: auto 20px;
    }

    .content.building {
        width: 100%;
    }

    .all-buildings a {
        height: 400px;
        justify-content: start;
    }

    .building {
        width: 90vw;
        height: 600px;
    }

    .building-wrapper p {
        width: unset;
        height: 30px;
    }
}

@media (max-width: 450px) {
    nav>a {
        font-size: 16px;
    }
}

@media (max-width: 430px) {
    .building {
        height: 400px !important;
    }
}

@media (max-width: 1100px) {
    .footer-container {
        padding: 0 20px;
    }

    .footer-center {
        position: static;
        transform: none;
        order: 2;
        margin: 15px 0;
    }

    .footer-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-left {
        order: 1;
        justify-content: center;
        margin-bottom: 10px;
        text-align: center;
        flex-basis: 100%;
    }

    .footer-right {
        order: 3;
        text-align: center;
        flex-basis: 100%;
    }

    .site-footer {
        padding-bottom: 30px;
    }

    .footer-left {
        margin: -2rem 0;
    }
}

@media (max-width: 1000px) {
    .stats {
        flex-direction: column;
        padding: 0;
    }

    .stats .statistic:not(:last-child) {
        border-bottom: 1px solid #d9d9d9;
    }

    .stats .statistic {
        border-right: 0px !important;
        width: 200px;
        margin: auto;
        padding: 20px 0;
    }

    .textbox {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
    }

    .textbox h3 {
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }

    .textbox-content {
        width: unset;
        margin: auto 20px;
    }

    .quote-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .quote-content {
        order: 1;
    }

    .quote-image {
        order: 2;
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .quote-text {
        font-size: 32px;
        padding: 20px;
    }

    .quote-mark {
        font-size: 120px;
    }
}

/* Continue with responsive styles for Quote Section */
@media (max-width: 1200px) {
    .quote-container {
        gap: 60px;
        padding: 0 40px;
    }

    .quote-text {
        font-size: 36px;
        padding: 30px;
    }

    .quote-mark {
        font-size: 150px;
    }

    .quote-mark-left {
        left: -20px;
        top: -40px;
    }

    .quote-mark-right {
        right: -30px;
        bottom: -40px;
    }
}

@media (max-width: 768px) {
    .quote-section {
        padding: 80px 0;
    }

    .quote-container {
        padding: 0 20px;
        gap: 40px;
    }

    .quote-text {
        font-size: 24px;
        letter-spacing: 1px;
        padding: 15px;
    }

    .quote-image {
        max-width: 300px;
    }

    .quote-mark {
        font-size: 80px;
    }

    .quote-mark-left {
        left: -5px;
        top: -20px;
    }

    .quote-mark-right {
        right: -5px;
        bottom: -20px;
    }
}

@media (max-width: 480px) {
    .quote-section {
        padding: 60px 0;
    }

    .quote-text {
        font-size: 20px;
        letter-spacing: 0.5px;
        padding: 10px;
    }

    .quote-image {
        max-width: 280px;
    }

    .quote-mark {
        font-size: 60px;
    }

    .quote-mark-left {
        left: -10px;
        top: -10px;
    }

    .quote-mark-right {
        right: -10px;
        bottom: -10px;
    }
}

/* Footer responsive fixes */
body:has(.news-page) footer,
body:has(main .patents-container) footer,
body:has(main .legal-container) footer {
    border-top: 1px solid #d9d9d9;
}

/* GSAP Initial States - Hide elements for animation only on desktop */
.main-heading,
.statistic,
.quote-text,
.quote-image,
.textbox-title,
.textbox-paragraph,
.partners-title,
.partner,
.newsletter-title,
.newsletter-form,
.timeline-title,
.timeline-subtitle,
.timeline-item,
.page-title,
.page-subtitle,
.results-info p,
.filter-container,
.news-card,
.patent-card,
.contact-form,
.legal-content,
.pagination,
.effective-date,
.hero-title,
.arrow {
    opacity: 0;
}

/* Show everything immediately on tablets and mobile */
@media (max-width: 1024px) {
    .main-heading,
    .statistic,
    .quote-text,
    .quote-image,
    .textbox-title,
    .textbox-paragraph,
    .partners-title,
    .partner,
    .newsletter-title,
    .newsletter-form,
    .timeline-title,
    .timeline-subtitle,
    .timeline-item,
    .page-title,
    .page-subtitle,
    .results-info p,
    .filter-container,
    .news-card,
    .patent-card,
    .contact-form,
    .legal-content,
    .pagination,
    .effective-date,
    .hero-title,
    .arrow,
    .footer-container {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

/* Also show immediately on touch devices regardless of screen size */
@media (pointer: coarse) {
    .main-heading,
    .statistic,
    .quote-text,
    .quote-image,
    .textbox-title,
    .textbox-paragraph,
    .partners-title,
    .partner,
    .newsletter-title,
    .newsletter-form,
    .timeline-title,
    .timeline-subtitle,
    .timeline-item,
    .page-title,
    .page-subtitle,
    .results-info p,
    .filter-container,
    .news-card,
    .patent-card,
    .contact-form,
    .legal-content,
    .pagination,
    .effective-date,
    .hero-title,
    .arrow,
    .footer-container {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

/* Prevent flash by ensuring body doesn't show content until GSAP loads */
body.no-gsap .main-heading,
body.no-gsap .statistic,
body.no-gsap .quote-text,
body.no-gsap .quote-image,
body.no-gsap .quote-mark,
body.no-gsap .textbox-title,
body.no-gsap .textbox-paragraph,
body.no-gsap .partners-title,
body.no-gsap .partner,
body.no-gsap .newsletter-title,
body.no-gsap .newsletter-form,
body.no-gsap .footer-container,
body.no-gsap .timeline-title,
body.no-gsap .timeline-subtitle,
body.no-gsap .timeline-item,
body.no-gsap .page-title,
body.no-gsap .page-subtitle,
body.no-gsap .results-info p,
body.no-gsap .filter-container,
body.no-gsap .news-card,
body.no-gsap .patent-card,
body.no-gsap .contact-form,
body.no-gsap .legal-content,
body.no-gsap .pagination,
body.no-gsap .effective-date {
    opacity: 1;
    animation: fadeInFallback 0.5s ease-out;
}

/* iPad and tablet animation disable - all elements immediately visible */
body.no-animations .main-heading,
body.no-animations .statistic,
body.no-animations .quote-text,
body.no-animations .quote-image,
body.no-animations .quote-mark,
body.no-animations .textbox-title,
body.no-animations .textbox-paragraph,
body.no-animations .partners-title,
body.no-animations .partner,
body.no-animations .newsletter-title,
body.no-animations .newsletter-form,
body.no-animations .footer-container,
body.no-animations .timeline-title,
body.no-animations .timeline-subtitle,
body.no-animations .timeline-item,
body.no-animations .page-title,
body.no-animations .page-subtitle,
body.no-animations .results-info p,
body.no-animations .filter-container,
body.no-animations .news-card,
body.no-animations .patent-card,
body.no-animations .contact-form,
body.no-animations .legal-content,
body.no-animations .main-content,
body.no-animations .page-content,
body.no-animations .pagination,
body.no-animations .effective-date,
body.no-animations .hero-title,
body.no-animations .arrow {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    animation: none !important;
    transition: none !important;
}

/* Disable all GSAP animations and transitions for iPad/tablet devices */
body.no-animations * {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

/* Keep only essential transitions like hover effects */
body.no-animations a,
body.no-animations button,
body.no-animations .patent-card,
body.no-animations .building-wrapper,
body.no-animations .newsletter-submit,
body.no-animations .contact-submit {
    transition: all 0.3s ease !important;
}

@keyframes fadeInFallback {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.contact-container:has(.success-message) .contact-form {
    display: none !important;
}

.page-divider {
    width: 100%;
    height: 1px;
    background-color: #d9d9d9;
}

.hero-title {
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    font-size: 66px;
    letter-spacing: 7px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 1175px) {
    .hero-title {
        font-size: 35px;
    }
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 0;
}

.success-message {
    background-color: #dcfce7 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
    padding: 15px !important;
    border-radius: 4px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.success-message p {
    margin: 0;
    font-weight: 600;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}

.newsletter-container:has(.newsletter-success) .newsletter-form,
.newsletter-container:has(.newsletter-success) .newsletter-title {
    display: none !important;
}

.newsletter-container:has(.newsletter-success) {
    justify-content: center;
}

.newsletter-success {
    background-color: #dcfce7 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
    padding: 15px !important;
    border-radius: 4px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.newsletter-success p {
    margin: 0;
    font-weight: 600;
}

.newsletter-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
}