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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #2d2d2d;
    --text-color: #3a3a3a;
    --light-gray: #f5f5f5;
    --medium-gray: #d8d8d8;
    --border-color: #cccccc;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Klee One', 'Georgia', 'Times New Roman', 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, serif;
    line-height: 1.8;
    color: var(--text-color);
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Custom cursor - hide default cursor on desktop */
@media (min-width: 1024px) {
    *, *::before, *::after {
        cursor: none !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff; /* solid white navbar */
    backdrop-filter: none;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    cursor: none;
}

.logo-img {
    height: 50px; /* bigger logo */
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

input,
textarea,
select {
    cursor: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    position: relative;
    transition: var(--transition);
    font-size: 15px;
    letter-spacing: 0.05em;
    font-family: 'Klee One', 'Georgia', serif;
    cursor: none;
}

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

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

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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--primary-color);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
}

.hero-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(30px);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo-container.show {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.hero-logo {
    height: 0;
    width: auto;
    display: block;
    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo-container.large .hero-logo {
    height: 350px;
}

/* Hero text animations */
.hero-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
    width: 90vw;
    max-width: 1200px;
}

.hero-text-container.show {
    opacity: 1;
}

.hero-title {
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 400;
    letter-spacing: 0.03em;
    font-family: 'Klee One', 'Georgia', serif;
    line-height: 1.4;
    margin: 0 0 30px 0;
    color: var(--secondary-color);
}



.hero-line {
    display: block;
    min-height: 1.4em;
}

.hero-subtitle {
    font-size: clamp(13px, 2vw, 29px);
    font-weight: 300;
    letter-spacing: 0.05em;
    font-family: 'Klee One', 'Georgia', serif;
    line-height: 1.6;
    margin: 0;
    color: var(--secondary-color);
}



.hero-subtitle-line {
    display: block;
    min-height: 1.6em;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-subtitle-line.fade-in {
    opacity: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s, bounce 4s ease-in-out 2.2s infinite;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--secondary-color);
    animation: scrollLine 4s ease-in-out infinite;
}

/* Removed heroFadeInUp keyframe - now using simple transitions for fade in up / fade out down */

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

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.3;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

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

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title {
    font-size: clamp(29px, 5vw, 58px);
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 30px;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
    font-family: 'Klee One', 'Georgia', serif;
}

.title-line {
    width: 60px;
    height: 1px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.title-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Achievements Section */
.achievements {
    background: var(--secondary-color);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.achievements::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.achievements::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.achievements .section-title,
.achievements .title-line {
    color: var(--primary-color);
}

.achievements .title-line {
    background: var(--primary-color);
}

.achievements-description {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.achievements-description h3 {
    font-size: clamp(23px, 4vw, 37px);
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 0.03em;
    font-family: 'Klee One', 'Georgia', serif;
}

.achievements-description p {
    font-size: clamp(12px, 2vw, 15px);
    line-height: 2;
    color: var(--text-color);
    font-weight: 300;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Klee One', 'Georgia', serif;
}

.achievement-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.achievement-card {
    background: var(--secondary-color);
    padding: 45px 40px;
    border: 2px solid var(--border-color);
    border-radius: 0;
    text-align: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-card:hover::before {
    opacity: 1;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.achievement-card h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.6;
    font-family: 'Klee One', 'Georgia', serif;
    letter-spacing: 0.02em;
}

.achievement-label {
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 500;
    opacity: 0.9;
    font-family: 'Klee One', 'Georgia', serif;
}

.achievement-number {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

.achievement-number .counter {
    font-size: 58px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Klee One', 'Georgia', serif;
    line-height: 1;
}

.achievement-unit {
    font-size: 19px;
    font-weight: 500;
    color: var(--primary-color);
    font-family: 'Klee One', 'Georgia', serif;
}

.achievement-stats {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item .counter {
    font-size: 46px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Klee One', 'Georgia', serif;
    line-height: 1;
}

.stat-unit {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: 'Klee One', 'Georgia', serif;
}

.stat-label {
    font-size: 12px;
    color: var(--text-color);
    font-weight: 500;
    opacity: 0.9;
    margin: 5px 0 0 0;
    font-family: 'Klee One', 'Georgia', serif;
}

.achievement-detail {
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 300;
    opacity: 0.9;
    margin: 0;
    font-family: 'Klee One', 'Georgia', serif;
}

/* About Section */
.about {
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    margin-bottom: 80px;
}

.about-text {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-image-left {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

.about-image-left.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-photo {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.photo-caption {
    text-align: center;
    font-size: 19px;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 1;
    font-family: 'Klee One', 'Georgia', serif;
}

.about-text h3 {
    position: relative;
    margin-bottom: 30px;
    font-size: 29px;
    color: var(--text-color);
    font-family: 'Klee One', 'Georgia', serif;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--primary-color);
    border-radius: 0;
}

.about-text p {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 25px;
    color: var(--text-color);
    font-weight: 300;
    font-family: 'Klee One', 'Georgia', serif;
}

/* Timeline Section */
.timeline-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.timeline-image {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.4s;
}

.timeline-image.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-photo {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* CV Timeline */
.cv-timeline {
    position: relative;
    margin-top: 0;
    padding-left: 30px;
}

.cv-timeline .timeline-line {
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
}

.cv-timeline .timeline-item {
    position: relative;
    padding: 18px 0 18px 20px;
}

.cv-timeline .timeline-dot {
    position: absolute;
    left: 6px;
    top: 24px;
    width: 9px;
    height: 9px;
    background: var(--primary-color);
    border-radius: 50%;
}

.cv-timeline .timeline-year {
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-family: 'Klee One', 'Georgia', serif;
}

.cv-timeline .timeline-content {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.85;
    font-family: 'Klee One', 'Georgia', serif;
}

@media (max-width: 768px) {
    .cv-timeline {
        margin-top: 30px;
    }
}

/* Services Section */
.services {
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
    padding-bottom: 60px;
}

.services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.6;
    font-family: 'Klee One', 'Georgia', serif;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.services-message {
    text-align: center;
    padding: 60px 40px;
    background: var(--light-gray);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.services-message::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background-image: url('img/Hero Logo T.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.services-message p {
    font-size: 19px;
    line-height: 2;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 0.03em;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Klee One', 'Georgia', serif;
    position: relative;
    z-index: 1;
}

.services-intro {
    margin-bottom: 60px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-description {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 300;
    font-family: 'Klee One', 'Georgia', serif;
}

.services-differentiation {
    margin-top: 80px;
    padding: 50px 40px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    text-align: center;
    border-radius: 0;
}

.services-differentiation h3 {
    font-size: 29px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 0.05em;
    font-family: 'Klee One', 'Georgia', serif;
}

.services-differentiation p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-color);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Klee One', 'Georgia', serif;
}

.comparison-table {
    margin-top: 40px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.comparison-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--border-color);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-cell {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.comparison-cell.header {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Klee One', 'Georgia', serif;
}

.process-flow {
    margin-top: 50px;
    text-align: center;
}

.process-flow h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 0.05em;
    font-family: 'Georgia', serif;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.process-step {
    padding: 25px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.step-number {
    font-size: 28px;
    margin-bottom: 15px;
    display: block;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Klee One', 'Georgia', serif;
}

.step-desc {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.75;
    font-weight: 300;
}

/* Featured Service Card */
.main-service-label {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-family: 'Klee One', 'Georgia', serif;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-service-card {
    background: var(--light-gray);
    padding: 60px 50px;
    margin-bottom: 60px;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.featured-service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 80px 80px;
    border-color: transparent transparent var(--primary-color) transparent;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), border-width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.featured-service-card::after {
    content: '+';
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 32px;
    font-weight: 300;
    color: var(--secondary-color);
    letter-spacing: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    line-height: 1;
}

.featured-service-card:hover::before {
    opacity: 1;
    border-width: 0 0 100px 100px;
}

.featured-service-card:hover::after {
    opacity: 1;
}

.featured-service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.featured-service-card:hover .main-service-label {
    transform: scale(1.05) translateY(-2px);
}

.featured-service-card:hover h3 {
    transform: translateX(3px);
}

.featured-service-card:hover h4 {
    transform: translateX(3px);
}

.featured-service-card h3 {
    font-size: 37px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Klee One', 'Georgia', serif;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-service-card h4 {
    font-size: 19px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1.6;
    font-family: 'Klee One', 'Georgia', serif;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-content {
    display: none;
}

.featured-content p {
    font-size: 15px;
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 20px;
}

.featured-content p:last-child {
    margin-top: 30px;
    font-size: 15px;
    font-weight: 500;
}

.service-card {
    background: var(--secondary-color);
    padding: 50px 30px;
    border-radius: 0;
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 80px 80px;
    border-color: transparent transparent var(--primary-color) transparent;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.service-card::after {
    content: '+';
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 32px;
    font-weight: 300;
    color: var(--secondary-color);
    letter-spacing: 0;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    line-height: 1;
}

.service-card:hover::before {
    opacity: 1;
    border-width: 0 0 100px 100px;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 15px;
    margin: 0;
    color: var(--primary-color);
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
    letter-spacing: 0.03em;
    font-family: 'Klee One', 'Georgia', serif;
    line-height: 1.5;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

/* Cases Section */
.cases {
    background: var(--secondary-color);
    position: relative;
}


/* Contact Section */
.contact {
    background: var(--secondary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 29px;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 300;
    letter-spacing: 0.05em;
    font-family: 'Klee One', 'Georgia', serif;
}

.contact-info {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 60px;
    color: var(--text-color);
    font-weight: 300;
    font-family: 'Klee One', 'Georgia', serif;
}

.contact-info p {
    margin-bottom: 50px;
}

.service-offerings {
    margin-top: 30px;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 0;
    margin-bottom: 30px;
}

.service-offerings h4 {
    font-size: 19px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'Klee One', 'Georgia', serif;
}

.offering-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.offering-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.offering-item h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: 'Klee One', 'Georgia', serif;
}

.offering-item p {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
    font-family: 'Klee One', 'Georgia', serif;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 15px;
    font-family: 'Klee One', 'Georgia', serif;
}

.contact-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: transparent;
    letter-spacing: 0.02em;
}

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

.submit-btn {
    padding: 15px 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    transition: var(--transition);
    font-family: 'Klee One', 'Georgia', serif;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: var(--accent-color);
}

.submit-btn:disabled {
    opacity: 0.7;
    transform: none;
}

.form-status {
    display: none;
    padding: 12px 16px;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    animation: fadeIn 0.3s ease-in;
}

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

/* Service Modal */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    overflow: hidden;
    overscroll-behavior: contain;
    pointer-events: auto;
}

.service-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.service-modal-content {
    background: var(--secondary-color);
    max-width: 800px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 0 50px 60px 50px;
    transform: translateY(50px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray);
    pointer-events: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.service-modal-content::-webkit-scrollbar {
    width: 8px;
}

.service-modal-content::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.service-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.service-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.service-modal.active .service-modal-content {
    transform: translateY(0);
}

.service-modal-header {
    position: sticky;
    top: 0;
    background: var(--secondary-color);
    z-index: 100;
    margin: 0 -50px 30px -50px;
    padding: 20px 50px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.service-modal-close:hover {
    transform: rotate(90deg);
}

.service-modal-close::before,
.service-modal-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
}

.service-modal-close::before {
    transform: rotate(45deg);
}

.service-modal-close::after {
    transform: rotate(-45deg);
}

.service-modal h3 {
    font-size: 37px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
    font-family: 'Klee One', 'Georgia', serif;
}

.service-modal h4 {
    font-size: 29px;
    color: var(--primary-color);
    margin: 30px 0 15px 0;
    font-weight: 500;
    font-family: 'Klee One', 'Georgia', serif;
}

.service-modal p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 300;
}

.service-modal ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.service-modal li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 12px;
    padding-left: 0;
    position: relative;
}

/* Footer */
.footer {
    background: var(--light-gray);
    color: var(--primary-color);
    padding: 60px 0 0 0;
    text-align: center;
    font-family: 'Klee One', 'Georgia', serif;
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: var(--text-color);
}

.footer p:last-child {
    margin-bottom: 0;
}

.footer a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.footer a:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        right: -100%;
        flex-direction: column;
        background: var(--secondary-color);
        width: 100%;
        padding: 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        align-items: center;
    }

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

    /* Hero Section Mobile */
    .hero {
        height: 100vh;
    }

    .hero-logo-container.large .hero-logo {
        height: 250px;
    }

    .hero-title {
        font-size: clamp(40px, 8vw, 64px);
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: clamp(18px, 4vw, 24px);
    }

    .hero-line {
        min-height: 1.3em;
    }

    /* Consistent spacing for all sections */
    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Service Cards Mobile */
    .featured-service-card {
        padding: 40px 30px;
        margin-bottom: 40px;
    }

    .featured-service-card h3 {
        font-size: 22px;
    }

    .featured-service-card h4 {
        font-size: 18px;
    }

    .featured-content p {
        font-size: 15px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card {
        padding: 40px 20px;
        min-height: 180px;
    }

    .service-card h3 {
        font-size: 16px;
    }

    /* Show page flip effect by default on mobile */
    .service-card::before {
        opacity: 1 !important;
        border-width: 0 0 70px 70px !important;
    }

    .service-card::after {
        opacity: 1 !important;
        font-size: 28px;
        bottom: 6px;
        right: 6px;
    }

    /* Disable hover scaling on mobile */
    .service-card:hover {
        transform: none;
    }

    /* Featured service card page flip on mobile */
    .featured-service-card::before {
        opacity: 1 !important;
        border-width: 0 0 70px 70px !important;
    }

    .featured-service-card::after {
        opacity: 1 !important;
        font-size: 28px;
        bottom: 6px;
        right: 6px;
    }

    .featured-service-card:hover {
        transform: none;
    }

    .services-message {
        padding: 30px 20px;
        margin-top: 30px;
    }

    .services-message::before {
        width: 200px;
        height: 200px;
    }

    .services-message p {
        font-size: 15px;
        line-height: 1.8;
        letter-spacing: 0.02em;
    }

    /* Achievement Cards Mobile */
    .achievement-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .achievements-description h3 {
        font-size: clamp(20px, 5vw, 28px);
    }

    .achievements-description p {
        font-size: 15px;
    }

    .achievement-card {
        padding: 35px 25px;
    }

    .achievement-card h3 {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .achievement-number .counter {
        font-size: 48px;
    }

    .achievement-unit {
        font-size: 20px;
    }

    .achievement-stats {
        gap: 20px;
    }

    .stat-item .counter {
        font-size: 38px;
    }

    .stat-unit {
        font-size: 16px;
    }

    .achievement-detail {
        font-size: 14px;
    }

    /* About Content Mobile */
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .about-image-left {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    .timeline-section {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .timeline-image {
        display: none;
    }

    .cv-timeline {
        margin-top: 0;
        padding-left: 20px;
    }

    /* Contact Form Mobile */
    .contact-form {
        gap: 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
    }

    /* Container padding mobile */
    .container {
        padding: 0 15px;
    }

    /* Services intro mobile */
    .services-intro {
        margin-bottom: 40px;
    }

    .services-subtitle {
        font-size: 16px;
    }

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

    /* Service Modal Mobile */
    .service-modal {
        padding: 30px 20px;
    }

    .service-modal-content {
        padding: 0 25px 40px 25px;
        width: 100%;
        max-height: calc(100vh - 60px);
    }

    .service-modal-header {
        margin: 0 -25px 20px -25px;
        padding: 15px 25px;
    }

    .service-modal h3 {
        font-size: 22px;
    }

    .service-modal h4 {
        font-size: 18px;
    }

    .service-modal p,
    .service-modal li {
        font-size: 15px;
    }

    .service-modal-close {
        width: 35px;
        height: 35px;
    }

    .service-modal-close::before,
    .service-modal-close::after {
        width: 20px;
    }
}

/* Scroll Animations - Simple Fade In/Out */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
}

