
/* CSS Variables */
:root {
    --color-black: #000;
    --color-white: #fff;
    --color-default: #3e3e3e;
    --color-gray: #666;
    --color-gray-light: #999;
    --color-gray-lighter: #e5e5e5;
    --color-gray-lightest: #f5f5f5;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --width: 90%;
    --max-width: 1730px;
    --container-padding: 2rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-default);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    font-weight: 300;
}

.text-larger p, .text-larger a, .text-larger span {
    font-size: 1.15rem;
}

strong, b {
    color: var(--color-black);
    font-weight: 400;
}



/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.1;
    color: var(--color-black);
}

.black h1, .black h2, .black h3, .black h4, .black h5 {
    color: var(--color-white);
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 2rem;
    font-family: var(--font-body);
    letter-spacing: 0.01em;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-family: var(--font-body);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 1.5rem;
    padding-top: 0.3rem;
}

h4 {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: uppercase;
}

h6 {
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.lrgtext {font-size:1.4rem; line-height:1.8rem;}


a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: inherit;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero .logo {
    width: 250px;
    height: auto;
    opacity: 0.8;
    z-index: 1001;
}

/* Navigation */
.top-navigation {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2rem;
    z-index: 1000;
    background: transparent;
}

.top-navigation .nav-list {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-navigation .nav-list li {
    margin: 0;
    padding: 0;
}

.top-navigation .nav-list li::before {
    display: none;
}

.top-navigation .nav-list li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.02em;
    position: relative;
    display: inline-block;
    padding: 0.5rem;
}

.top-navigation .nav-list li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-navigation .nav-list li a:hover {
    color: #fff;
}

.top-navigation .nav-list li a:hover::after {
    background-color: #fff;
    transform: scaleX(1);
    transform-origin: left;
}

.top-navigation .nav-list li a.active {
    color: #fff;
}

.top-navigation .nav-list li a.active::after {
    background-color: #fff;
    transform: scaleX(1);
    transform-origin: left;
}

/* Light version for pages with light background */
.top-navigation.light .nav-list li a {
    color: #555;
}

.top-navigation.light .nav-list li a::after {
    background-color: #555;
}

.top-navigation.light .nav-list li a:hover,
.top-navigation.light .nav-list li a.active {
    color: #000;
}

.top-navigation.light .nav-list li a:hover::after,
.top-navigation.light .nav-list li a.active::after {
    background-color: #000;
}

.portfolio-dropdown {
    position: relative;
    display: inline-block;
}

.portfolio-dropdown .fa-chevron-down {
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.portfolio-dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.portfolio-dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #000;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    margin-top: 0.5rem;
    padding: 0.5rem 0.2rem;
}

.top-navigation.light .portfolio-dropdown-content {
    box-shadow: 0 8px 16px rgb(206 206 206 / 20%);
}

.portfolio-dropdown:hover .portfolio-dropdown-content {
    display: block;
}

.top-navigation .nav-list li .portfolio-dropdown-content a {
    color: #ccc;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.top-navigation .nav-list li .portfolio-dropdown-content a:hover {
    color: #fff;
}

.top-navigation .nav-list li .portfolio-dropdown-content a::after {
    display: none;
}

/* Light version dropdown */
.top-navigation.light .portfolio-dropdown-content {
    background-color: #ffffffd9;
}

.top-navigation.light .nav-list li .portfolio-dropdown-content a {
    color: #666;
}

.top-navigation.light .nav-list li .portfolio-dropdown-content a:hover {
    color: #000;
}


/* Create hover bridge */
.portfolio-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 20px;
    background: transparent;
}

.portfolio-dropdown-content::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -20px;
    height: 20px;
    background: transparent;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    transition: color 0.3s ease;
}

.hamburger-menu:hover {
    color: #fff;
}

/* Light version hamburger */
.top-navigation.light .hamburger-menu {
    color: #555;
}

.top-navigation.light .hamburger-menu:hover {
    color: #000;
}

