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

:root {
    /* Минималистичная черно-серая палитра */
    --primary-color: #FFFFFF;          /* Чистый белый - основной фон */
    --secondary-color: #F5F5F5;        /* Светло-серый - альтернативный фон */
    --accent-color: #2A2A2A;           /* Темно-серый - акцент вместо золота */
    --text-color: #1A1A1A;             /* Почти черный - основной текст */
    --light-text: #6B6B6B;             /* Средний серый - вторичный текст */
    --white: #FFFFFF;                  /* Чистый белый */
    --dark-gray: #0A0A0A;              /* Глубокий черный - футер */
    --hover-accent: #000000;           /* Чистый черный для hover */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Home page (index.html) specific styles */
body:not(.page-body) {
    overflow: hidden;
    height: 100vh;
}

body:not(.page-body) html {
    overflow: hidden;
}

/* Ensure hero is visible on index.html */
body:not(.page-body) .hero {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1 !important;
}

/* Force hero letters to be visible when they have the visible class */
body:not(.page-body) .hero-letter.visible {
    opacity: 1 !important;
}

body:not(.page-body) .hero-subtitle.visible,
body:not(.page-body) .hero-description.visible,
body:not(.page-body) .hero-btn.visible {
    opacity: 1 !important;
}

/* Multi-page body styles */
body.page-body {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.page-body .page-section {
    flex: 1;
    padding: 8rem 0 4rem;
    min-height: calc(100vh - 200px);
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #F0F0F0 0%, #FFFFFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: none;
    transition: background 0.8s ease;
}

.splash-screen.fade-background {
    background: transparent;
}

.splash-screen.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -9999 !important;
    pointer-events: none !important;
}

.splash-content {
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-title {
    display: flex;
    justify-content: center;
    gap: 0.1em;
}

.splash-letter {
    display: inline-block;
    font-family: 'Karla', sans-serif;
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 800;
    letter-spacing: 15px;
    opacity: 0;
    transform: translateX(-100px) rotate(-10deg);
    animation: splashReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--letter-index) * 0.08s);
    color: #808080;
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-letter:first-child {
    color: #000000;
    font-weight: 800;
    font-style: normal;
}

.splash-letter-arch {
    animation: splashReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, fontChange 12s infinite;
    animation-delay: calc(var(--letter-index) * 0.08s), 0s;
}

/* Morph animation from splash to hero position */
.splash-content.morphing {
    transform: translateY(0);
}

.splash-letter.morphing {
    font-size: clamp(4rem, 12vw, 10rem);
    letter-spacing: 10px;
}

@keyframes splashReveal {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotate(-10deg);
        filter: blur(10px);
    }
    50% {
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0);
        filter: blur(0);
    }
}

/* Fullpage Container */
.fullpage-container {
    height: 100vh;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    opacity: 0;
}

.fullpage-container.visible {
    animation: fadeInContent 0.4s ease forwards;
}

@keyframes fadeInContent {
    to {
        opacity: 1;
    }
}

.fullpage-container.scrolling {
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    opacity: 0;
}

/* Show navbar immediately on multi-page mode */
body.page-body .navbar {
    opacity: 1;
}

.navbar.visible {
    animation: fadeInNav 0.4s ease forwards;
}

