/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary-color: #2d2d2d;
    --secondary-color: #f5f5f5;
    --accent-color: #ff6b6b;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --white: #ffffff;
    
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Noto Serif JP', serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* ========================================
   Container & Section
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 40px;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.3rem;
    left: 1rem;
    right: 1rem;
    width: calc(100% - 2rem);
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    width: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

/* 波打ちグラデーション背景 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 107, 107, 0.1) 0%,
        rgba(78, 205, 196, 0.1) 25%,
        rgba(255, 159, 243, 0.1) 50%,
        rgba(163, 203, 255, 0.1) 75%,
        rgba(255, 107, 107, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: gradientWave 15s ease infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 20% 50%,
        rgba(255, 107, 107, 0.15) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 80% 80%,
        rgba(78, 205, 196, 0.15) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 40% 20%,
        rgba(163, 203, 255, 0.15) 0%,
        transparent 50%
    );
    background-size: 200% 200%;
    animation: gradientMove 20s ease infinite;
    z-index: 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Creative Designer - 2色交互アニメーション */
.hero-subtitle .char {
    display: inline-block;
    opacity: 0;
    animation: fadeInTwoColors 0.8s ease-out forwards, colorChange 4s ease-in-out infinite;
    letter-spacing: normal;
}

/* 各文字に遅延を追加 */
.hero-subtitle .char:nth-child(1) { animation-delay: 0s, 0s; }
.hero-subtitle .char:nth-child(2) { animation-delay: 0.05s, 0.2s; }
.hero-subtitle .char:nth-child(3) { animation-delay: 0.1s, 0.4s; }
.hero-subtitle .char:nth-child(4) { animation-delay: 0.15s, 0.6s; }
.hero-subtitle .char:nth-child(5) { animation-delay: 0.2s, 0.8s; }
.hero-subtitle .char:nth-child(6) { animation-delay: 0.25s, 1s; }
.hero-subtitle .char:nth-child(7) { animation-delay: 0.3s, 1.2s; }
.hero-subtitle .char:nth-child(8) { animation-delay: 0.35s, 1.4s; }
.hero-subtitle .char:nth-child(9) { animation-delay: 0.4s, 1.6s; }
.hero-subtitle .char:nth-child(10) { animation-delay: 0.45s, 1.8s; }
.hero-subtitle .char:nth-child(11) { animation-delay: 0.5s, 2s; }
.hero-subtitle .char:nth-child(12) { animation-delay: 0.55s, 2.2s; }
.hero-subtitle .char:nth-child(13) { animation-delay: 0.6s, 2.4s; }
.hero-subtitle .char:nth-child(14) { animation-delay: 0.65s, 2.6s; }
.hero-subtitle .char:nth-child(15) { animation-delay: 0.7s, 2.8s; }
.hero-subtitle .char:nth-child(16) { animation-delay: 0.75s, 3s; }

.hero-name {
    display: block;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

/* Atsushi Sugimoto - 回転アニメーション */
.hero-name .char-rotate {
    display: inline-block;
    opacity: 0;
    animation: rotateIn 0.6s ease-out forwards;
    letter-spacing: normal;
}

/* 各文字に遅延を追加（1文字ずつ） */
.hero-name .char-rotate:nth-child(1) { animation-delay: 0.9s; }
.hero-name .char-rotate:nth-child(2) { animation-delay: 0.95s; }
.hero-name .char-rotate:nth-child(3) { animation-delay: 1s; }
.hero-name .char-rotate:nth-child(4) { animation-delay: 1.05s; }
.hero-name .char-rotate:nth-child(5) { animation-delay: 1.1s; }
.hero-name .char-rotate:nth-child(6) { animation-delay: 1.15s; }
.hero-name .char-rotate:nth-child(7) { animation-delay: 1.2s; }
.hero-name .char-rotate:nth-child(8) { animation-delay: 1.25s; }
.hero-name .char-rotate:nth-child(9) { animation-delay: 1.3s; }
.hero-name .char-rotate:nth-child(10) { animation-delay: 1.35s; }
.hero-name .char-rotate:nth-child(11) { animation-delay: 1.4s; }
.hero-name .char-rotate:nth-child(12) { animation-delay: 1.45s; }
.hero-name .char-rotate:nth-child(13) { animation-delay: 1.5s; }
.hero-name .char-rotate:nth-child(14) { animation-delay: 1.55s; }
.hero-name .char-rotate:nth-child(15) { animation-delay: 1.6s; }
.hero-name .char-rotate:nth-child(16) { animation-delay: 1.65s; }

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--text-dark);
    color: var(--white);
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 1s ease-out 1.8s both;
    position: relative;
    overflow: hidden;
}