/* Hero Section */
.hero {
    padding: 6rem var(--container-padding) 3rem;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #00000094;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    width: var(--width);
    margin: 0 auto;
}

.hero-text-container {
    max-width: 700px;
}

.home-logo {
    width: 300px;
    height: 100px;
    margin-bottom: 1.5rem;
    object-fit: contain;
    opacity: 0.8;
    display: block;
}

.hero-text {
    color: #ffffff87;
    margin: 0 0 1rem 0;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    line-height: 1.5;
    margin: 0 0 2rem 0;
    text-transform: none;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--font-heading);
    font-weight: 300;
    color: #ffffff87;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--color-gray);
    font-weight: 400;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    display: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Animations */
.hero-text-container {
    animation: fadeInUp 0.8s ease-out;
}

.home-logo {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* About Animations */
.about-header {
    animation: fadeInUp 0.8s ease-out;
}

.about-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Portfolio Animations */
.portfolio-intro {
    animation: fadeInUp 0.8s ease-out;
}

.portfolio-item {
    animation: fadeInUp 0.6s ease-out both;
}

.portfolio-item {
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}

.portfolio-item:nth-child(1) {
    --item-index: 1;
}

.portfolio-item:nth-child(2) {
    --item-index: 2;
}

.portfolio-item:nth-child(3) {
    --item-index: 3;
}

.portfolio-item:nth-child(4) {
    --item-index: 4;
}

.portfolio-item:nth-child(5) {
    --item-index: 5;
}

.portfolio-item:nth-child(6) {
    --item-index: 6;
}

/* About */
.about {
    padding: 4rem var(--container-padding);
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--color-white);
}

.about-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Portfolio - Apple-style Card Layout */
.portfolio {
    width: 100%;
    padding: 4rem 0;
    background: #f5f5f7;
}

.wrapper {
    max-width: var(--max-width);
    width: var(--width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.wrapper.first {
    padding: 0 2rem 4rem 2rem;
}

.portfolio-intro {
    margin-bottom: 4rem;
}

.portfolio-intro h2 {
    font-weight: 300;
    margin-bottom: 1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    width: 100%;
    overflow: visible;
}

/* Company Projects Wrapper */
.company-projects {
    display: grid;
    grid-template-columns: 75% 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    margin-bottom: 3rem;
    overflow: visible;
}

.company-projects .portfolio-item {
    grid-column: 1;
}

/* Portfolio Side Info - positioned within each company wrapper */
.portfolio-side-info {
    position: sticky;
    top: 2rem;
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: start;
    width: 100%;
    padding: 2rem 0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    pointer-events: auto;
    height: fit-content;
}

/* All side info positioned the same way */
.landa-projects .portfolio-side-info,
.octopus-projects .portfolio-side-info,
.safeark-projects .portfolio-side-info {
    align-self: start;
    margin-top: 0;
}

/* Octopus and SafeArk - positioned normally at top */
.octopus-projects .portfolio-side-info,
.safeark-projects .portfolio-side-info {
    margin-top: 0;
}

.portfolio-side-info-logo {
    width: 100px;
    height: auto;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

#portfolioSideInfoOctopus .portfolio-side-info-logo{
    width: 55px;
}
#portfolioSideInfoLanda .portfolio-side-info-logo{
    width: 80px;
}

.portfolio-side-info-item {
    margin-bottom: 2rem;
}

.portfolio-side-info-item:last-child {
    margin-bottom: 0;
}

.portfolio-side-info-number {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-family: var(--font-heading);
    font-weight: 300;
    color: var(--color-black);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.portfolio-side-info-label {
    font-size: 13px;
    color: var(--color-gray);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
}

.portfolio-side-info-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-gray);
    font-weight: 300;
    margin-top: 0.5rem;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
    .portfolio-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }
}

.portfolio-item:nth-child(even) {
    direction: rtl;
}

.portfolio-item:nth-child(even) > * {
    direction: ltr;
}

/* Inventory App - allow video to overflow */
.inventory-app-item {
    overflow: visible;
}

