/* ========================================
   xonnet studio Portfolio - Light Mode
   ======================================== */

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

:root {
    --primary-color: #1f2937;
    --accent-color: #FF6B6B;
    --accent-light: #FF8E8E;
    --accent-dark: #E55A5A;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
    --nav-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
}

.container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    border-radius: 1px;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    padding: 0 40px;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-greeting {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.hero-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Hero Visual Decorations */

.hero-visual {
    flex: 0 0 400px;
    position: relative;
    height: 420px;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.hero-circle-lg {
    width: 280px;
    height: 280px;
    top: 30px;
    right: 20px;
    opacity: 0.15;
}

.hero-circle-md {
    width: 160px;
    height: 160px;
    top: 100px;
    right: 80px;
    background: rgba(255, 107, 107, 0.04);
    opacity: 0.25;
}

.hero-circle-sm {
    width: 70px;
    height: 70px;
    top: 155px;
    right: 125px;
    background: rgba(255, 107, 107, 0.06);
    opacity: 0.4;
}

.hero-line {
    position: absolute;
    background: var(--accent-color);
}

.hero-line-1 {
    width: 2px;
    height: 140px;
    top: 60px;
    right: 160px;
    opacity: 0.12;
    transform: rotate(25deg);
}

.hero-line-2 {
    width: 120px;
    height: 2px;
    top: 250px;
    right: 30px;
    opacity: 0.12;
    transform: rotate(-10deg);
}

.hero-line-3 {
    width: 2px;
    height: 100px;
    top: 260px;
    right: 150px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.hero-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-color);
}

.hero-dot-1 {
    width: 14px;
    height: 14px;
    top: 50px;
    right: 158px;
    opacity: 0.6;
}

.hero-dot-2 {
    width: 10px;
    height: 10px;
    top: 290px;
    right: 28px;
    opacity: 0.45;
}

.hero-dot-3 {
    width: 8px;
    height: 8px;
    top: 180px;
    right: 310px;
    opacity: 0.3;
}

.hero-dot-4 {
    width: 12px;
    height: 12px;
    top: 370px;
    right: 140px;
    opacity: 0.5;
}

/* ========================================
   Section Common Styles
   ======================================== */

.skills-section,
.projects-section,
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.section-label {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* ========================================
   Skills / Tech Stack
   ======================================== */

.skills-section {
    border-bottom: 1px solid var(--border-color);
}

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

.tag {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
    cursor: default;
}

.tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 107, 107, 0.35);
}

/* ========================================
   Projects Grid
   ======================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--card-bg);
    padding: 36px 28px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 107, 0.3);
}

.project-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 107, 107, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.project-icon i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.project-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    text-align: center;
}

.contact-section .section-title {
    display: block;
}

.contact-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-top: -24px;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.contact-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 30px;
    transition: var(--transition);
}

.contact-btn.primary {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.contact-btn.primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.contact-btn.secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.contact-btn.secondary:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    text-align: center;
    padding: 32px 40px;
    color: var(--text-light);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   Responsive - Tablet (max-width: 992px)
   ======================================== */

@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-visual {
        flex: 0 0 300px;
        height: 350px;
    }

    .hero-circle-lg {
        width: 220px;
        height: 220px;
    }

    .hero-circle-md {
        width: 130px;
        height: 130px;
    }
}

/* ========================================
   Responsive - Mobile (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 24px 40px;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 0 24px;
        padding-top: var(--nav-height);
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .skills-section,
    .projects-section,
    .contact-section {
        padding: 60px 24px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .contact-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .skill-tags {
        justify-content: center;
    }

    .footer {
        padding: 24px;
    }
}

/* ========================================
   Responsive - Small Mobile (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    .hero {
        padding: 0 16px;
        padding-top: var(--nav-height);
        padding-bottom: 48px;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-title {
        font-size: 1.875rem;
    }

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

    .nav-content {
        padding: 0 20px;
    }

    .skills-section,
    .projects-section,
    .contact-section {
        padding: 48px 16px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .project-card {
        padding: 28px 20px;
    }

    .tag {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
}
