/* ==================== CSS Variables ==================== */
:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f48fb1;
    --secondary: #9c27b0;
    --accent: #ff5722;
    --success: #4caf50;
    --danger: #f44336;
    
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-card-hover: #fff5f8;
    
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(0, 0, 0, 0.15);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea { font-family: inherit; font-size: inherit; }

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
}

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

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

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

.logo-text {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 18px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(233, 30, 99, 0.05);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.mobile-toggle svg { width: 24px; height: 24px; }

/* ==================== Hero ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff5f8 0%, #f8f4ff 50%, #f0f8ff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-gradient {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.08) 0%, transparent 60%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: clamp(36px, 7vw, 64px);
    margin-bottom: 24px;
}

.hero-line {
    display: block;
}

.hero-line.accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 56px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ==================== Sections ==================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: rgba(233, 30, 99, 0.08);
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 5vw, 44px);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* ==================== Tools Grid ==================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}

.tool-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tool-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon svg { width: 26px; height: 26px; color: white; }

.tool-info { flex: 1; min-width: 0; }

.tool-info h3 { font-size: 16px; margin-bottom: 4px; }

.tool-info p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.tool-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-radius: 100px;
}

/* ==================== Articles Grid ==================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.article-image {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img { transform: scale(1.05); }

.article-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 100px;
}

.article-content { padding: 24px; }

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-title { font-size: 20px; margin-bottom: 12px; line-height: 1.4; }

.article-title a:hover { color: var(--primary); }

.article-excerpt { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }

.article-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.article-link:hover { color: var(--primary-dark); }

/* ==================== About Preview ==================== */
.about-preview { background: var(--bg-secondary); }

.about-preview-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-text h2 { font-size: 36px; margin-bottom: 20px; }

.about-text p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }

/* ==================== Newsletter ==================== */
.newsletter-section { padding: 80px 0; }

.newsletter-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.08) 0%, rgba(156, 39, 176, 0.08) 100%);
    border: 1px solid rgba(233, 30, 99, 0.1);
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
}

.newsletter-content { flex: 1; min-width: 280px; }

.newsletter-content h2 { font-size: 28px; margin-bottom: 8px; }

.newsletter-content p { color: var(--text-secondary); }

.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ==================== Footer ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand { max-width: 320px; }

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.footer-social a:hover { background: var(--primary); color: white; }

.footer-social svg { width: 18px; height: 18px; }

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

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

.footer-links a { font-size: 14px; color: var(--text-secondary); }

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

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p { font-size: 14px; color: var(--text-muted); }

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; max-width: none; }
    .about-preview-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 24px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .nav.active { transform: translateX(0); }
    .nav-link { padding: 16px; width: 100%; }
    .mobile-toggle { display: flex; }
    .hero-stats { gap: 32px; }
    .stat-num { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { grid-column: span 1; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .newsletter-form { flex-direction: column; }
}

/* ==================== Page Header ==================== */
.page-header {
    padding: 160px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #fff5f8 0%, #f8f4ff 100%);
}

.page-title { font-size: clamp(32px, 6vw, 52px); margin-bottom: 16px; }

.page-desc { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ==================== Forms ==================== */
.form-group { margin-bottom: 24px; }

.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

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

/* ==================== Contact ==================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }

.contact-info {
    padding: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.contact-item { display: flex; gap: 16px; margin-bottom: 32px; }

.contact-item:last-child { margin-bottom: 0; }

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg { width: 24px; height: 24px; color: white; }

.contact-item h4 { font-size: 16px; margin-bottom: 4px; font-family: 'Inter', sans-serif; }

.contact-item p { font-size: 15px; color: var(--text-secondary); }

.contact-form {
    padding: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

/* ==================== Portfolio ==================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

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

.portfolio-image { aspect-ratio: 16/10; overflow: hidden; }

.portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }

.portfolio-card:hover .portfolio-image img { transform: scale(1.05); }

.portfolio-content { padding: 24px; }

.portfolio-content h3 { font-size: 22px; margin-bottom: 8px; }

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

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

.portfolio-tag {
    padding: 4px 12px;
    font-size: 12px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    color: var(--text-muted);
}

/* ==================== About Page ==================== */
.about-page { padding: 120px 0 80px; }

.about-container { max-width: 800px; margin: 0 auto; }

.about-intro { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; margin-bottom: 60px; }

.about-portrait {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-intro-text h1 { font-size: 44px; margin-bottom: 20px; }

.about-intro-text .lead {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.timeline { position: relative; padding-left: 32px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item { position: relative; margin-bottom: 40px; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.timeline-item h3 { font-size: 20px; margin-bottom: 4px; }

.timeline-item .company { color: var(--primary); font-weight: 500; margin-bottom: 4px; }

.timeline-item .period { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }

.timeline-item p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* ==================== Article Page ==================== */
.article-page { padding: 120px 0 80px; }

.article-container { max-width: 800px; margin: 0 auto; }

.article-header { text-align: center; margin-bottom: 48px; }

.article-header h1 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 20px; line-height: 1.3; }

.article-featured-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 48px;
}

.article-featured-image img { width: 100%; height: 100%; object-fit: cover; }

.article-body { font-size: 18px; line-height: 1.8; }

.article-body h2 { font-size: 28px; margin: 48px 0 20px; }

.article-body h3 { font-size: 22px; margin: 32px 0 16px; }

.article-body p { margin-bottom: 24px; color: var(--text-secondary); }

.article-body img { border-radius: var(--radius-lg); margin: 32px 0; }

.article-body ul, .article-body ol { margin-bottom: 24px; padding-left: 24px; }

.article-body li { margin-bottom: 12px; color: var(--text-secondary); list-style-type: disc; }

.article-body ol li { list-style-type: decimal; }

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-body a { color: var(--primary); text-decoration: underline; }

/* ==================== Legal Pages ==================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.legal-content h1 { font-size: 36px; margin-bottom: 32px; }

.legal-content h2 { font-size: 24px; margin: 40px 0 16px; }

.legal-content p { font-size: 16px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }

.legal-content ul { margin-bottom: 24px; padding-left: 24px; }

.legal-content li { margin-bottom: 8px; color: var(--text-secondary); list-style-type: disc; }

/* ==================== 404 ==================== */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
}

.error-content h1 {
    font-size: 140px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-content h2 { font-size: 28px; margin-bottom: 12px; }

.error-content p { color: var(--text-secondary); margin-bottom: 32px; }

/* ==================== Sitemap ==================== */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }

.sitemap-section h3 { font-size: 18px; margin-bottom: 20px; color: var(--primary); }

.sitemap-section ul { display: flex; flex-direction: column; gap: 12px; }

.sitemap-section a { color: var(--text-secondary); }

.sitemap-section a:hover { color: var(--primary); }

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
