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

:root {
    /* Dark blue and black theme with bright text */
    --primary-bg: #0A0A0F;
    --secondary-bg: #1C1C2E;
    --tertiary-bg: #2C2C54;
    --text-primary: #FFFFFF;
    --text-secondary: #E5E5E7;
    --text-muted: #AEAEB2;
    --accent-color: #00D4FF;
    --accent-hover: #0099CC;
    --accent-light: rgba(0, 212, 255, 0.15);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(28, 28, 46, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-large: 0 8px 25px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.3);
    --shadow-apple: 0 4px 16px rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #00D4FF 0%, #7C3AED 100%);
    --gradient-glass: linear-gradient(135deg, rgba(28, 28, 46, 0.4) 0%, rgba(44, 44, 84, 0.3) 100%);
    --blur-amount: 20px;
}

[data-theme="dark"] {
    /* Enhanced dark mode with dark blue and black */
    --primary-bg: #0A0A0F;
    --secondary-bg: #1C1C2E;
    --tertiary-bg: #2C2C54;
    --text-primary: #FFFFFF;
    --text-secondary: #E5E5E7;
    --text-muted: #AEAEB2;
    --accent-color: #00D4FF;
    --accent-hover: #33DDFF;
    --accent-light: rgba(0, 212, 255, 0.15);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(28, 28, 46, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-large: 0 8px 25px rgba(0, 0, 0, 0.5), 0 3px 10px rgba(0, 0, 0, 0.4);
    --shadow-apple: 0 4px 16px rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #00D4FF 0%, #7C3AED 100%);
    --gradient-glass: linear-gradient(135deg, rgba(28, 28, 46, 0.4) 0%, rgba(44, 44, 84, 0.3) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    line-height: 1.47059;
    color: var(--text-primary);
    background: #0A0A0F;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Apple-style Sections */
.section {
    padding: 80px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0.02;
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.07143;
    letter-spacing: -0.005em;
    margin-bottom: 48px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(19px, 3vw, 28px);
    font-weight: 400;
    line-height: 1.381;
    letter-spacing: 0.011em;
    color: var(--text-secondary);
    margin-bottom: 64px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Apple-style Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 980px;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.23536;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 44px;
    min-height: 44px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-apple);
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--accent-light);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-apple);
}

.btn-secondary:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.btn-small {
    padding: 8px 16px;
    font-size: 15px;
    min-width: 36px;
    min-height: 36px;
}

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

.btn-outline:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-color: var(--accent-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 0 0 var(--border-color);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0.8;
    z-index: -1;
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, 
        #0A0A0F 0%, 
        #1C1C2E 50%,
        #2C2C54 100%
    );
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(88, 86, 214, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
    padding: 0;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.08349;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(19px, 3vw, 28px);
    font-weight: 400;
    line-height: 1.381;
    letter-spacing: 0.011em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-bio {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.avatar-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    transition: transform 0.3s ease;
}

.avatar-placeholder:hover {
    transform: scale(1.05);
}

.avatar-placeholder svg {
    width: 100%;
    height: 100%;
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.08) 0%, 
        rgba(124, 58, 237, 0.08) 100%
    );
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

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

.highlights {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    padding: 32px;
    border-radius: 18px;
    box-shadow: var(--shadow-apple);
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.highlights h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.highlights-list {
    list-style: none;
}

.highlights-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.highlights-list li:last-child {
    border-bottom: none;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        rgba(255, 214, 10, 0.08) 0%, 
        rgba(255, 69, 58, 0.08) 100%
    );
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 30% 70%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

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

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    padding: 32px;
    border-radius: 18px;
    box-shadow: var(--shadow-apple);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: inherit;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
                0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

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

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: var(--secondary-bg);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-card p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

/* Skills Section */
.skills {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        rgba(48, 209, 88, 0.08) 0%, 
        rgba(0, 212, 255, 0.08) 100%
    );
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 60% 20%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
    z-index: 1;
}

.skills-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

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

.skill-tag {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 980px;
    font-weight: 500;
    box-shadow: var(--shadow-apple);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
}

.skill-tag:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

/* Apple-style Experience Section */
.experience {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.08) 0%, 
        rgba(255, 159, 10, 0.08) 100%
    );
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), var(--accent-light));
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    padding-left: 4rem;
}

.timeline-marker {
    position: absolute;
    left: 22px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--primary-bg);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    padding: 32px;
    border-radius: 18px;
    box-shadow: var(--shadow-apple);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-content:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

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

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Blog Section */
.blog {
    padding: 5rem 0;
    background: var(--secondary-bg);
}

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

