/* Modern CSS Variables */
:root {
    /* Color Palette - Apple-inspired */
    --bg-color: #F5F5F7;
    --card-bg: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --accent-color: #0071E3; /* Apple Blue */
    --accent-gradient: linear-gradient(135deg, #0071E3 0%, #42A5F5 100%);
    --success-color: #34C759;
    
    /* Spacing & Layout */
    --container-width: 1100px;
    --header-height: 70px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }
p { color: var(--text-secondary); font-size: 1.125rem; }

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

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-brand h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-color);
}

.nav-toggle { display: none; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f5f5f7 100%);
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1s ease-out;
}

.hero-content h1 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1D1D1F 0%, #434344 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-content p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.25rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    border: 2px solid var(--text-primary);
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: white;
}

/* Sections General */
section {
    padding: 100px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.philosophy {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.philosophy h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.philosophy ul {
    list-style: none;
}

.philosophy li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.philosophy li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: #F5F5F7;
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--accent-color);
    color: white;
}

/* Core Strengths */
.core-strengths { margin-top: 4rem; }
.core-strengths h3 { text-align: center; margin-bottom: 2rem; }

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.strength-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.strength-item h4 { margin-bottom: 0.5rem; color: var(--accent-color); }

/* Projects Section */
.projects {
    background: #F5F5F7;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    background: #f0f0f0;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
}

.project-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 22px; /* iOS icon radius */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.project-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.project-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-content li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.project-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.project-tech span {
    font-size: 0.8rem;
    padding: 4px 12px;
    background: #F5F5F7;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn-link {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.95rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Experience Section */
.experience {
    background: white;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E5E5EA;
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 1px #E5E5EA;
    transform: translateX(-50%);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-date {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    background: rgba(0, 113, 227, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

/* Contact Section */
.contact {
    background: #F5F5F7;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-info h3 { margin-bottom: 1rem; }

.contact-details { margin: 2rem 0; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-item i { color: var(--accent-color); }

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: #F5F5F7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px;
    background: #F5F5F7;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    background: white;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

/* Footer */
.footer {
    background: white;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #E5E5EA;
}

.footer p { font-size: 0.9rem; }

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

.animate-in {
    animation: fadeUp 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid #E5E5EA;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.nav-menu-active {
        transform: translateY(0);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-toggle {
        display: block;
        width: 24px;
        height: 24px;
        position: relative;
        cursor: pointer;
    }
    
    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-primary);
        margin-bottom: 6px;
        transition: 0.3s;
    }
    
    .nav-toggle-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .nav-toggle-active span:nth-child(2) { opacity: 0; }
    .nav-toggle-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    
    .about-content, .contact-content { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { order: -1; }
    
    .projects-grid { grid-template-columns: 1fr; }
}
