:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #fafafa;
    --text-primary: #1a1a1a;
    --text-secondary: #525252;
    --text-tertiary: #999999;

    --orange-primary: #e07a5f;
    --orange-light: #f2a287;
    --orange-faded: #f4b89e;
    --orange-pale: #f8d5c8;
    --gray-dark: #3d4451;
    --gray-medium: #6b7280;
    --gray-light: #d1d5db;

    --gradient-primary: linear-gradient(135deg, var(--orange-light), var(--orange-primary));
    --gradient-secondary: linear-gradient(135deg, var(--orange-faded), var(--orange-pale));
    --gradient-accent: linear-gradient(135deg, var(--orange-primary), var(--orange-light), var(--orange-faded));

    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 9999;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 96px);
    max-width: 1200px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

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

/* Main Content */
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 48px 48px;
}

section {
    margin-bottom: 160px;
}

.section-header {
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid;
    border-image-slice: 1;
    border-width: 1px;
    border-image-source: linear-gradient(135deg,
        rgba(224, 122, 95, 0.2),
        rgba(242, 162, 135, 0.2),
        rgba(244, 184, 158, 0.15)
    );
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(224, 122, 95, 0.3),
        rgba(242, 162, 135, 0.3),
        rgba(244, 184, 158, 0.2)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

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

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

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 200px;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(224, 122, 95, 0.08);
    border: 1px solid rgba(224, 122, 95, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--orange-primary);
    margin-bottom: 32px;
}

.hero-title {
    font-size: 72px;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(224, 122, 95, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.3);
}

.btn-primary svg {
    transition: transform var(--transition-base);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 400;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    border-color: var(--orange-primary);
    background: rgba(224, 122, 95, 0.04);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    animation: fadeIn 1s ease-out;
}

.floating-card {
    position: absolute;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(224, 122, 95, 0.1);
    color: var(--orange-primary);
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.card-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
}

.card-1 {
    width: 200px;
    height: 180px;
    top: 5%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.card-1 .card-icon {
    background: rgba(224, 122, 95, 0.1);
    color: var(--orange-primary);
}

.card-2 {
    width: 200px;
    height: 180px;
    top: 5%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
    animation-delay: -2s;
}

.card-2 .card-icon {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray-dark);
}

.card-3 {
    width: 200px;
    height: 180px;
    bottom: 5%;
    right: 5%;
    animation: float 7s ease-in-out infinite;
    animation-delay: -4s;
}

.card-3 .card-icon {
    background: rgba(242, 162, 135, 0.1);
    color: var(--orange-light);
}

.card-4 {
    width: 200px;
    height: 180px;
    bottom: 5%;
    left: 5%;
    animation: float 9s ease-in-out infinite;
    animation-delay: -6s;
}

.card-4 .card-icon {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray-medium);
}

/* About Section */
.about-section {
    will-change: transform;
}

.about-content {
    padding: 48px;
}

.about-text {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Projects Section */
.projects-section {
    will-change: transform;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}

.project-card {
    padding: 32px;
    cursor: pointer;
}

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

.project-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(224, 122, 95, 0.08);
    color: var(--orange-primary);
}

.project-card[data-project="2"] .project-icon {
    background: rgba(107, 114, 128, 0.08);
    color: var(--gray-dark);
}

.project-card[data-project="3"] .project-icon {
    background: rgba(242, 162, 135, 0.08);
    color: var(--orange-light);
}

.project-tag {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
}

.project-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-description {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.tech-tag {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: gap var(--transition-base);
}

.project-card[data-project="2"] .project-link {
    color: var(--gray-dark);
}

.project-card[data-project="3"] .project-link {
    color: var(--orange-light);
}

.project-link:hover {
    gap: 12px;
}

.project-link svg {
    transition: transform var(--transition-base);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.skill-category {
    padding: 40px;
}

.skill-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    margin-bottom: 24px;
}

.skill-category:nth-child(2) .skill-icon {
    background: var(--gradient-secondary);
}

.skill-category:nth-child(3) .skill-icon {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
}

.skill-category:nth-child(4) .skill-icon {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
}

.skill-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.skill-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

/* Contact Section */
.contact-section {
    margin-bottom: 80px;
}

.contact-container {
    padding: 80px;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

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

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

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 400;
    transition: all var(--transition-base);
}

.contact-link:hover {
    background: rgba(224, 122, 95, 0.05);
    border-color: var(--orange-primary);
    transform: translateX(4px);
}

.contact-link svg {
    color: var(--orange-primary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 48px 0;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-tertiary);
}

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

.footer-link {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
    75% {
        transform: translateY(-30px) rotate(1deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-container {
        width: calc(100% - 48px);
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visual {
        height: 400px;
    }

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

    .section-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 100px 24px 24px;
    }

    .nav-container {
        width: calc(100% - 32px);
        padding: 12px 20px;
    }

    .nav-content {
        padding: 0;
    }

    .nav-links {
        gap: 20px;
    }

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

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

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

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

    .contact-container {
        padding: 48px 32px;
    }

    section {
        margin-bottom: 100px;
    }
}
