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

:root {
    --primary-color: #000000;
    --secondary-color: #86868b;
    --accent-color: #0066cc;
    --background-color: #ffffff;
    --section-background: #f5f5f7;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: var(--primary-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Typography */
h1 {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
}

h2 {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 40px;
}

h3 {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 500;
    letter-spacing: 0.007em;
}

p {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
}

/* Layout */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
}

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

.logo {
    font-size: 21px;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
    position: relative;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 44px;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero .subtitle {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 400;
    margin: 20px 0;
    color: var(--secondary-color);
}

.hero-description {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    color: var(--secondary-color);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--section-background);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

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

.lead {
    font-size: 21px;
    line-height: 1.381;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.story-section {
    background: var(--background-color);
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.story-section h3 {
    color: var(--accent-color);
    margin-bottom: 24px;
}

.story-section p {
    margin-bottom: 20px;
    color: var(--primary-color);
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

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

.highlight {
    color: var(--accent-color);
    font-weight: 500;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.expertise-item {
    background: var(--background-color);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.expertise-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.expertise-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.expertise-item:hover::after {
    width: 80%;
}

.number {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

/* Experience Section */
.experience {
    padding: 100px 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.experience-item {
    background: var(--section-background);
    padding: 40px;
    border-radius: 18px;
}

.company {
    color: var(--accent-color);
    font-weight: 500;
    margin: 10px 0;
}

.duration {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.experience-item ul {
    list-style: none;
    margin-top: 20px;
}

.experience-item li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.experience-item li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background-color: var(--section-background);
}

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

.skill-category {
    background: var(--background-color);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.skill-category li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    padding: 30px;
    border-radius: 18px;
    background: var(--section-background);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item i {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.7;
}

.hover-effect {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 51%,
        transparent 100%
    );
    background-size: 200% 100%;
    transition: background-position 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-effect:hover::before {
    background-position: 100% 0;
}

.hover-effect:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: var(--section-background);
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--secondary-color);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    nav ul {
        display: none;
    }
    
    .expertise-grid,
    .skills-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-item {
        padding: 20px;
    }
}
