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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: #fafafa;
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.nav-brand h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 400;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.nav-link:hover {
    color: #007aff;
}

.linkedin-link {
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.linkedin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

/* Main Content */
.main-content {
    padding-top: 60px;
}

/* Hero Section */
.hero {
    padding: 120px 20px 80px;
    text-align: center;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f7 100%);
}

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

.hero-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1d1d1f 0%, #86868b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-subtitle {
    font-size: 24px;
    color: #86868b;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

/* Projects Section */
.projects-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 20px;
    color: #86868b;
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(88, 86, 214, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.project-icon {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.icon-circle.uk {
    background: linear-gradient(135deg, #007aff, #5856d6);
}

.icon-circle.ai {
    background: linear-gradient(135deg, #ff3b30, #ff9500);
}

.icon-circle.web {
    background: linear-gradient(135deg, #34c759, #00d4aa);
}

.icon-circle.scan {
    background: linear-gradient(135deg, #5856d6, #af52de);
}

.icon-circle.pixel {
    background: linear-gradient(135deg, #ff9500, #ffcc02);
}

.icon-circle.driving {
    background: linear-gradient(135deg, #007aff, #00d4aa);
}

.project-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.project-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.project-subtitle {
    font-size: 16px;
    color: #86868b;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.project-arrow {
    font-size: 20px;
    color: #007aff;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.footer {
    background: #1d1d1f;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-linkedin {
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-linkedin:hover {
    color: #5856d6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .linkedin-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .hero {
        padding: 100px 16px 60px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .projects-section {
        padding: 60px 16px;
    }
    
    .section-header h2 {
        font-size: 36px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-brand h2 {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 18px;
    }
}