/* Hero Section Base */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Background */
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#pixel-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(116, 42, 132, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(116, 42, 132, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 10s linear infinite;
}

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

.scanlines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* Container */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

/* Logo Animation */
.logo-animation {
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 1s ease-out;
}

.pixel-logo {
    display: inline-block;
    position: relative;
}

.pixel-logo img,
.pixel-logo .custom-logo {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 20px var(--primary-color));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Main Title */
.hero-title {
    margin: 0 0 var(--spacing-lg);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.title-line-1 {
    display: block;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: -2px;
}

.glitch {
    position: relative;
    color: var(--text-light);
    text-shadow: 
        2px 2px 0 var(--primary-color),
        4px 4px 0 var(--primary-dark);
    display: inline-block;
    animation: glitchText 3s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.3s infinite;
    color: var(--primary-light);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.3s infinite;
    color: var(--secondary-color);
    z-index: -2;
}

.title-line-2 {
    display: block;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--secondary-light);
    letter-spacing: 0.5em;
    margin-top: var(--spacing-sm);
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-light), var(--secondary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Animated Tagline */
.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    height: 2em;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.tagline-prefix {
    color: var(--secondary-color);
}

.tagline-rotating {
    position: relative;
    overflow: hidden;
    display: inline-block;
    min-width: 300px;
}

.rotating-word {
    display: block;
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateY(50px);
    color: var(--primary-light);
    font-weight: 700;
    white-space: nowrap;
}

.rotating-word.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    animation: wordRotate 12s infinite;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 1s ease-out 0.9s both;
}

.pixel-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0;
    transition: transform var(--transition-fast);
}

.btn-inner {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    position: relative;
    z-index: 2;
    transition: transform var(--transition-fast);
}

.primary-btn .btn-inner {
    background: var(--primary-color);
    color: var(--text-light);
}

.secondary-btn .btn-inner {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
}

.btn-shadow {
    position: absolute;
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    background: var(--primary-dark);
    z-index: 1;
}

.secondary-btn .btn-shadow {
    background: var(--secondary-dark);
}

.pixel-btn:hover {
    transform: translate(-2px, -2px);
}

.pixel-btn:hover .btn-shadow {
    transform: translate(6px, 6px);
}

.pixel-btn:active {
    transform: translate(2px, 2px);
}

.btn-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease-out 0.6s both;
    perspective: 1000px;
}

.game-showcase {
    position: relative;
    width: 100%;
    max-width: 500px;
    transform-style: preserve-3d;
    transition: transform var(--transition-normal);
}

.showcase-screen {
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border: 8px solid var(--bg-card);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 0 4px var(--primary-dark),
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(116, 42, 132, 0.3);
}

.screen-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

/* Pixel Art Scene */
.pixel-scene {
    position: absolute;
    width: 100%;
    height: 100%;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.pixel-character-home {
    width: 40px;
    height: 40px;
    position: absolute;
    bottom: 20%;
    left: 20%;
    image-rendering: pixelated;
    animation: characterRun 2s steps(4) infinite;
}

.pixel-character-home::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--error);
    clip-path: polygon(
        25% 0%, 75% 0%, 75% 25%, 100% 25%, 100% 75%, 75% 75%, 75% 100%, 25% 100%, 25% 75%, 0% 75%, 0% 25%, 25% 25%
    );
}

@keyframes characterRun {
    0% { transform: translateX(0) scaleX(1); }
    25% { transform: translateX(50px) scaleX(1); }
    50% { transform: translateX(100px) scaleX(-1); }
    75% { transform: translateX(50px) scaleX(-1); }
    100% { transform: translateX(0) scaleX(1); }
}

.floating-platforms {
    position: absolute;
    width: 100%;
    height: 100%;
}

.platform {
    position: absolute;
    height: 10px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--secondary-dark));
    border-top: 2px solid var(--secondary-light);
    image-rendering: pixelated;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.platform-1 {
    width: 100px;
    bottom: 40%;
    left: 10%;
    animation: platformFloat 4s ease-in-out infinite;
}

