/* Global Styles */
:root {
    --primary-color: #4A4A4A;
    --secondary-color: #D3D3D3;
    --text-color: #333333;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --green: #32CD7E;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

/* Navigation */
.navbar {
    background-color: var(--green);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 60px;
    overflow: visible;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.navbar .container {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    height: 100%;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    text-decoration: none;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    height: 100%;
    padding: 8px 0;
    transform: scale(1.8);
    -webkit-transform: scale(1.8);
    transform-origin: left center;
    -webkit-transform-origin: left center;
    margin-left: 3rem;
    flex-shrink: 0;
    -webkit-flex-shrink: 0;
}

.logo img {
    height: 90%;
    width: auto;
    padding: 0;
    margin: 0;
    display: block;
    -webkit-user-select: none;
    user-select: none;
}

.logo-text {
    letter-spacing: 1px;
    color: #0066cc;
}

.nav-links {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
    margin-left: auto;
    padding-right: 3rem;
}

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

.nav-links li + li {
    margin-left: 3rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    padding: 0.5rem 0;
    display: block;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.nav-links a:last-child {
    margin-right: 0;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1200px) {
    .logo {
        margin-left: 2rem;
    }
    
    .nav-links {
        padding-right: 2rem;
    }

    .nav-links li + li {
        margin-left: 2rem;
    }

    .about-section {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0;
    }

    .logo {
        transform: scale(1.5);
        -webkit-transform: scale(1.5);
        margin-left: 1.5rem;
    }

    .nav-links {
        padding-right: 1.5rem;
    }

    .nav-links li + li {
        margin-left: 1.5rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .about-section {
        padding: 5rem 0 2rem 0;
        background-attachment: scroll;
    }

    .about-content {
        padding: 0 1rem;
        width: 92%;
    }

    .about-text > div {
        padding: 1rem;
        margin-bottom: 1rem;
        background-color: rgba(255, 255, 255, 0.92);
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 4rem 0 2rem 0;
    }

    .about-content {
        width: 94%;
        padding: 0 0.8rem;
    }

    .about-text > div {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .navbar {
        position: -webkit-sticky;
        position: sticky;
    }
    
    .about-section {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 65vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 60px;
}

.hero .container {
    width: 100%;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 80%;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    opacity: 0.9;
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services {
    padding: 0;
    background-color: transparent;
    position: relative;
    width: 100%;
    z-index: 2;
    margin-top: -10vh;
    margin-bottom: 2vh;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(50, 205, 126, 0.15);
    border-radius: 8px;
    padding: 1.2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(50, 205, 126, 0.12);
    border-color: rgba(50, 205, 126, 0.3);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
    height: 3.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    padding: 0 0.8rem;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #32CD7E;
}

.card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0.1) 100%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.service-card:hover .card-image::after {
    opacity: 0;
}

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

/* Service Detail Sections */
.service-detail {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--white);
    padding: 80px 0 0;
    position: relative;
}

.service-header {
    padding: 1.5rem 0;
    margin-left: 10%;
    flex-shrink: 0;
}

.category {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
    max-width: 800px;
    letter-spacing: -0.02em;
}

.service-content {
    flex: 1;
    display: flex;
    align-items: stretch;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
    padding: 0;
    height: calc(100vh - 200px);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 0;
    align-items: stretch;
    height: 100%;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.text-content {
    padding: 3rem 4rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-content h2 {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.text-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #333;
    margin-top: 1.5rem;
    max-width: 600px;
    font-weight: 400;
}

.image-content {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0;
    overflow: hidden;
}

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

.image-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        var(--light-gray) 0%,
        var(--light-gray) 10%,
        rgba(245, 245, 245, 0.9) 20%,
        rgba(245, 245, 245, 0.4) 35%,
        transparent 50%,
        transparent 65%,
        rgba(245, 245, 245, 0.4) 80%,
        rgba(245, 245, 245, 0.9) 90%,
        var(--light-gray) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)), url('images/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--text-color);
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.65);
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    padding: 1.8rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(50, 205, 126, 0.1);
}

.contact-info h3 {
    font-size: 1.6rem;
    margin: 0 0 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-info p {
    margin: 0.8rem 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-color);
}

.contact-info strong {
    color: #32CD7E;
}

.contact-form {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(50, 205, 126, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #32CD7E;
    box-shadow: 0 0 0 2px rgba(50, 205, 126, 0.1);
}

.submit-btn {
    background: #32CD7E;
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #2ab06b;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 1200px) {
    .logo {
        margin-left: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0 1rem;
    }

    .logo {
        transform: scale(1.5);
        margin-left: 1rem;
    }

    .nav-links {
        gap: 2rem;
        margin-right: 1rem;
    }

    .service-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }

    .service-card {
        padding: 1rem;
    }

    .card-image {
        height: 140px;
    }

    .service-card h3 {
        font-size: 0.95rem;
        height: 3.2em;
        padding: 0 0.5rem;
        margin-bottom: 0.8rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-height: none;
    }

    .text-content {
        padding-right: 0;
    }

    .image-content {
        max-height: 300px;
        margin-right: 0;
    }

    .image-content::before {
        background: linear-gradient(to bottom,
            var(--light-gray) 0%,
            rgba(245, 245, 245, 0.8) 10%,
            transparent 30%
        );
    }

    .title {
        font-size: 2rem;
    }

    .text-content h2 {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2.8rem;
        max-width: 90%;
    }

    .hero p {
        font-size: 1.1rem;
        max-width: 80%;
        margin-top: 1rem;
    }

    .service-content .text-content p,
    .contact-info p,
    .form-group label,
    .form-group input,
    .form-group textarea {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .contact-section {
        padding: 3rem 0;
    }

    .contact-header h2 {
        font-size: 2.2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .contact-info, 
    .contact-form {
        padding: 1.5rem;
    }

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

    .contact-info p {
        font-size: 1rem;
        margin: 0.6rem 0;
    }

    .hero {
        height: 60vh;
    }

    .services {
        margin-top: -8vh;
    }
}

@media (max-width: 480px) {
    .service-header {
        margin-left: 0;
        padding: 1.5rem 0;
    }

    .title {
        font-size: 1.8rem;
    }

    .text-content h2 {
        font-size: 1.6rem;
    }

    .image-content {
        max-height: 250px;
    }

    .hero h1 {
        font-size: 2.2rem;
        max-width: 95%;
    }

    .hero p {
        font-size: 1rem;
        max-width: 90%;
    }

    .service-content .text-content p,
    .contact-info p,
    .form-group label,
    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        line-height: 1.5;
    }

    .contact-section {
        padding: 2.5rem 0;
    }

    .contact-header h2 {
        font-size: 2rem;
    }

    .contact-info, 
    .contact-form {
        padding: 1.2rem;
    }

    .hero {
        height: 55vh;
    }

    .services {
        margin-top: -6vh;
    }

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

    .card-image {
        height: 180px;
    }
}

/* About Section */
.about-section {
    padding: 5rem 0 3rem;
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../images/about-team.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--text-color);
    -webkit-background-size: cover;
    -webkit-background-position: center;
}

.about-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-text {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.who-we-are, .what-we-do, .our-people {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.85);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(50, 205, 126, 0.1);
    backdrop-filter: blur(5px);
}

.lead-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pillar {
    background: rgba(255, 255, 255, 0.85);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(50, 205, 126, 0.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(5px);
}

.pillar h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.pillar .description {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 0 2rem;
    }

    .about-content {
        padding: 0 1rem;
    }

    .about-header h2 {
        font-size: 1.8rem;
    }

    .who-we-are, .what-we-do, .our-people {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }

    .pillar {
        padding: 1rem;
    }

    .service-pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 3rem 0 2rem;
    }

    .about-header h2 {
        font-size: 1.6rem;
    }

    .lead-text {
        font-size: 0.95rem;
    }

    .who-we-are, .what-we-do, .our-people {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }

    .service-pillars {
        grid-template-columns: 1fr;
    }
}

@supports (-webkit-touch-callout: none) {
    .about-section {
        background-attachment: scroll;
        background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../images/about-team.jpg');
    }
} 