@keyframes fadeInNav {
    to {
        opacity: 1;
    }
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.logo-w {
    color: #000000;
    font-weight: 900;
}

.logo-arch {
    color: #808080;
    font-weight: 400;
    animation: fontChange 12s infinite;
}

@keyframes fontChange {
    0%, 24.99% {
        font-family: 'Karla', sans-serif;
        font-weight: 400;
    }
    25%, 49.99% {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
    }
    50%, 74.99% {
        font-family: 'Playfair Display', serif;
        font-weight: 400;
    }
    75%, 100% {
        font-family: 'Cormorant Garamond', serif;
        font-weight: 400;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

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

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

.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--dark-gray);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Hero Background Slider */
.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: grayscale(20%) saturate(80%) brightness(95%);
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
    background: none;
    border: none;
    outline: none;
}

.hero-title {
    font-family: 'Karla', sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 800;
    letter-spacing: 15px;
    margin: -12rem 0 2rem 0;
    display: flex;
    justify-content: center;
    gap: 0.1em;
}

.hero-letter {
    display: inline-block;
    opacity: 0;
    color: #BEBEBE;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    font-style: normal;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-letter:first-child {
    color: #000000;
    font-weight: 800;
    font-style: normal;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 40px rgba(255, 255, 255, 0.6),
                 0 6px 15px rgba(0, 0, 0, 0.9);
}

.hero-letter.visible {
    animation: fadeIn 0.6s ease forwards;
}

.hero-letter-arch.visible {
    animation: fadeIn 0.6s ease forwards, fontChange 12s infinite;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    margin-top: 0;
    opacity: 0;
    background: none;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-subtitle.visible {
    animation: fadeIn 0.6s ease forwards;
}

.hero-description {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 400;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 2rem;
    opacity: 0;
    background: none;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    letter-spacing: 1px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-description.visible {
    animation: fadeIn 0.6s ease forwards;
}

.hero-btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.hero-btn.visible {
    animation: fadeIn 0.6s ease forwards;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    z-index: -1;
}

.hero-btn:hover::before {
    left: 0;
}

.hero-btn:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    box-shadow: 0 0 8px rgba(42, 42, 42, 0.6);
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styling */
section {
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

section::-webkit-scrollbar {
    width: 8px;
}

section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

section::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

section::-webkit-scrollbar-thumb:hover {
    background: var(--hover-accent);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    letter-spacing: 2px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto 4rem;
}

/* About Section */
.about {
    background: var(--white);
    padding: 0 !important;
    display: block;
    overflow: hidden;
}

.about .container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-text p .logo-w {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #000000;
}

.about-text p .logo-arch {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: #808080;
    animation: fontChange 12s infinite;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-text);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    position: relative;
}

/* About Slider */
.about-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    height: 450px;
    min-height: 450px;
    max-height: 450px;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    width: 100%;
}

.slider-track {
    display: flex;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.1), transparent);
    z-index: 1;
    pointer-events: none;
}

.slider-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: var(--secondary-color);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    opacity: 0;
}

.about-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: var(--accent-color);
    color: var(--white);
}

.slider-prev {
    left: 1rem;
}

.slider-next {
    right: 1rem;
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--dark-gray);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.3);
}

.slider-description {
    margin-top: 1.5rem;
    text-align: center;
    padding: 0 1rem;
    min-height: 80px;
    height: 80px;
    display: flex;
    align-items: flex-start;
}

.slider-description-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text);
    margin: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    width: 100%;
    will-change: opacity;
}

.slider-description-text.visible {
    opacity: 1;
}

/* Portfolio Section */
.portfolio {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 50%, var(--secondary-color) 100%);
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portfolio .container {
    width: 100%;
    max-width: none;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 4rem 2rem 4rem;
}

.portfolio-main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-align: center;
}

.portfolio .title-underline {
    margin: 0 auto 4rem;
}

/* Triple Column Layout */
.portfolio-triple-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    max-height: 600px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.portfolio-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-column-title {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    flex-shrink: 0;
}

.portfolio-column-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    height: 550px;
    width: 100%;
}

.portfolio-column-track {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-column-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.portfolio-column-slide.active {
    opacity: 1;
}

.portfolio-column-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.1), transparent);
    z-index: 1;
    pointer-events: none;
}

.portfolio-column-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--secondary-color);
}

.portfolio-column-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.portfolio-column-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--dark-gray);
}

.portfolio-column-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.portfolio-column-dot.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.3);
}

/* Portfolio Slider Navigation Buttons */
.portfolio-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    opacity: 0;
}

.portfolio-column-slider:hover .portfolio-slider-btn {
    opacity: 1;
}

.portfolio-slider-btn:hover {
    background: var(--accent-color);
    color: var(--white);
}

.portfolio-slider-prev {
    left: 1rem;
}

.portfolio-slider-next {
    right: 1rem;
}

.portfolio-slider-btn svg {
    width: 24px;
    height: 24px;
}


/* Services Section */
.services {
    background: var(--white);
    padding: 0 !important;
    display: block;
    overflow: hidden;
}

