/* SwiftUI Vibrancy Theme - Material Inspired */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* SwiftUI Color Palette */
    --system-fill: rgba(255, 255, 255, 0.0);
    --system-fill-secondary: rgba(255, 255, 255, 0.0);
    --system-fill-tertiary: rgba(255, 255, 255, 0.0);
    --system-fill-quaternary: rgba(255, 255, 255, 0.0);
    
    --system-gray: rgba(142, 142, 147, 0.12);
    --system-gray2: rgba(142, 142, 147, 0.24);
    --system-gray3: rgba(142, 142, 147, 0.36);
    --system-gray4: rgba(142, 142, 147, 0.48);
    --system-gray5: rgba(142, 142, 147, 0.60);
    --system-gray6: rgba(142, 142, 147, 0.72);
    
    /* Vibrancy Colors */
    --vibrancy-light: rgba(255, 255, 255, 0.78);
    --vibrancy-dark: rgba(255, 255, 255, 0.85);
    --vibrancy-dark-contrast: rgba(255, 255, 255, 0.95);
    
    /* Backgrounds with blur */
    --bg-material: rgba(255, 255, 255, 0.72);
    --bg-material-dark: rgba(28, 28, 30, 0.72);
    --bg-secondary-material: rgba(255, 255, 255, 0.52);
    --bg-tertiary-material: rgba(255, 255, 255, 0.36);
    
    /* Shadows */
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xlarge: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Typography */
    --primary-font: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    --text-primary: #1c1c1e;
    --text-secondary: #636366;
    --text-tertiary: #8e8e93;
    
    /* Primary Colors */
    --blue-accent: #007aff;
    --system-blue: #0a84ff;
    --system-indigo: #5e5ce6;
    --system-purple: #bf5af2;
    --system-pink: #ff2d55;
    --system-red: #ff3b30;
    --system-orange: #ff9500;
    --system-yellow: #ffcc00;
    --system-green: #30d158;
    --system-teal: #64d2ff;
    --system-cyan: #32d4de;
    
    /* Layout */
    --header-height: 64px;
    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --transition: cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--system-gray3) transparent;
}

body {
    font-family: var(--primary-font);
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 50%, #d1d1d6 100%);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Header with SwiftUI Material Effect */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.3s ease;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(var(--shadow-light));
    transition: transform 0.3s var(--transition-bounce);
}

.logo:hover {
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    background: var(--system-gray);
    border: none;
    border-radius: 12px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s var(--transition);
}

.menu-toggle:hover {
    background: var(--system-gray2);
}

.menu-icon {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.2s var(--transition);
    border-radius: 8px;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--blue-accent);
    transform: translateX(-50%);
    transition: width 0.3s var(--transition);
    border-radius: 1px;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--blue-accent);
}

.lang-link {
    display: inline-flex;
    font-size: 1.375rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s var(--transition);
    padding: 0.5rem;
    border-radius: 10px;
}

.lang-link:hover {
    background: var(--system-gray);
    transform: scale(1.1);
}

.nav-divider {
    height: 1px;
    background: var(--system-gray);
    margin: 0.5rem 1rem;
    width: 100%;
}

.nav-minimal {
    font-size: 0.8125rem;
    color: var(--text-secondary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
}

.nav-minimal .material-symbols-outlined {
    font-size: 1rem;
}

.nav-minimal:hover,
.nav-minimal:active {
    color: var(--text-secondary) !important;
    background: transparent;
    transform: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: var(--bg-material-dark);
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: clear;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swiper Global */
.swiper-pagination {
    --swiper-pagination-color: white;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1rem;
    font-weight: 600;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Autoplay Progress */
.autoplay-progress {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.autoplay-progress svg {
    --progress: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    stroke-width: 3px;
    stroke: white;
    fill: none;
    stroke-dashoffset: calc(113px * (1 - var(--progress)));
    stroke-dasharray: 113;
    transform: rotate(-90deg);
    transform-origin: center;
}

.autoplay-progress span {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
}

.about-intro {
    padding: 5rem 5% 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.about-logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(var(--shadow-medium));
    transition: transform 0.3s var(--transition-bounce);
}

.about-text {
    max-width: 700px;
    text-align: left;
    font-size: 1.0625rem;
    line-height: 1.75;
    letter-spacing: -0.01em;
    width: 100%;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    width: 100%;
    word-wrap: break-word;
}

/* Services Section */
.services-section {
    background: var(--bg-tertiary-material);
    padding: 3rem 5%;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-secondary-material);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-medium);
    transition: all 0.4s var(--transition-bounce);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xlarge);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--system-blue) 0%, var(--system-indigo) 100%);
    box-shadow: 0 4px 14px rgba(10, 132, 255, 0.3);
}

.service-icon .material-symbols-outlined {
    font-size: 1.75rem;
    color: white;
    font-variation-settings: 'FILL' 1;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Companies Section */
.companies-section {
    padding-top: var(--header-height);
}

.company-block {
    min-height: auto;
    padding: 3rem 5%;
    position: relative;
    overflow: hidden;
}

.company-block.dark {
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
    color: white;
}

.company-block.light {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
    color: var(--text-primary);
}

/* Frosted glass effect for dark sections */
.company-block.dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.company-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.company-logo {
    height: auto;
    filter: drop-shadow(var(--shadow-medium));
    transition: transform 0.3s var(--transition-bounce);
    opacity: 0.9;
    object-fit: contain;
    object-position: left;
}

.company-logo:hover {
    transform: scale(1.1);
}

/* Each company logo unique sizing */
.company-info .company-logo[src*="nrcpng"] {
    width: 180px;
}

.company-info .company-logo[src*="nurcinconstruction"] {
    width: 200px;
}

.company-info .company-logo[src*="slidernitas"] {
    width: 140px;
}

.company-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.company-info p {
    font-size: 1rem;
    line-height: 1.75;
    opacity: 0.85;
    letter-spacing: -0.01em;
}

.company-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-accent) 0%, var(--system-indigo) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.45);
}