.blog-card {
    background: var(--primary-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.blog-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-preview {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.blog-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: var(--accent-hover);
}

/* Apple-style Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--shadow-apple);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: inherit;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
                0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.card:hover::before {
    opacity: 0.1;
}

.card h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.27273;
    letter-spacing: 0.016em;
    position: relative;
    z-index: 1;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.47059;
    font-size: 17px;
    letter-spacing: -0.022em;
    position: relative;
    z-index: 1;
}

/* Apple-style Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        rgba(255, 69, 58, 0.08) 0%, 
        rgba(48, 209, 88, 0.08) 100%
    );
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.contact-info {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    padding: 32px;
    border-radius: 18px;
    box-shadow: var(--shadow-apple);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.contact-link:hover {
    background: var(--accent-light);
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    padding: 32px;
    border-radius: 18px;
    box-shadow: var(--shadow-apple);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Apple-style Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15),
                0 1px 3px rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: rgba(30, 30, 30, 0.9);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

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

/* Footer */
.footer {
    background: var(--secondary-bg);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-muted);
    margin: 0;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-bg);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apple-style Scroll Effects */
body.scrolling {
    --scroll-momentum: 1;
}

body.scrolling .card,
body.scrolling .project-card {
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

/* Enhanced transitions for Apple-style animations */
.section {
    will-change: transform, opacity;
}

.card,
.project-card,
.timeline-content {
    will-change: transform, opacity, scale;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth page load animation */
body {
    will-change: transform, opacity;
}

/* Enhanced focus states for accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--glass-bg);
        backdrop-filter: blur(var(--blur-amount));
        -webkit-backdrop-filter: blur(var(--blur-amount));
        width: 100%;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        border-top: 1px solid var(--glass-border);
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-subtitle {
        font-size: clamp(17px, 4vw, 21px);
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }

    .timeline-marker {
        left: 7px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Mobile-specific Apple-style adjustments */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: clamp(28px, 6vw, 40px);
        margin-bottom: 32px;
    }

    .section-subtitle {
        font-size: clamp(17px, 4vw, 21px);
        margin-bottom: 48px;
    }

    .card,
    .project-card,
    .contact-form,
    .contact-info {
        padding: 24px;
        border-radius: 16px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 16px;
        min-width: 40px;
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .project-filters {
        justify-content: center;
    }

    .filter-btn {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }

    .avatar-placeholder {
        width: 200px;
        height: 200px;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 2rem;
}

/* Smooth scrolling offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus styles for accessibility */
.btn:focus,
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Apple-style Floating Elements */
.floating-elements {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

.floating-btn {
    width: 56px;
    height: 56px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-apple);
    position: relative;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.floating-btn:hover::before {
    opacity: 0.1;
}

.floating-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15),
                0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.floating-btn:active {
    transform: translateY(-2px) scale(1.02);
    transition: transform 0.1s ease;
}

.floating-btn svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.floating-btn:hover svg {
    transform: scale(1.1);
}

/* Specific floating button styles */
.scroll-to-top {
    background: var(--accent-color);
    color: white;
    border: none;
}

.scroll-to-top:hover {
    background: var(--accent-hover);
    box-shadow: 0 12px 30px rgba(0, 122, 255, 0.4);
}

.quick-contact {
    transition-delay: 0.1s;
}

.theme-toggle-floating {
    transition-delay: 0.2s;
}

.theme-toggle-floating .sun-icon,
.theme-toggle-floating .moon-icon {
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle-floating .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle-floating .moon-icon {
    display: block !important;
}

/* Floating elements animation on scroll */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Apple-style loading animations */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--glass-border);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--glass-bg);
    border-radius: 2px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        transparent
    );
    animation: progressSlide 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes progressSlide {
    0% { left: -100%; }
    100% { left: 100%; }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: pulse 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite both;
}

.pulse-dot:nth-child(1) { animation-delay: -0.32s; }
.pulse-dot:nth-child(2) { animation-delay: -0.16s; }
.pulse-dot:nth-child(3) { animation-delay: 0s; }

@keyframes pulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.skeleton-loader {
    background: linear-gradient(
        90deg,
        var(--glass-bg) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        var(--glass-bg) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    color: white;
    padding: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: var(--apple-shadow);
}

.loading-content .loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
    margin: 0 0 20px 0;
}

.loading-text {
    font-size: 16px;
    font-weight: 500;
    margin-top: 16px;
    opacity: 0.8;
}

.floating-btn.animate-in {
    animation: floatIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .project-links,
    .contact-form,
    .dark-mode-toggle {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .hero {
        min-height: auto;
        padding: 1rem 0;
    }

    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
}