.services .container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.services .section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.services .title-underline {
    margin: 0 auto 2rem;
    flex-shrink: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 1.5rem;
    background: var(--secondary-color);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--dark-gray);
}

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

/* Contact Section */
.contact {
    background: var(--secondary-color);
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact .container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 1rem;
}

.contact .section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.contact .title-underline {
    margin: 0 auto 2rem;
    flex-shrink: 0;
}

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

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--dark-gray);
}

.contact-info > p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item svg {
    width: 26px;
    height: 26px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.2rem;
    color: var(--dark-gray);
    font-size: 1rem;
}

.contact-item p {
    color: var(--light-text);
    font-size: 0.9rem;
}

.form-wrapper {
    position: relative;
    min-height: 500px;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    width: 100%;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--dark-gray);
    transition: var(--transition);
    z-index: -1;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:hover {
    color: var(--white);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.form-status.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.form-status.success {
    color: #4CAF50;
}

.form-status.error {
    color: #f44336;
}

/* Success checkmark animation */
.success-checkmark {
    display: inline-block;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 3px solid #4CAF50;
    position: relative;
    animation: scaleIn 0.3s ease-in-out;
}

.success-checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%) rotate(45deg);
    width: 16px;
    height: 28px;
    border: solid #4CAF50;
    border-width: 0 3px 3px 0;
    animation: checkmark 0.4s ease 0.2s forwards;
    opacity: 0;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }
    50% {
        height: 28px;
        width: 0;
    }
    100% {
        height: 28px;
        width: 16px;
        opacity: 1;
    }
}

.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    margin-top: 1rem;
    animation: fadeInUp 0.5s ease;
}

.success-message h3 {
    color: #4CAF50;
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}

.success-message p {
    color: var(--text-color);
    margin: 0;
    font-size: 1rem;
}

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

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 0.8rem 0;
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
}

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

.footer-logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    justify-content: center;
}

.footer-logo .logo-w {
    color: var(--white);
    font-weight: 900;
}

.footer-logo .logo-arch {
    color: #A0A0A0;
    font-weight: 400;
    animation: fontChange 12s infinite;
}

.footer-content p {
    font-size: 0.85rem;
    margin: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-color);
}

/* Fade-in animation for scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* On multi-page mode, show fade-in elements immediately */
body.page-body .fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Fullpage Navigation Dots - only for home page */
.fullpage-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    animation: fadeInNav 0.6s ease 3.4s forwards;
}

/* Hide fullpage nav and scroll indicator on multi-page */
body.page-body .fullpage-nav,
body.page-body .scroll-indicator {
    display: none;
}

.fullpage-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(79, 79, 79, 0.4);
    border: 2px solid rgba(79, 79, 79, 0.6);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.fullpage-nav-dot::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.95);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.fullpage-nav-dot:hover::before {
    opacity: 1;
}

.fullpage-nav-dot.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.3);
}

