/* Base Styles & Typography */
:root {
    --bg-color: #fbfbfd;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --nav-bg: rgba(255, 255, 255, 0.72);
    --border-color: #d2d2d7;
    --link-color: #0066cc;
    --card-bg: #ffffff;
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -.022em;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--text-primary);
}

ul {
    list-style: none;
}

/* Global Navigation */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 9999;
    display: flex;
    justify-content: center;
    transition: background-color 0.3s;
}

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

.nav-logo {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 12px;
    color: var(--text-primary);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
}

.nav-search form {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 4px 10px;
}

.nav-search input {
    border: none;
    background: transparent;
    font-size: 12px;
    outline: none;
    width: 120px;
    transition: width 0.3s;
    font-family: var(--font-family);
    color: var(--text-primary);
}

.nav-search input:focus {
    width: 160px;
}

.nav-search button {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    margin-top: 48px;
    padding: 120px 20px 100px;
    text-align: center;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
    overflow: hidden;
}

.avatar-container {
    margin-bottom: 30px;
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: #e0e0e0;
    background-image: url(../img/112.ico);
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.avatar:hover {
    transform: scale(1.06);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.hero-title {
    font-size: 64px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -.005em;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(45deg, #1d1d1f, #86868b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 400;
    letter-spacing: .009em;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 980px;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -.022em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: #0051a8;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--link-color);
    border: 1px solid var(--link-color);
}

.btn-secondary:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

/* Portfolio / Main Content */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0em;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 21px;
    color: var(--text-secondary);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.apple-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    top: 0;
    text-decoration: none;
    cursor: pointer;
}

.apple-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f7;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.apple-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 26px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card-content p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.global-footer {
    background-color: #f5f5f7;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 12px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-column p {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

.footer-bottom {
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 44px;
    }
    
    .hero-subtitle {
        font-size: 19px;
    }
    
    .nav-links {
        display: none; 
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}