/* 矢印の要素 */
.btn-primary::after {
    content: '→';
    position: absolute;
    right: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 1.2rem;
}

/* パルス（脈打つ）効果の背景 */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
    background: var(--accent-color);
    padding-right: 3.5rem;
}

.btn-primary:hover::after {
    opacity: 1;
    transform: translateX(0);
    animation: arrowBounce 0.6s ease-out;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
    z-index: 1;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--text-light);
    opacity: 0.5;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    background: var(--white);
}

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

.about-image {
    position: static;
}

.about-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--secondary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.highlight-marketing {
    color: #557AB4;
    font-weight: 700;
    background: linear-gradient(135deg, #557AB4 0%, #7A9ED1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-design {
    color: #ff6b6b;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills,
.tools {
    margin-top: 2.5rem;
}

.skills h4,
.tools h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.6rem 1.2rem;
    background: var(--secondary-color);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

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

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tool-item {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.tool-item:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ========================================
   Works Section
   ======================================== */
.works-section {
    background: var(--secondary-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: var(--white);
    color: var(--text-dark);
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: var(--text-dark);
    color: var(--white);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.work-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 1;
    transform: scale(1);
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.work-item.hide {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.work-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.work-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.work-item:hover .work-image .image-placeholder {
    transform: scale(1.1);
}

.work-info {
    padding: 1.8rem;
}

.work-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.work-category {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.work-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:not(:disabled):hover {
    background: var(--text-dark);
    color: var(--white);
    border-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.current-page {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.3rem;
}

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

.contact-item a {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid transparent;
    background: var(--white);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

.contact-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-text {
    margin-bottom: 3rem;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

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

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.btn-cta-primary i {
    transition: transform 0.3s ease;
}

.btn-cta-primary:hover i {
    transform: translateX(5px);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--white);
    border-radius: 50px;
    transition: var(--transition);
}

.btn-cta-secondary:hover {
    background: var(--white);
    color: var(--text-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

/* 2色フェードインアニメーション */
@keyframes fadeInTwoColors {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(0) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 2色が交互に変わるアニメーション */
@keyframes colorChange {
    0% {
        color: #557AB4;
    }
    50% {
        color: #ff6b6b;
    }
    100% {
        color: #557AB4;
    }
}

/* 虹色フェードインアニメーション */
@keyframes fadeInRainbow {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(0) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 回転しながら登場するアニメーション */
@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotateY(-180deg) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: rotateY(-90deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
}

/* 矢印のバウンドアニメーション */
@keyframes arrowBounce {
    0% {
        transform: translateX(-20px);
    }
    50% {
        transform: translateX(5px);
    }
    70% {
        transform: translateX(-2px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes gradientWave {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-text {
        max-width: 700px;
        margin: 0 auto;
        padding: 0 2rem;
        text-align: center;
    }
    
    .about-text h3 {
        text-align: center;
    }
    
    .about-text p {
        text-align: center;
    }
    
    .skills,
    .tools {
        text-align: center;
    }
    
    .skill-tags,
    .tool-list {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .logo {
        height: 35px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .cta-description {
        font-size: 1.05rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta-primary {
        width: auto;
        max-width: 300px;
    }
    
    .btn-cta-secondary {
        width: auto;
        max-width: 300px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 30px;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}