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

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #1e40af;
    --success: #10b981;
    --text-dark: #0f172a;
    --text-primary: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --border: #e2e8f0;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--white);
    letter-spacing: -0.01em;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(10px);
}

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

.nav-brand h1 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.nav-brand .subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
    letter-spacing: 0.05em;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.92;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 500;
}

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

.btn {
    padding: 0.95rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: var(--white);
    color: var(--accent);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-lighter) 0%, var(--white) 100%);
}

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

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

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

.about-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border: 1px solid var(--border);
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image-container:hover .profile-image {
    transform: scale(1.05);
}

.bio-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.bio-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.bio-card p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.bio-card p:last-child {
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skills-section h4,
.values-section h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.expertise-list,
.values-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expertise-item,
.value-item {
    display: flex;
    gap: 1rem;
}

.expertise-item i {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.expertise-item strong,
.value-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.25rem;
}

.expertise-item p,
.value-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.skills-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.values-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background-color: var(--white);
}

.projects h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

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

.project-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.project-card:hover {
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.12);
    transform: translateY(-8px);
    border-color: var(--accent);
}

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

.project-header h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    flex: 1;
    font-weight: 600;
    line-height: 1.4;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 24px;
    font-size: 0.77rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.badge-advanced {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.badge-production {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.badge-intermediate {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.badge-modern {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #6b21a8;
}

.badge-enterprise {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #7f1d1d;
}

.project-description {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.project-highlights {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.highlight {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-tech {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.link-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.project-insights {
    background-color: var(--light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    margin-top: auto;
    font-size: 0.95rem;
}

/* Stack Section */
.stack {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.stack::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.stack h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stack-category {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stack-category h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-light);
    font-weight: 600;
}

.stack-category ul {
    list-style: none;
}

.stack-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.stack-category li:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-lighter) 100%);
}

.contact h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

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

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.contact-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.12);
    transform: translateY(-8px);
}

.contact-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.contact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-card p {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 2.5rem 0;
    text-align: center;
    font-weight: 500;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer i {
    color: var(--danger);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .projects h2,
    .about h2,
    .stack h2,
    .contact h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-tagline {
        font-size: 1rem;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .projects-grid,
    .stack-grid,
    .contact-methods {
        grid-template-columns: 1fr;
    }

    .project-header {
        flex-direction: column;
    }

    .project-actions {
        flex-direction: column;
    }

    .link-btn {
        width: 100%;
    }

    .profile-image-container {
        margin-bottom: 1rem;
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease-out;
}

.expertise-item,
.value-item {
    animation: slideIn 0.5s ease-out forwards;
}

.expertise-item:nth-child(1) { animation-delay: 0.1s; }
.expertise-item:nth-child(2) { animation-delay: 0.2s; }
.expertise-item:nth-child(3) { animation-delay: 0.3s; }
.expertise-item:nth-child(4) { animation-delay: 0.4s; }

.value-item:nth-child(1) { animation-delay: 0.1s; }
.value-item:nth-child(2) { animation-delay: 0.2s; }
.value-item:nth-child(3) { animation-delay: 0.3s; }

.stat-item {
    animation: fadeInUp 0.6s ease-out;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* Smooth hover effects */
a {
    transition: all 0.3s ease;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}