.btn-secondary {
    background: var(--bg-secondary-material);
    color: var(--text-primary);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.company-slider {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-xlarge);
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-slider .swiper {
    width: 100%;
    height: 100%;
}

.company-slider .swiper-slide {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Partners Section */
.partners-section {
    background: var(--bg-material);
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
}

.partners-slider {
    display: flex;
    width: fit-content;
}

#partners-track {
    display: flex;
    animation: scroll 35s linear infinite;
    will-change: transform;
}

.partner-logo {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(30%) opacity(0.7);
    transition: all 0.3s var(--transition);
}

.partner-logo img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
    padding: 3rem 5% 2rem;
    border-top: 0.5px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.contact-section h2,
.location-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.contact-section a {
    color: var(--blue-accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s var(--transition);
}

.contact-section a:hover {
    color: var(--system-indigo);
    text-decoration: underline;
}

.footer-logo-img {
    width: 220px;
    height: auto;
    filter: drop-shadow(var(--shadow-medium));
    margin: 0.5rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--system-gray);
    color: var(--text-primary);
    font-size: 1.25rem;
    transition: all 0.3s var(--transition);
}

.social-links a:hover {
    background: var(--system-gray2);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
}

/* Preloader */
.preloader,
.load-wrapper {
    z-index: 9999;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.preloader.hidden,
.load-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 150px;
    height: auto;
    animation: pulse 1s ease-in-out infinite;
}

.loader {
    margin-top: 20px;
    width: 20px;
    height: 20px;
    background: #000;
    animation: l1 1.2s infinite;
}

@keyframes l1 {
    0%   {transform: perspective(150px) rotateX(  0deg)}
    100% {transform: perspective(150px) rotateX(180deg)}
}


/* Scroll Animations */


@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Scroll Animations */
.scrollanimhide {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scrollanimhidedel {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scrollanimhide3 {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .company-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .company-slider {
        aspect-ratio: 16/10;
    }
    
    .company-info {
        text-align: center;
        align-items: center;
    }
    
    .company-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }
    
    body {
        font-size: 16px;
        overflow-x: hidden;
    }
    
    .header {
        padding: 0 1rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.4s var(--transition-bounce);
        border-radius: 0;
        margin-top: 0;
        z-index: 1000;
    }

    .navbar.active {
        transform: translateX(0);
        box-shadow: var(--shadow-xlarge);
    }

    .nav-link {
        font-size: 1.125rem;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--system-gray);
    }
    
    .nav-link::before {
        display: none;
    }

    .lang-link {
        margin-top: auto;
        margin-bottom: 2rem;
        padding: 1rem 1.5rem;
    }

    /* Hero responsive */
    .hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .heroSwiper {
        width: 100%;
        height: 100%;
    }

    .section-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .about-intro {
        padding: 6rem 1.5rem 3rem;
    }
    
    .about-content {
        width: 100%;
    }
    
    .about-text {
        width: 100%;
        text-align: left;
        padding: 0 0.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .about-logo {
        max-width: 140px;
    }

    .company-block {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .company-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .company-info {
        width: 100%;
        text-align: center;
        align-items: center;
        order: 1;
    }
    
    .company-info h2 {
        font-size: 1.375rem;
        line-height: 1.3;
    }
    
    .company-info p {
        font-size: 0.9375rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .company-logo {
        width: 100px;
        margin: 0 auto;
    }
    
    .company-info .company-logo[src*="nrcpng"] {
        width: 140px;
    }
    
    .company-info .company-logo[src*="nurcinconstruction"] {
        width: 160px;
    }
    
    .company-info .company-logo[src*="slidernitas"] {
        width: 100px;
    }
    
    .company-slider {
        width: 100%;
        order: 2;
        aspect-ratio: 4/3;
        border-radius: 16px;
    }

    .company-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }

    .services-section {
        padding: 3rem 1rem;
    }
    
    .services-container {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card h3 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.875rem;
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
    }
    
    .service-icon .material-symbols-outlined {
        font-size: 1.375rem;
    }

    .partners-section {
        padding: 2rem 0;
    }
    
    .partners-slider {
        width: 100%;
    }

    .partner-logo {
        width: 120px;
        height: 80px;
    }
    
    .partner-logo img {
        max-width: 90px;
        max-height: 60px;
    }

    .site-footer {
        padding: 3rem 1rem 1.5rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .contact-section h2,
    .location-section h2 {
        font-size: 1.125rem;
    }
    
    .footer-logo-img {
        width: 160px;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
    
    .copyright {
        font-size: 0.6875rem;
    }
    
    /* Hero timer mobile */
    .autoplay-progress {
        right: 1rem;
        bottom: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .autoplay-progress svg {
        stroke-width: 3px;
        stroke-dasharray: 94;
        stroke-dashoffset: calc(94px * (1 - var(--progress)));
    }
    
    .autoplay-progress span {
        font-size: 0.625rem;
    }
}
