:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    
    --border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    --font-primary: 'Poppins', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-glass: rgba(0, 0, 0, 0.05);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
    padding-bottom: 80px;
}

.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.tech-circle {
    position: absolute;
    min-width: 50px;
    min-height: 50px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tech-circle:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.tech-circle img {
    min-width: 30px;
    min-height: 30px;
    max-width: 55px;
    max-height: 55px;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.tech-circle:hover img {
    filter: grayscale(0);
}



body:not(.light-theme) {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .progress-bar {
        backdrop-filter: none;
    }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
}

@media (max-width: 768px) {
    .nav {
        backdrop-filter: blur(10px);
    }
}

.nav.visible {
    transform: translateY(0);
    opacity: 1;
}

.light-theme .nav {
    background: rgba(255, 255, 255, 0.8);
}

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

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

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.nav-logo-link:hover {
    transform: translateY(-2px);
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.nav-name {
    font-size: 18px;
    font-weight: 600;
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

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

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

.nav-links-btn,
.nav-contact-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links-btn:hover,
.nav-contact-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-sound-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-size: 16px;
}

.nav-sound-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.nav-sound-toggle i {
    transition: var(--transition-fast);
}

.nav-sound-toggle:hover i {
    transform: scale(1.1);
}

.nav-darkmode {
    position: relative;
}

.nav-darkmode input {
    display: none;
}

.nav-darkmode-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.nav-darkmode-label:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.hamburger-menu span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.main {
    padding-top: 15px;
}

.hero {
    min-height: 50vh;
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    padding: 30px 0 0px 0;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}


.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleFloat 20s infinite linear;
    opacity: 0.2;
}

@media (max-width: 768px) {
    .particle {
        display: none;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    15% {
        opacity: 0.3;
    }
    85% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-text {
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    backdrop-filter: blur(10px);
}

.hero-title {
    margin-bottom: 24px;
}

.hero-greeting {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-name {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.1rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-role {
    display: block;
    font-size: clamp(0.9rem, 2vw, 1.08rem);
    font-weight: 600;
    color: var(--text-primary);
}

.typewriter {
    position: relative;
}

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

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

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-lg);
}

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

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

.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 0.5s ease;
}

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.hero-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.hero-image-link:hover {
    transform: scale(1.02);
}

.hero-image {
    position: relative;
    width: 300px;
    height: 300px;
    z-index: 3;
}

.hero-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 3px solid var(--primary);
}

.hero-image-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-image-glow {
        animation: none;
        opacity: 0.2;
    }
}

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



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

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

.section-title {
    font-size: clamp(1.2rem, 3vw, 1.35rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.skills-section {
    padding: 10px 0 20px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

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

.skill-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

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

.skill-item:hover::before {
    opacity: 0.1;
}

.skill-icon {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.skill-level {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: width 1s ease;
    animation: progressFill 2s ease-out;
}

@keyframes progressFill {
    0% { width: 0; }
}

.projects-section {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.projects-controls {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
}

.projects-search {
    flex: 0 0 auto;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.search-input {
    width: 100%;
    padding: 8px 48px 8px 48px;
    background: var(--bg-glass);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    height: 38px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    outline: none;
    position: relative;
    z-index: 1;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card);
}

.search-input:focus + .search-icon {
    color: var(--primary);
    opacity: 1;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 16px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.8;
}

.search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 14px;
}

.search-clear:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 22px;
}

.filter-btn {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1px 8px;
    font-size: 0.89rem;
    font-family: var(--font-primary);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    margin: 0;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    height: 22px;
    line-height: 16px;
    opacity: 1;
    transform: scale(1);
    backdrop-filter: blur(10px);
}

.filter-btn.active, .filter-btn:focus {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px) scale(1.04);
}

.filter-btn:hover:not(.active) {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px) scale(1.03);
}

.no-results-message {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.no-results-content {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
    max-width: 400px;
}

.no-results-content i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-results-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.no-results-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.projects-slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.projects-slider {
    width: 100%;
    overflow: hidden;
}

.projects-track {
    display: flex;
    gap: 32px;
    width: fit-content;
}

.projects-track:not(.filtered) {
    animation: scroll 60s linear infinite;
}

.projects-track:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .projects-track:not(.filtered) {
        animation-duration: 80s;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
    width: 400px;
    z-index: 3;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

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

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



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

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

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

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

.view-gallery {
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.view-gallery:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 48px;
    color: var(--text-muted);
}

.project-content {
    padding: 20px 24px 12px 24px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.project-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.project-links {
    display: flex;
    gap: 8px;
}

.project-link {
    width: 36px;
    height: 36px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tech span {
    background: var(--bg-glass);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}


.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(99, 102, 241, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

@media (max-width: 768px) {
    .sticky-footer {
        backdrop-filter: blur(5px);
    }
}

.sticky-footer.expanded {
    box-shadow: 0 -4px 30px rgba(99, 102, 241, 0.2);
}

.light-theme .sticky-footer {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(0, 0, 0, 0.1);
}

body:not(.light-theme) .sticky-footer {
    background: rgba(17, 17, 17, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
}

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

.sticky-footer.expanded .footer-content {
    justify-content: space-between;
    gap: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.footer-brand:hover {
    transform: translateY(-2px);
}

.footer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.footer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.footer-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.2;
}

.footer-links {
    display: none;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-footer.expanded .footer-links {
    display: flex;
}

.footer-links.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.footer-links a:hover {
    background: linear-gradient(90deg, #007BFF 0%, #00BCD4 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.footer-bottom {
    display: none;
    text-align: center;
    padding: 8px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-glass);
    margin-top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-footer.expanded .footer-bottom {
    display: block;
}

.footer-bottom.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--secondary);
}

.contact-modal,
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 20px;
}

.contact-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 92vw;
    padding: 16px 8px 8px 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalIn 0.3s cubic-bezier(.4,0,.2,1);
    min-height: 60px;
    max-height: 70vh;
    border: 1px solid #e6e6e6;
    overflow: hidden;
}

.image-modal-content {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.image-modal-content {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    color: #1a237e;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s ease;
    z-index: 10;
    background: none;
    border: none;
    line-height: 1;
}

.image-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    z-index: 10;
}

.contact-modal-close:hover {
    color: #00c6ae;
}

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

.hs-form-frame {
    padding: 32px;
}

.contact-modal .hs-form-frame {
    color: #000000;
}

.contact-modal .hs-form-frame label {
    color: #333333 !important;
}

.contact-modal .hs-form-frame input,
.contact-modal .hs-form-frame textarea,
.contact-modal .hs-form-frame select {
    color: #000000 !important;
    background-color: #ffffff !important;
    border: 1px solid #cccccc !important;
}

.contact-modal .hs-form-frame input:focus,
.contact-modal .hs-form-frame textarea:focus,
.contact-modal .hs-form-frame select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.contact-modal .hs-form-frame .hs-button {
    background: #6366f1 !important;
    color: #ffffff !important;
    border: none !important;
}

.gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    position: relative;
    min-height: 400px;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-glow);
}

#modal-image {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    object-fit: contain;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .light-theme .nav-links {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        width: 300px;
    }
    
    .projects-track {
        gap: 20px;
    }
    
    .projects-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .projects-search {
        max-width: 100%;
    }
    
    .search-input {
        padding: 8px 48px 8px 48px;
        font-size: 1rem;
    }
    
    .projects-filter {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .filter-btn {
        font-size: 0.87rem;
        padding: 1px 7px;
        border-radius: 6px;
        height: 20px;
        line-height: 14px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 8px;
    }
    
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 20px 0 40px 0;
        min-height: 50vh;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .hero-actions {
        margin-bottom: 20px;
    }
    
    .skills-section {
        padding: 5px 0 15px 0;
    }
    
    .skills-grid {
        gap: 8px;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .skill-item {
        padding: 8px;
        min-height: 70px;
    }
    
    .skill-icon {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .skill-level {
        height: 3px;
        margin-top: 3px;
    }
    
    .projects-section {
        padding: 20px 0;
    }
    
    .tech-circle {
        min-width: 50px;
        min-height: 50px;
        backdrop-filter: blur(5px);
    }
    
    .tech-circle img {
        min-width: 40px;
        min-height: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .sticky-footer.expanded .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 8px 16px;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 6px 16px;
    }
    
    body {
        padding-bottom: 160px;
    }
    
    .gallery-container {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        min-height: 300px;
    }
    
    .gallery-prev,
    .gallery-next {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 10px 0;
    }
    
    .gallery-prev:hover,
    .gallery-next:hover {
        transform: scale(1.1);
    }
    
    #modal-image {
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 15px 0 35px 0;
        min-height: 45vh;
    }
    
    .hero-content {
        gap: 25px;
        padding: 0 16px;
    }
    
    .hero-actions {
        margin-bottom: 15px;
        gap: 15px;
    }
    
    .skills-section {
        padding: 3px 0 15px 0;
    }
    
    .skills-grid {
        gap: 6px;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .skill-item {
        padding: 6px;
        min-height: 60px;
    }
    
    .skill-icon {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .skill-level {
        height: 2px;
        margin-top: 2px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .hero-image {
        width: 200px;
        height: 200px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        width: 280px;
        min-width: auto;
    }
    
    .projects-track {
        gap: 16px;
    }
    
    .skills-grid {
        gap: 10px;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
    
    .skill-item {
        padding: 10px;
        min-height: 80px;
    }
    
    .tech-circle {
        min-width: 45px;
        min-height: 45px;
        backdrop-filter: blur(3px);
    }
    
    .tech-circle img {
        min-width: 35px;
        min-height: 35px;
    }
    
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

::selection {
    background: var(--primary);
    color: white;
}

button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .contact-modal-content {
        max-width: 98vw;
        padding: 10px 2vw 6px 2vw;
    }
}