:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    --bg-overlay: rgba(15, 23, 42, 0.8);
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #fb923c);
    --gradient-dark: linear-gradient(135deg, var(--bg-dark), #1e293b);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --section-padding-sm: 3rem 0;
}

[data-theme="dark"] {
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-light: #64748b;
    --text-white: #ffffff;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    
    --border-color: #334155;
    --border-light: #475569;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3);
}

[data-theme="dark"] .form-control {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-control:focus {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-light);
}

[data-theme="dark"] .navbar {
    background: rgba(30, 41, 59, 0.95) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .nav-menu {
    background: var(--bg-card);
}

[data-theme="dark"] .nav-link {
    color: var(--text-primary);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .nav-brand {
    color: var(--text-primary);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
    overflow: hidden;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn: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 var(--transition-normal);
}

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

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

.nav-brand a:hover {
    color: var(--primary-color);
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.theme-toggle i {
    font-size: 1rem;
    transition: transform var(--transition-normal);
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.25rem;
}

.bar {
    width: 1.5rem;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

.main-content {
    margin-top: 4rem;
    min-height: calc(100vh - 4rem);
}

.hero {
    position: relative;
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    z-index: -1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%232563eb" opacity="0.1"/><circle cx="80" cy="30" r="1.5" fill="%232563eb" opacity="0.1"/><circle cx="40" cy="70" r="1" fill="%232563eb" opacity="0.1"/><circle cx="90" cy="80" r="1" fill="%232563eb" opacity="0.1"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-greeting {
    margin-bottom: 1rem;
}

.greeting-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.name-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.typing-text {
    position: relative;
}

.typing-text:after {
    content: '|';
    color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.hero-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.hero-social a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.image-background {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-xl);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-light);
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-xl);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-indicator {
    color: var(--text-secondary);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    display: block;
    margin-top: 0.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.education-preview {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.skill-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
    z-index: 2;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 1.5rem;
    width: 2px;
    height: calc(100% + 1rem);
    background: var(--border-light);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.timeline-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

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

.field-of-study {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 0 0.75rem 0;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
    margin: 0;
}

.skill-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--text-white);
    font-size: 1.5rem;
}

.skill-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-progress {
    background: var(--bg-secondary);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;
}

.skill-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

.featured-projects {
    padding: var(--section-padding);
}

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

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

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

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.project-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
    min-width: 80px;
    height: 60px;
    gap: 0.25rem;
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.05);
}

.project-link i {
    font-size: 1.25rem;
}

.project-link span {
    font-size: 0.75rem;
    font-weight: 500;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-type {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

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

.experience-preview {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.experience-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    max-width: 800px;
    margin: 0 auto;
}

.experience-card.current {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.experience-info h4 {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.experience-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.experience-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-description p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.cta-section {
    padding: var(--section-padding);
    background: var(--gradient-dark);
    color: var(--text-white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-hero {
    padding: 6rem 0 4rem;
    background: var(--bg-secondary);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    padding: var(--section-padding);
}

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

.bio-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.bio-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.personal-details {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.detail-item strong {
    min-width: 80px;
    color: var(--text-primary);
}

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

.detail-item a:hover {
    text-decoration: underline;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-profile-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.skills-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.skills-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.skills-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.skill-carousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    min-width: 200px;
    flex-shrink: 0;
}

.skill-carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill-icon-large {
    width: 5rem;
    height: 5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.skill-carousel-item:hover .skill-icon-large {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.skill-carousel-item.active .skill-icon-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6) !important;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-card {
    0%, 100% {
        transform: scale(1.1);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 18px 45px rgba(102, 126, 234, 0.4);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    }
}

.skill-name-large {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.carousel-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    pointer-events: all;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.skills-categories {
    display: grid;
    gap: 3rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.skills-list {
    display: grid;
    gap: 1rem;
}

.skill-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-level {
    font-weight: 600;
    color: var(--primary-color);
}

.education-section {
    padding: var(--section-padding);
}

.education-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: -2rem;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child:before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: -0.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-card);
}

.timeline-content {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-content h4 {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.field-of-study {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.gpa {
    font-weight: 500;
    color: var(--text-primary);
}

.values-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

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

.value-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--text-white);
    font-size: 1.5rem;
}

.value-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.value-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.projects-section {
    padding: var(--section-padding);
}

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

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 500;
}

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

.project-card {
    opacity: 1;
    transform: scale(1);
    transition: all var(--transition-normal);
}

.project-card.show {
    opacity: 1;
    transform: scale(1);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-accent);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

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

.project-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.project-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    z-index: 1;
}

.modal-close:hover {
    background: var(--error-color);
    color: var(--text-white);
}

.modal-body {
    padding: 2rem;
}

.project-detail-header {
    margin-bottom: 1.5rem;
}

.project-detail-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.project-detail-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-detail-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-projects i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-projects h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.experience-section {
    padding: var(--section-padding);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
}

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

.timeline-item:before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: -3rem;
    width: 2px;
    background: var(--border-color);
}

.timeline-item.current:before {
    background: var(--primary-color);
}

.timeline-item:last-child:before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: 0.25rem;
    top: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-item.current .timeline-marker {
    border-color: var(--primary-color);
}

.current-indicator {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.experience-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.experience-card:hover {
    box-shadow: var(--shadow-md);
}

.experience-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.experience-title h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.current-badge {
    padding: 0.25rem 0.75rem;
    background: var(--success-color);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-transform: uppercase;
}

.experience-company {
    margin-bottom: 1rem;
}

.company-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

.company-link:hover {
    color: var(--primary-dark);
}

.company-link h4 {
    font-size: 1.125rem;
    font-weight: 500;
}

.experience-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.experience-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.experience-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.no-experience {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-experience i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-experience h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

.education-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.education-header {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
}

.education-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.education-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.education-info h4 {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.education-content {
    padding: 1.5rem;
}

.skills-summary {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

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

.competency-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all var(--transition-normal);
}

.competency-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.competency-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--text-white);
    font-size: 1.5rem;
}

.competency-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.competency-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.achievements-section {
    padding: var(--section-padding);
}

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

.achievement-item {
    text-align: center;
    padding: 2rem 1rem;
}

.achievement-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.achievement-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.achievement-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-section {
    padding: var(--section-padding);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-intro {
    margin-bottom: 2rem;
}

.contact-intro h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-intro p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.social-connect h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-link.github:hover {
    background: #333;
    border-color: #333;
}

.social-link.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.contact-form-container {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.contact-form-wrapper {
    padding: 2rem;
}

.contact-form-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.messages {
    margin-bottom: 1.5rem;
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-normal);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.faq-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.availability-section {
    padding: var(--section-padding-sm);
    background: var(--gradient-primary);
    color: var(--text-white);
}

.availability-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    position: relative;
}

.status-indicator.available {
    background: var(--success-color);
}

.status-indicator.available:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--success-color);
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.availability-status h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.availability-status p {
    margin: 0;
    opacity: 0.9;
}

.availability-details {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

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

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer .social-links a:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .container {
            padding: 0 1.25rem;
        }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .image-container {
        width: 300px;
        height: 300px;
    }
    
    .about-profile-image {
        width: 300px;
        height: 300px;
    }
    
    .skill-carousel-item {
        min-width: 150px;
        padding: 1.5rem 1rem;
    }
    
    .skill-icon-large {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .skill-name-large {
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .carousel-controls {
        padding: 0 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
        .about-image {
            order: -1;
            margin-bottom: 2rem;
        }
    
        .about-profile-image {
            width: 250px;
            height: 250px;
            margin: 0 auto;
            display: block;
        }
    
        .about-text {
            text-align: center;
        }
    
        .bio-section h2 {
            font-size: 1.75rem;
            text-align: center;
            margin-bottom: 1.25rem;
        }
    
        .bio-text {
            font-size: 0.95rem;
            line-height: 1.7;
            text-align: left;
        }
    
        .personal-details {
            margin-bottom: 1.5rem;
        }
    
        .detail-item {
            justify-content: center;
            margin-bottom: 0.75rem;
        }
    
        .detail-item strong {
            min-width: 70px;
            text-align: left;
        }
    
        .social-profiles {
            justify-content: center;
            gap: 0.75rem;
        }
    
        .social-link {
            flex: 1;
            max-width: 150px;
            justify-content: center;
            padding: 0.75rem 1rem;
        }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .availability-content {
        flex-direction: column;
        text-align: center;
    }
    
    .availability-details {
        justify-content: center;
    }
                                .projects-grid {
                                    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                                    gap: 1.5rem;
                                }
                
                                .values-grid {
                                    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                                    gap: 1.5rem;
                                }
                
                                .competencies-grid {
                                    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                                    gap: 1.5rem;
                                }
}

@media (max-width: 768px) {
    .container {
            padding: 0 1rem;
        }
    
        .nav-container {
            padding: 0 1rem;
        }
    .nav-menu {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .theme-toggle {
        width: 2rem;
        height: 2rem;
    }
    
    .theme-toggle i {
        font-size: 0.875rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
                                .hero {
                                    min-height: calc(100vh - 4rem);
                                    padding: 2rem 0;
                                }
    .hero-name {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
                                .hero-description {
                                    font-size: 1rem;
                                    margin-bottom: 1.5rem;
                                }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        }
        
        .hero-buttons .btn {
            width: 100%;
            max-width: 280px;
        }
        
        .hero-social {
            justify-content: center;
            margin-top: 1rem;
        }
        
        .image-container {
            width: 250px;
            height: 250px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
                                .section-header p {
                                    font-size: 1rem;
                                }
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        }
        
        .cta-buttons .btn {
            width: 100%;
            max-width: 280px;
    }
    
    .projects-filter {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
                                .filter-btn {
                                    width: 100%;
                                    max-width: 200px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        }
        
        .project-card {
            margin: 0 auto;
            max-width: 400px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .competencies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-item:before {
        left: 0.75rem;
    }
    
    .timeline-marker {
        left: 0;
    }
    
    .experience-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: start;
        gap: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .availability-details {
        flex-direction: column;
        gap: 1rem;
    }
                .contact-info {
                    order: 2;
                    margin-top: 2rem;
                }
        
                .contact-form-container {
                    order: 1;
                }
        
                .contact-method {
                    flex-direction: row;
                    align-items: center;
                    gap: 1rem;
                    margin-bottom: 1.25rem;
                    padding: 1rem;
                    background: var(--bg-secondary);
                    border-radius: var(--border-radius);
                    border: 1px solid var(--border-light);
                }
        
                .contact-icon {
                    flex-shrink: 0;
                    width: 2.5rem;
                    height: 2.5rem;
                    font-size: 1rem;
                }
        
                .contact-details {
                    flex: 1;
                }
        
                .contact-details h3 {
                    font-size: 1rem;
                    margin-bottom: 0.25rem;
                }
        
                .contact-details a {
                    font-size: 0.9rem;
                    word-break: break-all;
                }
        
                .contact-details p {
                    font-size: 0.8rem;
                    margin-top: 0.25rem;
                }
        
                .social-connect {
                    margin-top: 2rem;
                }
        
                .social-connect h3 {
                    font-size: 1.125rem;
                    margin-bottom: 1rem;
                    text-align: center;
                }
        
                .social-links {
                    display: grid;
                    grid-template-columns: 1fr 1fr;
                    gap: 1rem;
                }
        
                .social-link {
                    justify-content: center;
                    padding: 1rem;
                    text-align: center;
                }
        
                .modal-content {
                    margin: 1rem;
                    max-width: calc(100vw - 2rem);
                    max-height: calc(100vh - 2rem);
                }
        
                .modal-body {
                    padding: 1.5rem;
                }
        
                .faq-question {
                    padding: 1rem;
                }
        
                .faq-answer p {
                    padding: 0 1rem 1rem;
                }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
        }
        
        .nav-container {
            padding: 0 0.75rem;
    }
    
    :root {
        --section-padding: 2.5rem 0;
            --section-padding-sm: 1.5rem 0;
        }
        
        .hero {
            padding: 1.5rem 0;
    }
    
    .hero-name {
        font-size: 2.5rem;
        line-height: 1.1;
        }
        
        .hero-title {
            font-size: 1.25rem;
        }
        
        .hero-description {
            font-size: 0.95rem;
        }
        
        .hero-buttons .btn {
            padding: 0.875rem 1.25rem;
            font-size: 0.95rem;
        }
        
        .image-container {
            width: 200px;
            height: 200px;
        }
        
        .about-profile-image {
            width: 200px;
            height: 200px;
        }
        
        .bio-section h2 {
            font-size: 1.5rem;
        }
        
        .bio-text {
            font-size: 0.9rem;
        }
        
        .detail-item {
            flex-direction: column;
            text-align: center;
            gap: 0.25rem;
        }
        
        .detail-item strong {
            min-width: auto;
            text-align: center;
            font-weight: 600;
        }
        
        .social-profiles {
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .social-link {
            max-width: 100%;
            padding: 0.75rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
                                .page-header p {
                                    font-size: 1rem;
                                }
    .section-header h2 {
        font-size: 1.75rem;
    }
    
                                .section-header p {
                                    font-size: 0.95rem;
                                }
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
                                .cta-content p {
                                    font-size: 1rem;
                                }
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        }
        
        .achievement-number {
            font-size: 2.5rem;
        }
        
        .achievement-item h3 {
            font-size: 1rem;
        }
        
        .achievement-item p {
            font-size: 0.8rem;
    }
    
    .modal-content {
        margin: 0.5rem;
            max-width: calc(100vw - 1rem);
            max-height: calc(100vh - 1rem);
    }
    
    .modal-body {
        padding: 1rem;
        }
        
        .project-card {
            max-width: 100%;
        }
        
        .project-content {
            padding: 1rem;
        }
        
        .project-content h3 {
            font-size: 1.125rem;
        }
        
        .project-content p {
            font-size: 0.9rem;
        }
        
        .tech-tag {
            font-size: 0.7rem;
            padding: 0.2rem 0.5rem;
        }
        
        .btn {
            padding: 0.75rem 1.25rem;
            font-size: 0.9rem;
        }
        
        .btn-large {
            padding: 1rem 1.5rem;
            font-size: 1rem;
        }
        
        .contact-form-wrapper {
            padding: 1.5rem;
        }
        
        .contact-form-wrapper h2 {
            font-size: 1.25rem;
            text-align: center;
            margin-bottom: 1.25rem;
        }
        
        .form-control {
            padding: 0.875rem;
            font-size: 16px;
            /* Prevent zoom on iOS */
            border: 2px solid var(--border-color);
            border-radius: var(--border-radius);
            width: 100%;
        }
        
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
            outline: none;
        }
        
        .form-group label {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            display: block;
        }
        
        .timeline-content {
            padding: 1rem;
        }
        
        .timeline-content h3 {
            font-size: 1.125rem;
        }
        
        .timeline-content h4 {
            font-size: 1rem;
        }
        
        .experience-card {
            padding: 1.5rem;
        }
        
        .experience-title h3 {
            font-size: 1.25rem;
        }
        
        .experience-company h4 {
            font-size: 1rem;
        }
        
        .education-card {
            margin-bottom: 1rem;
        }
        
        .education-header {
            padding: 1rem;
        }
        
        .education-content {
            padding: 1rem;
        }
        
        .education-info h3 {
            font-size: 1.125rem;
        }
        
        .education-info h4 {
            font-size: 1rem;
        }
        
        .value-item {
            padding: 1.5rem;
        }
        
        .value-item h3 {
            font-size: 1.125rem;
        }
        
        .value-item p {
            font-size: 0.9rem;
        }
        
        .competency-item {
            padding: 1.5rem;
        .competency-item h3 {
                font-size: 1.125rem;
            }
        
            .competency-item p {
                font-size: 0.9rem;
            }
        
            .faq-question {
                padding: 0.75rem;
            }
        
            .faq-question h3 {
                font-size: 1rem;
            }
        
            .faq-answer p {
                padding: 0 0.75rem 0.75rem;
                font-size: 0.9rem;
            }
        
            .scroll-to-top {
                bottom: 1rem;
                right: 1rem;
                width: 2.5rem;
                height: 2.5rem;
            }
        
            /* Contact page mobile improvements for small screens */
            .contact-method {
                flex-direction: column;
                text-align: center;
                gap: 0.75rem;
                padding: 1rem 0.75rem;
            }
        
            .contact-icon {
                align-self: center;
            }
        
            .contact-details h3 {
                font-size: 0.95rem;
            }
        
            .contact-details a {
                font-size: 0.85rem;
            }
        
            .contact-details p {
                font-size: 0.75rem;
            }
        
            .social-links {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }
        
            .social-link {
                padding: 0.875rem;
                font-size: 0.9rem;
            }
        
            .contact-form-wrapper {
                padding: 1.25rem;
            }
        
            .contact-form-wrapper h2 {
                font-size: 1.125rem;
            }
        
            .form-control {
                padding: 0.75rem;
                font-size: 16px;
            }
        
            .contact-intro h2 {
                font-size: 1.25rem;
            }
        
            .contact-intro p {
                font-size: 0.9rem;
            }
        
            .availability-status h2 {
                font-size: 1.125rem;
            }
        
            .availability-status p {
                font-size: 0.85rem;
            }
        
            .detail-item {
                font-size: 0.8rem;
            }
        }
        
        /* Touch-friendly improvements for mobile */
        @media (hover: none) and (pointer: coarse) {
            .btn:hover {
                transform: none;
            }
        
            .project-card:hover {
                transform: none;
            }
        
            .skill-item:hover {
                transform: none;
            }
        
            .value-item:hover {
                transform: none;
            }
        
            .competency-item:hover {
                transform: none;
            }
        
            .social-link:hover {
                transform: none;
            }
        
            .nav-link:hover {
                color: var(--primary-color);
            }
        
            .theme-toggle:hover {
                transform: none;
            }
        
            .carousel-btn:hover {
                transform: none;
            }
        
            .scroll-to-top:hover {
                transform: none;
            }
        
            /* Increase touch targets */
            .btn {
                min-height: 44px;
                min-width: 44px;
            }
        
            .nav-link {
                padding: 0.75rem 1rem;
                min-height: 44px;
                display: flex;
                align-items: center;
            }
        
            .theme-toggle {
                min-height: 44px;
                min-width: 44px;
            }
        
            .nav-toggle {
                min-height: 44px;
                min-width: 44px;
                padding: 0.75rem;
            }
        
            .carousel-btn {
                min-height: 44px;
                min-width: 44px;
            }
        
            .scroll-to-top {
                min-height: 44px;
                min-width: 44px;
            }
        
            .modal-close {
                min-height: 44px;
                min-width: 44px;
            }
        
            .faq-question {
                min-height: 44px;
            }
        
            .filter-btn {
                min-height: 44px;
            }
        }
        
        /* Landscape mobile orientation */
        @media (max-width: 768px) and (orientation: landscape) {
            .hero {
                min-height: auto;
                padding: 1rem 0;
            }
        
            .hero-content {
                gap: 2rem;
            }
        
            .image-container {
                width: 180px;
                height: 180px;
            }
        
            .hero-name {
                font-size: 2.5rem;
            }
        
            .hero-title {
                font-size: 1.25rem;
            }
        
            .page-hero {
                padding: 3rem 0 2rem;
            }
        
            .section-header {
                margin-bottom: 2rem;
            }
        
            .about-profile-image {
                width: 180px;
                height: 180px;
            }
        
            .about-image {
                margin-bottom: 1.5rem;
            }
        }
        
        /* High DPI displays */
        @media (-webkit-min-device-pixel-ratio: 2),
        (min-resolution: 192dpi) {
        
            .profile-image,
            .about-profile-image {
                image-rendering: -webkit-optimize-contrast;
                image-rendering: crisp-edges;
            }
        }
        
        /* Dark mode mobile improvements */
        @media (max-width: 768px) {
            [data-theme="dark"] .nav-menu {
                background: var(--bg-card);
                border-top: 1px solid var(--border-color);
            
                [data-theme="dark"] .modal-content {
                    background: var(--bg-card);
                    border: 1px solid var(--border-color);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-to-top {
        transition: none;
    }
                                .hero-particles {
                                    animation: none;
                                }
                
                                .typing-text:after {
                                    animation: none;
                                }
                
                                .scroll-indicator {
                                    animation: none;
                                }
                
                                .status-indicator.available:before {
                                    animation: none;
                                }
                                }
                
                                /* Mobile-specific improvements */
                                .mobile-device {
                                    -webkit-text-size-adjust: 100%;
                                    -ms-text-size-adjust: 100%;
                                }
                
                                .mobile-device .hero-particles {
                                    display: none;
                                    /* Hide particles on mobile for better performance */
                                }
                
                                .mobile-device .typing-text:after {
                                    animation: none;
                                    /* Disable typing animation on mobile */
                                }
                
                                /* Improve mobile form inputs */
                                @media (max-width: 768px) {
                
                                    input[type="text"],
                                    input[type="email"],
                                    input[type="tel"],
                                    textarea,
                                    select {
                                        font-size: 16px;
                                        /* Prevent zoom on iOS */
                                        -webkit-appearance: none;
                                        border-radius: var(--border-radius);
                                    }
                
                                    input[type="submit"],
                                    button {
                                        -webkit-appearance: none;
                                        border-radius: var(--border-radius);
                                    }
                                }
                
                                /* Mobile navigation improvements */
                                @media (max-width: 768px) {
                                    .nav-menu {
                                        backdrop-filter: blur(10px);
                                        -webkit-backdrop-filter: blur(10px);
                                    }
                
                                    .nav-menu .nav-link {
                                        border-bottom: 1px solid var(--border-light);
                                        margin: 0 1rem;
                                        padding: 1rem 0;
                                    }
                
                                    .nav-menu .nav-link:last-child {
                                        border-bottom: none;
                                    }
                                }
                
                                /* Mobile project cards */
                                @media (max-width: 768px) {
                                    .project-image {
                                        height: 180px;
                                    }
                
                                    .project-overlay {
                                        background: rgba(0, 0, 0, 0.7);
                                    }
                
                                    .project-links {
                                        gap: 0.75rem;
                                    }
                
                                    .project-link {
                                        min-width: 70px;
                                        height: 50px;
                                        padding: 0.5rem 0.75rem;
                                    }
                
                                    .project-link i {
                                        font-size: 1rem;
                                    }
                
                                    .project-link span {
                                        font-size: 0.7rem;
                                    }
                                }
                
                                /* Mobile timeline improvements */
                                @media (max-width: 768px) {
                                    .timeline-item {
                                        margin-bottom: 1.5rem;
                                    }
                
                                    .timeline-content {
                                        margin-left: 0.5rem;
                                    }
                
                                    .timeline-marker {
                                        width: 0.75rem;
                                        height: 0.75rem;
                                    }
                                }
                
                                /* Mobile contact form */
                                @media (max-width: 768px) {
                                    .contact-form {
                                        gap: 1.25rem;
                                    }
                
                                    .form-group {
                                        margin-bottom: 0;
                                    }
                
                                    .form-control {
                                        border-radius: var(--border-radius);
                                        border: 2px solid var(--border-color);
                                    }
                
                                    .form-control:focus {
                                        border-color: var(--primary-color);
                                        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
                                    }
                
                                    .contact-intro {
                                        text-align: center;
                                        margin-bottom: 1.5rem;
                                    }
                
                                    .contact-intro h2 {
                                        font-size: 1.5rem;
                                        margin-bottom: 0.75rem;
                                    }
                
                                    .contact-intro p {
                                        font-size: 0.95rem;
                                        line-height: 1.6;
                                    }
                
                                    .contact-methods {
                                        margin-bottom: 1.5rem;
                                    }
                
                                    .availability-section {
                                        padding: 2rem 0;
                                    }
                
                                    .availability-content {
                                        flex-direction: column;
                                        text-align: center;
                                        gap: 1.5rem;
                                    }
                
                                    .availability-status h2 {
                                        font-size: 1.25rem;
                                        margin-bottom: 0.5rem;
                                    }
                
                                    .availability-status p {
                                        font-size: 0.9rem;
                                    }
                
                                    .availability-details {
                                        flex-direction: column;
                                        gap: 0.75rem;
                                    }
                
                                    .detail-item {
                                        font-size: 0.85rem;
                                    }
                                }
                
                                /* Mobile FAQ improvements */
                                @media (max-width: 768px) {
                                    .faq-item {
                                        margin-bottom: 0.75rem;
                                    }
                
                                    .faq-question {
                                        padding: 1rem;
                                        min-height: 60px;
                                        display: flex;
                                        align-items: center;
                                    }
                
                                    .faq-question h3 {
                                        flex: 1;
                                        margin: 0;
                                    }
                
                                    .faq-question i {
                                        font-size: 1.25rem;
                                    }
                                }
                
                                /* Mobile scroll improvements */
                                @media (max-width: 768px) {
                                    .scroll-to-top {
                                        bottom: 1.5rem;
                                        right: 1.5rem;
                                        width: 3rem;
                                        height: 3rem;
                                        font-size: 1.125rem;
                                    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