.platform-2 {
    width: 120px;
    bottom: 60%;
    right: 15%;
    animation: platformFloat 4s ease-in-out infinite 1s;
}

.platform-3 {
    width: 80px;
    bottom: 30%;
    right: 10%;
    animation: platformFloat 4s ease-in-out infinite 2s;
}

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

/* Collectibles */
.collectibles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.coin {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--warning);
    border-radius: var(--radius-full);
    box-shadow: 
        inset -2px -2px 0 rgba(0,0,0,0.3),
        0 0 10px var(--warning);
    animation: coinSpin 2s linear infinite;
}

.coin:nth-child(1) { top: 35%; left: 30%; }
.coin:nth-child(2) { top: 55%; right: 25%; animation-delay: 0.5s; }
.coin:nth-child(3) { bottom: 35%; left: 50%; animation-delay: 1s; }

@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.screen-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.1) 0%, 
        transparent 50%);
    pointer-events: none;
}

/* Console Base */
.console-base {
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-card), #1a1a1a);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 0 var(--spacing-lg);
}

.console-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.d-pad {
    width: 80px;
    height: 80px;
    position: relative;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.d-pad::before,
.d-pad::after {
    content: '';
    position: absolute;
    background: var(--secondary-dark);
    box-shadow: 
        inset 0 -2px 0 rgba(0,0,0,0.3),
        0 2px 0 rgba(255,255,255,0.1);
}

.d-pad::before {
    width: 26px;
    height: 80px;
    left: 27px;
    top: 0;
}

.d-pad::after {
    width: 80px;
    height: 26px;
    top: 27px;
    left: 0;
}

.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    transform: rotate(-25deg);
}

.btn-a, .btn-b {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 
        inset 0 -3px 0 rgba(0,0,0,0.3),
        0 2px 0 rgba(255,255,255,0.2);
}

.btn-b {
    background: var(--error);
}

.btn-a::after, .btn-b::after {
    content: 'A';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-weight: bold;
}

.btn-b::after {
    content: 'B';
}

.btn-a:hover, .btn-b:hover {
    transform: scale(1.1);
    box-shadow: 
        inset 0 -3px 0 rgba(0,0,0,0.3),
        0 2px 0 rgba(255,255,255,0.2),
        0 0 20px currentColor;
}

.btn-a:active, .btn-b:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 0 rgba(0,0,0,0.5);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 1s ease-out 1.5s both;
}

.scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    margin: 0 auto var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    width: 6px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
    0% { top: 8px; opacity: 1; }
    100% { top: 32px; opacity: 0; }
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary-color);
    display: block;
}

/* Section Base Styles */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
}

.section-title::before {
    left: -70px;
}

.section-title::after {
    right: -70px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text {
    animation: fadeInLeft 1s ease-out;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-light);
    margin-bottom: var(--spacing-md);
}

.about-visual {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.pixel-team {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.team-member {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    position: relative;
    image-rendering: pixelated;
    transition: transform var(--transition-normal);
    cursor: pointer;
}

.team-member:nth-child(2) {
    background: var(--secondary-color);
}

.team-member:nth-child(3) {
    background: var(--error);
}

.team-member:nth-child(4) {
    background: var(--warning);
}

.team-member:nth-child(5) {
    background: var(--success);
}

.team-member:nth-child(6) {
    background: var(--info);
}

.team-member:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.team-member::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to bottom, transparent 20%, currentColor 20%, currentColor 80%, transparent 80%),
        linear-gradient(to right, transparent 30%, rgba(255,255,255,0.3) 30%, rgba(255,255,255,0.3) 70%, transparent 70%);
    mix-blend-mode: multiply;
}

/* Portfolio Section */
.portfolio-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0f0f0f);
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.portfolio-item {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(116, 42, 132, 0.3);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-light));
    position: relative;
    overflow: hidden;
}

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