.inventory-app-item .portfolio-image {
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Concept */

.concept-item .portfolio-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Insight Landa - allow confetti to overflow */
.insight-landa-item {
    overflow: visible;
    min-height: 350px;
    height: auto;
}

.insight-landa-item .portfolio-image {
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-landa-item .portfolio-image object {
    position: absolute;
    z-index: 999;
}

/* Portfolio Object SVG Styles */
.portfolio-object {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.portfolio-object .confetti-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.portfolio-object .progress-container {
    position: relative;
    width: 260px;
    height: 260px;
    overflow: visible;
}

.portfolio-object .progress-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.portfolio-object .external-circle {
    fill: none;
    stroke: #9370db;
    stroke-width: 1.5;
    stroke-dasharray: 3 3;
}

.portfolio-object .outer-circle-bg {
    fill: none;
    stroke: #E2E2E2;
    stroke-width: 20;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.portfolio-object .outer-circle-fill {
    fill: none;
    stroke: url(#portfolioOuterGradient);
    stroke-width: 16;
    stroke-linecap: round;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.portfolio-object .progress-bg {
    fill: none;
    stroke: #F7F7F7;
    stroke-width: 20;
}

.portfolio-object .progress-fill {
    fill: none;
    stroke: #ABCF41;
    stroke-width: 16;
    stroke-linecap: round;
    transition: stroke-dasharray 0.1s linear, stroke-dashoffset 0.1s linear;
}

.portfolio-object .inner-background {
    fill: #ffffff;
}

.portfolio-object .progress-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 240px;
    z-index: 10;
}

.portfolio-object .status-text {
    font-size: 19px;
    color: #ABCF41;
    font-weight: 500;
    margin-top: 24px;
    font-family: 'Oswald', sans-serif;
}

.portfolio-object .percentage {
    font-size: 52px;
    font-weight: 500;
    line-height: 1;
    margin: 0 0 0px 12px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: -1px;
}

.portfolio-object .inner-shadow {
    background-color: #92bd13;
    color: transparent;
    text-shadow: 2px 2px 10px rgba(255,255,255,0.5);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
}

.portfolio-object .inner-shadow-dark {
    background-color: #8d8d8de0;
    color: transparent;
    text-shadow: 2px 2px 10px rgba(255,255,255,0.5);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
}

.portfolio-object .percentage .percent-symbol {
    margin-left: -12px;
}

.portfolio-object .count-text {
    font-size: 15px;
    font-family: 'Oswald', sans-serif;
    margin-top: 4px;
}

.portfolio-object .count-text .count-first,
.portfolio-object .count-text .count-slash {
    font-size: 20px;
    font-weight: 500;
    margin-left: -4px;
}

.portfolio-object .count-text .count-second {
    font-size: 15px;
    margin-left: -4px;
}

.portfolio-object .time-text {
    font-size: 13px;
    color: #8d8d8d99;
    font-family: 'Oswald', sans-serif;
    font-weight: lighter;
    margin-top: -4px;
}

.inventory-app-item .video-background {
    overflow: visible;
}

.inventory-app-item .video-background video {
    transform: scale(1);
    transform-origin: center center;
    position: absolute;
    top:-20px;
    overflow: visible;
}

/* Print Assistant Button */
.print-assistant-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(to bottom, #3F9EEA, #1677C6);
    color: var(--color-white);
    padding: 0.875rem 1.5rem;
    border-radius: 35px;
    box-shadow: 0 0 20px rgba(63, 158, 234, 0.3);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: default;
    user-select: none;
    width: fit-content;
    margin: 0 auto;
    padding-bottom: 20px;
}

.print-assistant-icon {
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.print-assistant-icon .anim-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
}

.print-assistant-icon .anim-frame-1 {
    animation: animFrame1 1.55s infinite;
}

.print-assistant-icon .anim-frame-2 {
    animation: animFrame2 1.55s infinite;
}

.print-assistant-icon .anim-frame-3 {
    animation: animFrame3 1.55s infinite;
    opacity: 0; /* Animation3 not used in this sequence */
}

.print-assistant-text {
    color: var(--color-white);
    font-weight: 500;
}

/* Animation1: 1200ms (0-77.42%), then 150ms (83.87-93.55%), then rest */
@keyframes animFrame1 {
    0% {
        opacity: 1;
    }
    77.4% {
        opacity: 1;
    }
    77.42% {
        opacity: 0;
    }
    83.86% {
        opacity: 0;
    }
    83.87% {
        opacity: 1;
    }
    93.54% {
        opacity: 1;
    }
    93.55% {
        opacity: 0;
    }
    99.99% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Animation2: 100ms (77.42-83.87%), then 100ms (93.55-100%) */
@keyframes animFrame2 {
    0% {
        opacity: 0;
    }
    77.4% {
        opacity: 0;
    }
    77.42% {
        opacity: 1;
    }
    83.86% {
        opacity: 1;
    }
    83.87% {
        opacity: 0;
    }
    93.54% {
        opacity: 0;
    }
    93.55% {
        opacity: 1;
    }
    99.99% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Portfolio Image Section */
.portfolio-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}


.portfolio-image img,
.portfolio-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background {
    width: 100%;
    height: 100%;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Landa Press OS Image Animation */
.landa-press-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.landa-press-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% center;
}

.landa-press-image.animate {
    animation: slideImagePosition 10s ease-in-out forwards;
}

@keyframes slideImagePosition {
    0% {
        object-position: 100% center;
    }
    100% {
        object-position: 0% center;
    }
}

/* Portfolio Content Section */
.portfolio-overlay {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-overlay h3 {
    margin-bottom: 0.85rem;
}

.portfolio-overlay p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray);
    margin-bottom: 1.25rem;
    font-weight: 300;
    max-width: 90%;
}

.portfolio-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.portfolio-categories span {
    font-size: 11px;
    padding: 0.375rem 0.875rem;
    background: var(--color-gray-lightest);
    color: var(--color-black);
    border-radius: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.view-details {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: var(--color-black);
    font-weight: 400;
    padding: 0.75rem 0;
    border-top: 1px solid var(--color-gray-lighter);
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.view-details::after {
    content: '→';
    font-size: 1.1em;
}

/* Bottom Navigation Section */
.navigation {
    padding: 2rem 2rem 0 2rem;
    background: var(--color-white);
}

.navigation-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links li::before {
    display: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-black);
}

.navigation .nav-links a:hover,
.navigation .nav-list a:hover {
    color: var(--color-black);
    opacity: 0.7;
}

.black.navigation .nav-links a:hover,
.black .navigation .nav-list a:hover {
    color: var(--color-white);
}

.navigation .nav-list a::after {
    background-color: var(--color-black);
}

.navigation .nav-list a:hover::after {
    background-color: var(--color-black);
}

/* Footer Section */
footer {
    padding: 2rem 2rem 0.5rem 2rem;
    background: var(--color-white);
}

footer.black {
    background: var(--color-black);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.contact-info,
.social-links {
    font-size: 14px;
    color: var(--color-gray);
    font-weight: 300;
}


footer.black .contact-info, 
footer.black .social-links,  
footer.black .social-links a {
    color: var(--color-gray-light);
}

.contact-info a,
.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray);
}

.contact-info a:hover,
.social-links a:hover {
    opacity: 1;
    color: var(--color-black);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    padding-top: 0.5rem;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--color-gray-light);
    margin: 0;
}

/* ========================================
   Responsive Styles
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --container-padding: 2rem;
    }
    
    .company-projects {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-side-info {
        position: relative;
        top: 0;
        grid-column: 1;
        grid-row: 1;
        margin-top: 0;
        margin-bottom: 1rem;
        order: -1;
    }
    
    .company-projects .portfolio-item {
        grid-column: 1;
        order: 1;
    }
    
    .nav-logo {
        width: 200px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
        --max-width: 95%;
    }
    
    .top-navigation {
        top: 0;
        right: 0;
        z-index: 1000;
        align-items: center;
    }
    
    .top-navigation.scrolled {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .hamburger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
        position: fixed;
        top: 1rem;
        right: 1rem;
        min-width: 44px;
        min-height: 44px;
        background: none;
        border: none;
        box-shadow: none;
    }
    
    .hamburger-menu.active {
        color: var(--color-black);
    }
    
    .hamburger-menu.active i.fa-bars::before {
        content: '\f00d';
    }
    
    .nav-content {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 60%;
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 4rem 1.5rem 1.5rem;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        z-index: 999;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        visibility: hidden;
    }
    
    .nav-content.active {
        transform: translateX(0);
        visibility: visible;
    }
    
    /* Backdrop overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
        pointer-events: auto;
        opacity: 0;
        animation: fadeIn 0.3s ease forwards;
    }
    
    @keyframes fadeIn {
        to {
            opacity: 1;
        }
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .nav-list a {
        color: var(--color-black);
        font-size: 1.125rem;
        padding: 0.75rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .nav-list a::after {
        background-color: var(--color-black);
    }
    
    .top-navigation .nav-content.active .nav-list > li > a {
        color: var(--color-black);
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        transition: color 0.2s ease;
    }
    
    .top-navigation .nav-content.active .nav-list > li > a:hover {
        color: var(--color-black);
        opacity: 0.7;
    }
    
    .top-navigation .nav-content.active .nav-list > li > a.active {
        color: var(--color-black);
        font-weight: 500;
    }
    
    .top-navigation .nav-content.active .nav-list > li > a::after {
        display: none;
    }
    
    .portfolio-dropdown-content {
        position: static;
        display: block !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    
    .top-navigation.light .portfolio-dropdown-content {
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .portfolio-dropdown-content a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        color: var(--color-gray) !important;
        transition: color 0.2s ease;
        margin: 0.25rem 0;
        background: transparent !important;
    }
    
    .portfolio-dropdown-content a:hover {
        color: var(--color-black) !important;
        opacity: 0.7;
        background: transparent !important;
    }
    
    .portfolio-dropdown-content a.current-page {
        color: var(--color-black) !important;
        font-weight: 500;
        background: transparent !important;
    }
    
    .portfolio-dropdown .fa-chevron-down {
        display: none;
    }
    
    .hero {
        padding-top: 5rem;
        padding-bottom: 2rem;
        min-height: 100vh;
    }
    
    .hero-video-background video {
        object-fit: cover;
        object-position: center center;
    }
    
    .nav-logo {
        width: 180px;
        margin-bottom: 5rem;
    }
    
    .hero-text {
        font-size: clamp(2rem, 10vw, 3.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .hero-stat {
        min-width: 80px;
    }
    
    .hero-stat-number {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .hero-stat-label {
        font-size: 11px;
        margin-top: 0.25rem;
    }
    
    .about {
        padding: 3rem var(--container-padding);
    }
    
    .about-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .portfolio {
        padding: 3rem 0;
    }
    
    .portfolio-wrapper {
        padding: 0 var(--container-padding);
    }
    
    .portfolio-intro {
        margin-bottom: 2.5rem;
    }
    
    .portfolio-intro h2 {
        margin-bottom: 0.75rem;
    }
    
    .portfolio-intro p {
        font-size: 15px;
    }
    
    .company-projects {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .portfolio-side-info {
        position: relative;
        top: 0;
        grid-column: 1;
        grid-row: 1;
        padding: 0;
        margin-top: 0;
        margin-bottom: 0;
        order: -1;
    }
    
    .company-projects .portfolio-item {
        order: 1;
    }
    
    .portfolio-side-info-logo {
        width: 80px;
        margin-bottom: 0.75rem;
    }
    
    #portfolioSideInfoOctopus .portfolio-side-info-logo {
        width: 50px;
    }
    
    #portfolioSideInfoLanda .portfolio-side-info-logo {
        width: 70px;
    }
    
    .portfolio-side-info h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .portfolio-side-info-subtitle {
        font-size: 14px;
        margin-top: 0.5rem;
    }
    
    .portfolio-grid {
        gap: 2rem;
        width: 100%;
    }
    
    .portfolio-item {
        grid-template-columns: 1fr;
        border-radius: 8px;
    }
    
    .portfolio-item:nth-child(even) {
        direction: ltr;
    }
    
    .portfolio-image {
        min-height: 250px;
        height: 250px;
    }
    
    .insight-landa-item {
        min-height: 360px;
        overflow: hidden;
    }
    
    .insight-landa-item .portfolio-image {
        overflow: hidden !important;
        position: relative;
        height: 360px;
        min-height: 360px;
    }
    
    .insight-landa-item .portfolio-image object {
        overflow: hidden !important;
        pointer-events: none !important;
        touch-action: none !important;
        overscroll-behavior: none !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        min-height: 360px;
        border: none;
    }
    
    .portfolio-object .progress-container {
        width: 200px;
        height: 200px;
    }
    
    .portfolio-object .status-text {
        font-size: 15px;
        margin-top: 16px;
    }
    
    .portfolio-object .percentage {
        font-size: 40px;
    }
    
    .portfolio-object .count-text {
        font-size: 13px;
    }
    
    .portfolio-object .count-text .count-first,
    .portfolio-object .count-text .count-slash {
        font-size: 18px;
    }
    
    .portfolio-object .count-text .count-second {
        font-size: 13px;
    }
    
    .portfolio-object .time-text {
        font-size: 11px;
    }
    
    .portfolio-overlay {
        padding: 1.5rem;
    }
    
    .portfolio-overlay h3 {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
        margin-bottom: 0.5rem;
    }
    
    .portfolio-overlay p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .portfolio-categories {
        gap: 0.375rem;
        margin-bottom: 1rem;
    }
    
    .portfolio-categories span {
        font-size: 10px;
        padding: 0.25rem 0.75rem;
    }
    
    .view-details {
        font-size: 13px;
        padding: 0.5rem 0;
    }
    
    .print-assistant-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .print-assistant-icon {
        width: 80px;
        height: 80px;
    }
    
    .navigation {
        padding: 2rem var(--container-padding) 0;
    }
    
    .nav-links {
        flex-wrap: nowrap;
        gap: 1rem;
        justify-content: center;
        flex-direction: row;
    }
    
    .nav-links a {
        font-size: 13px;
        white-space: nowrap;
    }
    
    footer {
        padding: 2rem var(--container-padding) 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .contact-info,
    .social-links {
        font-size: 13px;
        width: 100%;
    }
    
    .contact-info a,
    .social-links a {
        justify-content: center;
    }
    
    .footer-bottom p {
        font-size: 11px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }
    
    .hero {
        padding-top: 4rem;
        min-height: 90vh;
    }
    
    .nav-logo {
        width: 150px;
    }
    
    .hero-text {
        font-size: clamp(1.75rem, 12vw, 2.5rem);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }
    
    .hero-stat {
        width: 100%;
    }
    
    .about {
        padding: 2.5rem var(--container-padding);
    }
    
    .portfolio {
        padding: 2.5rem 0;
    }
    
    .portfolio-intro {
        margin-bottom: 2rem;
    }
    
    .portfolio-image {
        min-height: 200px;
        height: 200px;
    }
    
    .insight-landa-item {
        min-height: 360px;
        overflow: hidden;
    }
    
    .insight-landa-item .portfolio-image {
        overflow: hidden !important;
        position: relative;
        height: 360px;
        min-height: 360px;
    }
    
    .insight-landa-item .portfolio-image object {
        overflow: hidden !important;
        pointer-events: none !important;
        touch-action: none !important;
        overscroll-behavior: none !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        min-height: 360px;
        border: none;
    }
    
    .portfolio-overlay {
        padding: 1.25rem;
    }
    
    .company-projects {
        margin-bottom: 2rem;
    }
    
    .portfolio-grid {
        gap: 1.5rem;
    }
}
