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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f8fafc;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for bottom navigation */
}

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

/* Card System */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #3b82f6;
    font-size: 18px;
}

.nav-brand i {
    font-size: 20px;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background: #f3f4f6;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #374151;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -4px);
}

.nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
    transform: translateY(0);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.nav-link:last-child {
    border-bottom: none;
}

.nav-link:hover,
.nav-link.active {
    background: #f8fafc;
    color: #3b82f6;
}

.nav-link i {
    width: 20px;
    text-align: center;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #3b82f6;
    background: #eff6ff;
}

.bottom-nav-item i {
    font-size: 18px;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-height: 44px; /* Touch-friendly */
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #3b82f6;
    border: 1px solid #e5e7eb;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #3b82f6;
}

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

/* Section Styles */
section {
    padding: 32px 0;
    margin-top: 60px; /* Account for fixed navbar */
}

section:first-of-type {
    margin-top: 0;
    padding-top: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 16px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 32px 20px;
    margin: 0 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

.profile-image {
    position: relative;
    margin-bottom: 24px;
}

.profile-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    z-index: 2;
}

.profile-circle i {
    font-size: 48px;
    color: white;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-indicator i {
    font-size: 8px;
    animation: pulse 2s infinite;
}

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

.hero-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.hero-title {
    font-size: 18px;
    font-weight: 500;
    color: #3b82f6;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

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

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* About Section */
.about-cards {
    display: grid;
    gap: 20px;
    padding: 0 16px;
}

.about-card {
    padding: 24px;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon i {
    font-size: 24px;
    color: white;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.card-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #eff6ff;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

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

.experience-cards {
    display: grid;
    gap: 20px;
    padding: 0 16px;
}

.experience-card {
    padding: 24px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.company-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.company-info h4 {
    font-size: 16px;
    font-weight: 500;
    color: #3b82f6;
}

.period-badge {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.period-badge.current {
    background: #10b981;
    color: white;
}

.experience-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.experience-skills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.skill-tag {
    background: #f8fafc;
    color: #374151;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
}

/* Skills Section */
.skills-cards {
    display: grid;
    gap: 20px;
    padding: 0 16px;
}

.skill-card {
    padding: 24px;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.skill-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-icon i {
    font-size: 20px;
    color: white;
}

.skill-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.skill-items {
    display: grid;
    gap: 16px;
}

.skill-item {
    padding: 16px 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 500;
    color: #1f2937;
}

.skill-level {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
}

.skill-bar {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    width: 0%;
    transition: width 2s ease;
}

/* Projects Section */
.projects-section {
    background: white;
}

.projects-cards {
    display: grid;
    gap: 20px;
    padding: 0 16px;
}

.project-card {
    padding: 0;
    overflow: hidden;
}

.project-image {
    background: linear-gradient(135deg, #f8fafc, #e5e7eb);
    padding: 32px 24px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon i {
    font-size: 28px;
    color: white;
}

.project-status {
    text-align: right;
}

.status-badge {
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.maintained {
    background: #f59e0b;
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.project-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tech-tag {
    background: #f8fafc;
    color: #374151;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
}

.project-actions {
    display: flex;
    gap: 12px;
}

.project-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Contact Section */
.contact-cards {
    display: grid;
    gap: 16px;
    padding: 0 16px;
    margin-bottom: 32px;
}

.contact-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
    color: white;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.contact-info p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-form-card {
    padding: 0 16px;
}

.contact-form-card .card {
    padding: 24px;
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.card-header p {
    color: #6b7280;
    font-size: 14px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

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

.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    min-height: 44px; /* Touch-friendly */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 32px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon i {
    font-size: 18px;
    color: white;
}

.brand-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.brand-info p {
    font-size: 12px;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    gap: 12px;
}

.footer-link {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    margin: 0 16px;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 14px;
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
    
    .bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        display: flex;
        gap: 8px;
    }
    
    .nav-link {
        padding: 8px 16px;
        border: none;
        border-radius: 12px;
        background: transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: #f8fafc;
    }
    
    .hero-card {
        margin: 0 32px;
        padding: 48px 40px;
    }
    
    .about-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        padding: 0 32px;
    }
    
    .experience-cards {
        padding: 0 32px;
    }
    
    .skills-cards {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        padding: 0 32px;
    }
    
    .projects-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        padding: 0 32px;
    }
    
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 32px;
    }
    
    .contact-form-card {
        padding: 0 32px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .hero-name {
        font-size: 40px;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .hero-actions {
        flex-direction: row;
    }
    
    .hero-stats {
        gap: 48px;
    }
    
    .projects-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-form-card .card {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Touch Interactions */
@media (hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .card:active {
        transform: scale(0.98);
    }
    
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* Skill progress bar animations */
.skill-progress[data-width="95%"] { width: 95%; }
.skill-progress[data-width="90%"] { width: 90%; }
.skill-progress[data-width="88%"] { width: 88%; }
.skill-progress[data-width="85%"] { width: 85%; }
.skill-progress[data-width="80%"] { width: 80%; }