.fullpage-nav-dot:hover {
    background: rgba(42, 42, 42, 0.5);
    border-color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .slider-btn {
        width: 38px;
        height: 38px;
    }

    .slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .slider-prev {
        left: 0.5rem;
    }

    .slider-next {
        right: 0.5rem;
    }

    .slider-dots {
        bottom: 1rem;
        gap: 0.6rem;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .portfolio-slider-btn {
        opacity: 1;
        width: 38px;
        height: 38px;
    }

    .portfolio-slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .fullpage-nav {
        right: 1rem;
        gap: 0.7rem;
    }

    .fullpage-nav-dot {
        width: 10px;
        height: 10px;
    }

    .fullpage-nav-dot::before {
        display: none;
    }
}

@media (max-width: 640px) {
    /* Hero section mobile optimization */
    .hero-title {
        letter-spacing: 5px;
        font-size: clamp(3rem, 15vw, 6rem);
        margin: -8rem 0 1.5rem 0;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.5rem);
        letter-spacing: 4px;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .hero-btn {
        padding: 0.9rem 2rem;
        font-size: 0.85rem;
        letter-spacing: 2px;
        margin-top: 1.5rem;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    /* About section mobile */
    .about .container {
        padding-top: 4rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .about-content {
        gap: 2.5rem;
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 0.8rem;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* About slider mobile */
    .about-slider {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
    }

    .slider-description {
        min-height: 60px;
        height: 60px;
        margin-top: 1rem;
    }

    .slider-description-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Portfolio mobile */
    .portfolio .container {
        padding: 4rem 1.5rem 2rem 1.5rem;
    }

    .portfolio-main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 0.8rem;
    }

    .title-underline {
        margin: 0 auto 2.5rem;
    }

    .portfolio-triple-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-height: none;
    }

    .portfolio-column-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        padding-bottom: 0.8rem;
        margin-bottom: 1rem;
    }

    .portfolio-column-slider {
        height: 400px;
    }

    /* Services mobile */
    .services .container {
        padding-top: 4rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .service-card {
        padding: 1.8rem 1.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* Contact mobile */
    .contact .container {
        padding-top: 4rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .contact-content {
        gap: 2rem;
    }

    .contact-info h3 {
        font-size: 1.4rem;
    }

    .contact-info > p {
        font-size: 0.9rem;
    }

    .contact-item h4 {
        font-size: 0.95rem;
    }

    .contact-item p {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 1rem;
    }

    .submit-btn {
        padding: 1rem;
        font-size: 0.95rem;
    }

    /* Navigation mobile */
    .navbar {
        padding: 0.8rem 0;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .slider-btn {
        opacity: 1;
        width: 32px;
        height: 32px;
    }

    .slider-btn svg {
        width: 18px;
        height: 18px;
    }

    .about-slider:hover .slider-btn {
        opacity: 1;
    }

    .footer {
        padding: 0.6rem 0;
    }

    .footer-logo {
        font-size: 1rem;
    }

    .footer-content p {
        font-size: 0.75rem;
    }

    .portfolio-slider-btn {
        opacity: 1;
        width: 32px;
        height: 32px;
    }

    .portfolio-slider-btn svg {
        width: 18px;
        height: 18px;
    }

    .portfolio-slider-prev {
        left: 0.5rem;
    }

    .portfolio-slider-next {
        right: 0.5rem;
    }

    /* Portfolio Triple Column - Mobile Layout */
    .portfolio-triple-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

/* Extra small devices (iPhone SE, iPhone 12/13 mini) */
@media (max-width: 375px) {
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
        margin: -6rem 0 1rem 0;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
        letter-spacing: 3px;
    }

    .hero-description {
        font-size: clamp(1rem, 3.5vw, 1.4rem);
        padding: 0 0.5rem;
    }

    .hero-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    .section-title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .about-slider {
        height: 250px;
        min-height: 250px;
        max-height: 250px;
    }

    .portfolio-column-slider {
        height: 350px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .fullpage-nav {
        right: 0.5rem;
        gap: 0.5rem;
    }

    .fullpage-nav-dot {
        width: 8px;
        height: 8px;
    }
}

/* Touch-friendly improvements for all mobile */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets */
    .slider-btn,
    .portfolio-slider-btn {
        opacity: 1;
        width: 44px;
        height: 44px;
    }

    .slider-dot,
    .portfolio-column-dot {
        width: 12px;
        height: 12px;
        border-width: 3px;
    }

    .fullpage-nav-dot {
        width: 14px;
        height: 14px;
    }

    /* Remove hover effects on mobile */
    .service-card:hover,
    .nav-link:hover {
        transform: none;
    }

    /* Improve tap highlighting */
    * {
        -webkit-tap-highlight-color: rgba(42, 42, 42, 0.1);
    }

    button, a, .slider-btn, .portfolio-slider-btn {
        -webkit-tap-highlight-color: rgba(42, 42, 42, 0.2);
    }
}

/* Landscape mode optimization for mobile */
@media (max-width: 968px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }

    .hero-title {
        margin: -2rem 0 1rem 0;
    }

    .about .container,
    .services .container,
    .contact .container {
        padding-top: 3rem;
    }

    .portfolio .container {
        padding-top: 3rem;
        padding-bottom: 1rem;
    }

    .fullpage-nav {
        gap: 0.5rem;
    }

    .fullpage-nav-dot {
        width: 8px;
        height: 8px;
    }
}
