:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333333;
    --accent-color: #0066ff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e5e5e5;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-image {
    margin-bottom: 48px;
    display: flex;
    justify-content: center;
}

.hero-image .profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 4px solid var(--bg-primary);
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -2px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 64px;
    text-align: center;
    letter-spacing: -1px;
    color: var(--primary-color);
}

/* Services Section */
.services {
    background-color: var(--bg-secondary);
}

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

.service-card {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 102, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-color);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: all 0.1s ease;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: block;
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.service-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.service-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    color: var(--accent-color);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    color: currentColor;
}

.service-icon svg [fill] {
    fill: currentColor;
}

.service-icon svg [stroke] {
    stroke: currentColor;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-color);
}

.service-title {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--accent-color);
}

.service-external-link {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background-color: var(--bg-secondary);
    border-radius: 6px;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.service-card:hover .service-external-link {
    opacity: 1;
    pointer-events: all;
}

.service-external-link:hover {
    color: var(--accent-color);
    background-color: rgba(0, 102, 255, 0.1);
    transform: scale(1.1);
}

.service-external-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.service-card[data-url]:not([data-url=""]) .service-external-link {
    display: flex;
}

/* Tech Section */
.tech {
    background-color: var(--bg-primary);
}

.tech-section {
    margin-bottom: 64px;
}

.tech-section:last-child {
    margin-bottom: 0;
}

.tech-section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--primary-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tag {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
}

.tech-tag:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.performance-list {
    display: grid;
    gap: 24px;
}

.performance-item {
    display: flex;
    gap: 24px;
    padding: 32px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.performance-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.performance-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.performance-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

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

/* Contact Section */
.contact {
    background-color: var(--bg-secondary);
    text-align: center;
}

.contact-intro {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 16px 32px;
    background-color: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

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

.contact-icon {
    font-size: 24px;
}

.contact-note {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 24px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 32px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 48px;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    z-index: 2001;
}

.gallery-close:hover {
    transform: scale(1.2);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 48px;
    font-weight: 300;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2001;
    line-height: 1;
    padding: 0;
}

.gallery-prev {
    left: -80px;
}

.gallery-next {
    right: -80px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.gallery-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    display: flex;
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-indicators {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2001;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-indicator.active {
    background-color: white;
    width: 32px;
    border-radius: 6px;
}

.gallery-indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.gallery-external-link {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    z-index: 2001;
    font-family: inherit;
}

.gallery-external-link:hover {
    background-color: #0052cc;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4);
}

.gallery-external-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 48px;
    }

    .nav-links {
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-image .profile-img {
        width: 150px;
        height: 150px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 48px;
    }

    .nav-links {
        gap: 16px;
        font-size: 14px;
    }

    .contact-links {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }

    .performance-item {
        flex-direction: column;
        gap: 16px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 32px;
    }

    .gallery-close {
        top: 10px;
        right: 10px;
        font-size: 36px;
    }

    .gallery-container {
        height: 70vh;
    }

    .gallery-indicators {
        bottom: 20px;
    }

    .gallery-external-link {
        bottom: -50px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

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