.portfolio-image:empty::before {
    content: '🎮';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.5;
}

.portfolio-info {
    padding: var(--spacing-lg);
}

.portfolio-title {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: var(--spacing-sm);
}

.portfolio-category {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.portfolio-description {
    color: var(--secondary-light);
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(116, 42, 132, 0.3);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

.service-card:nth-child(1) .service-icon { animation-delay: 0s; }
.service-card:nth-child(2) .service-icon { animation-delay: 0.5s; }
.service-card:nth-child(3) .service-icon { animation-delay: 1s; }
.service-card:nth-child(4) .service-icon { animation-delay: 1.5s; }

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

.service-title {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--secondary-light);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, #0f0f0f, var(--bg-dark));
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(116, 42, 132, 0.3);
}

.testimonial-content {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -10px;
}

.testimonial-content p {
    color: var(--secondary-light);
    line-height: 1.8;
    font-style: italic;
    padding-left: var(--spacing-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary-light);
    margin-bottom: var(--spacing-xs);
}

.author-info p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0a0a0a);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.contact-form {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-dark);
    border: 2px solid var(--secondary-dark);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(116, 42, 132, 0.2);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(116, 42, 132, 0.2);
}

.info-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-text h4 {
    color: var(--primary-light);
    margin-bottom: var(--spacing-xs);
}

.info-text p {
    color: var(--secondary-light);
}

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

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

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

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

@keyframes glitchText {
    0%, 100% { 
        text-shadow: 
            2px 2px 0 var(--primary-color),
            4px 4px 0 var(--primary-dark);
    }
    25% { 
        text-shadow: 
            -2px 2px 0 var(--primary-color),
            -4px 4px 0 var(--primary-dark);
    }
    50% { 
        text-shadow: 
            2px -2px 0 var(--primary-color),
            4px -4px 0 var(--primary-dark);
    }
}

@keyframes glitch-1 {
    0%, 100% { 
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translate(0);
    }
    20% {
        clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
        transform: translate(-2px, 2px);
    }
    40% {
        clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {
    0%, 100% { 
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translate(0);
    }
    30% {
        clip-path: polygon(0 25%, 100% 25%, 100% 75%, 0 75%);
        transform: translate(2px, 2px);
    }
    60% {
        clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
        transform: translate(-2px, -2px);
    }
}

@keyframes wordRotate {
    0%, 25% { 
        opacity: 1;
        transform: translateY(0);
    }
    30%, 95% { 
        opacity: 0;
        transform: translateY(-50px);
    }
    100% { 
        opacity: 0;
        transform: translateY(50px);
    }
}

/* Ripple Animation */
@keyframes ripple {
    to {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: var(--spacing-xl);
    }
    
    .game-showcase {
        max-width: 400px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .section-title::before,
    .section-title::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .title-line-1 {
        font-size: 3rem;
    }
    
    .title-line-2 {
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
        justify-content: center;
    }
    
    .tagline-rotating {
        min-width: 200px;
    }
    
    .pixel-btn {
        font-size: 0.875rem;
    }
    
    .btn-inner {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .portfolio-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .pixel-team {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: var(--spacing-md);
        gap: var(--spacing-lg);
    }
    
    .title-line-1 {
        font-size: 2.5rem;
    }
    
    .pixel-logo img,
    .pixel-logo .custom-logo {
        width: 60px;
        height: 60px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .pixel-btn {
        width: 100%;
    }
    
    .game-showcase {
        max-width: 300px;
    }
    
    .console-base {
        height: 80px;
    }
    
    .d-pad {
        width: 60px;
        height: 60px;
    }
    
    .d-pad::before {
        width: 20px;
        left: 20px;
    }
    
    .d-pad::after {
        height: 20px;
        top: 20px;
    }
    
    .btn-a, .btn-b {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .team-member {
        width: 60px;
        height: 60px;
    }
}