/* Apple-style Design for Yoonmade.com */

/* ===== CSS Variables ===== */
:root {
    --primary-text: #1d1d1f;
    --secondary-text: #6e6e73;
    --link-blue: #0071e3;
    --link-hover: #0077ed;
    --bg-white: #ffffff;
    --bg-light: #f5f5f7;
    --border-light: #d2d2d7;
    --focus-ring: rgba(0, 125, 250, 0.6);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--primary-text);
    background-color: var(--bg-white);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.logo a {
    font-size: 21px;
    font-weight: 600;
    color: var(--primary-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    font-size: 12px;
    font-weight: 400;
    color: var(--primary-text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}

.nav-toggle span {
    width: 17px;
    height: 1px;
    background-color: var(--primary-text);
    transition: all 0.3s;
}

/* ===== Hero Section ===== */
.hero {
    margin-top: 44px;
    background: linear-gradient(135deg, #000000 0%, #1d1d1f 100%);
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
}

.hero-content {
    max-width: 980px;
}

.hero-title {
    font-size: 80px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.05;
    color: #f5f5f7;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 400;
    letter-spacing: 0.004em;
    color: #a1a1a6;
    margin-bottom: 24px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    padding: 12px 22px;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -0.022em;
    background: var(--link-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 980px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--link-hover);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 22px;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -0.022em;
    background: transparent;
    color: var(--link-blue);
    text-decoration: none;
    border-radius: 980px;
    border: 1px solid var(--link-blue);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--link-blue);
    color: #fff;
}

/* ===== Feature Highlight ===== */
.feature-highlight {
    padding: 100px 20px;
    text-align: center;
    background: var(--bg-light);
}

.feature-content h2 {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--primary-text);
    margin-bottom: 20px;
}

.feature-content p {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: var(--secondary-text);
    max-width: 640px;
    margin: 0 auto;
}

/* ===== Services Section ===== */
.services {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #d2d2d7;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.service-content {
    padding: 48px 24px;
}

.service-content h3 {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 600;
    letter-spacing: 0.004em;
    color: var(--primary-text);
    margin-bottom: 12px;
}

.service-content p {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--secondary-text);
    margin-bottom: 16px;
}

.learn-more {
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--link-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.learn-more:hover {
    text-decoration: underline;
}

/* ===== About Section ===== */
.about {
    padding: 100px 20px;
    background: var(--bg-white);
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: var(--primary-text);
    margin-bottom: 24px;
}

.about-content p {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: var(--secondary-text);
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 20px;
    background: var(--bg-light);
    text-align: center;
}

.contact-container {
    max-width: 640px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: var(--primary-text);
    margin-bottom: 16px;
}

.contact-container > p {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: var(--secondary-text);
    margin-bottom: 40px;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-family: inherit;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--link-blue);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 400;
    background: var(--link-blue);
    color: #fff;
    border: none;
    border-radius: 980px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--link-hover);
}

.form-message {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    display: none;
}

.form-message.success {
    background: #d1f2eb;
    color: #0e6655;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #842029;
    display: block;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-light);
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 12px;
    color: var(--secondary-text);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-content p {
    font-size: 12px;
    color: var(--secondary-text);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 44px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 20px;
    }

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

    .nav-menu a {
        font-size: 17px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 21px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .feature-content h2 {
        font-size: 40px;
    }

    .about-content h2,
    .contact-container h2 {
        font-size: 32px;
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 40px;
    }

    .feature-content h2 {
        font-size: 32px;
    }

    .feature-content p,
    .contact-container > p {
        font-size: 17px;
    }
}

/* ===== Smooth Animations ===== */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .btn-primary,
    .btn-secondary,
    .learn-more {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}
