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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: absolute;
    width: 100%;
    /* background: url('header-pixel-noise.svg') repeat; */
    background-size: 1600px 240px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 2rem 0;
    min-height: 80px;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.nav-logo .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #6366f1;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #6366f1;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('pixel-gradient.svg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #1a1a1a;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #2d2d2d;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.9);
}

.btn-secondary:hover {
    background: white;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 150px 0;
    background: #efefef;
}

.services .container {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1a1a1a;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.service-card {
    background: transparent;
    padding: 2rem;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-image: linear-gradient(45deg, #ff6b9d, #c44569, #f093fb, #f5576c, #4facfe, #00f2fe) 1;
    border-style: solid;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #1a1a1a;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 1);
}

.service-card p {
    color: #1a1a1a;
    line-height: 1.6;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 1);
}

/* Approach Section */
.approach {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('pixel-gradient-approach-3.svg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.approach .container {
    position: relative;
    z-index: 2;
}

.approach .section-title {
    color: #1a1a1a;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 1);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.approach-card {
    background: rgba(255, 255, 255, 0.4);
    padding: 2rem;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.approach-card:hover {
    border-image: linear-gradient(45deg, #ff6b9d, #c44569, #f093fb, #f5576c, #4facfe, #00f2fe) 1;
    border-style: solid;
}

.approach-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #1a1a1a;
    font-size: 2rem;
}

.approach-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 1);
}

.approach-card p {
    color: #1a1a1a;
    line-height: 1.6;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 1);
}

/* Portfolio Section */
.portfolio {
    padding: 150px 0;
    background: #efefef;
    position: relative;
}

.portfolio-splide {
    width: 100%;
}

.splide__slide {
    display: flex;
    justify-content: center;
}

.portfolio-item {
    background: transparent;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    margin: 0;
    width: 600px;
    flex-shrink: 0;
}

.portfolio-item:hover {
    border-image: linear-gradient(45deg, #ff6b9d, #c44569, #f093fb, #f5576c, #4facfe, #00f2fe) 1;
    border-style: solid;
}

/* Custom Splide arrows */
.splide__arrow {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    color: #1a1a1a;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.splide__arrow:hover {
    background: white;
    border-color: #6366f1;
    color: #6366f1;
}

.splide__arrow svg {
    width: 1.25rem;
    height: 1.25rem;
}

.portfolio-image {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.portfolio-placeholder {
    color: white;
    font-size: 2rem;
    opacity: 0.8;
}

.portfolio-content {
    padding: 1.5rem;
    margin: 0;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.portfolio-content p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}

.portfolio-link:hover {
    color: #4f46e5;
    gap: 0.75rem;
}

/* Contact Section */
.contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('pixel-gradient-contact.svg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact .section-title {
    color: white;
    text-shadow: 2px 2px 0px #1a1a1a;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 0px #1a1a1a;
}

.contact-info p {
    color: white;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 2px 2px 0px #1a1a1a;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #1a1a1a;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 1);
}

.contact-item i {
    color: #1a1a1a;
    font-size: 1.25rem;
}

.contact-item a {
    color: #1a1a1a;
    text-decoration: none;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 1);
}

.contact-item a:hover {
    color: #6366f1;
}

.contact-button {
    margin-top: 2rem;
}

.contact-button .btn {
    background: white;
    color: #1a1a1a;
    border-color: white;
    font-size: 1.25rem;
    padding: 16px 32px;
}

.contact-button .btn:hover {
    background: #f8f9fa;
    color: #1a1a1a;
    border-color: #f8f9fa;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #5f5f5f;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo .logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #6366f1;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .splide__arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .container {
        padding: 0 15px;
    }
}

/* Smooth scrolling and animations */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .portfolio-item {
        animation: fadeInUp 0.6s ease-out;
    }

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

.pixel-art {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    width: 200px; /* adjust as needed */
    height: auto;
}

.logo-stack {
    position: relative;
    display: inline-block;
    width: 200px;
    height: auto;
    vertical-align: middle;
}
.logo-stack .logo {
    width: 100%;
    height: auto;
    display: block;
}
.logo-stack .logo-under {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.5;
    z-index: 1;
    display: none;
}
.logo-stack .logo-over {
    position: relative;
    opacity: 1;
    z-index: 2;
    pointer-events: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    width: 95%;
    height: 90%;
    border: 2px solid #e2e8f0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 2px solid #e2e8f0;
    background: white;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #1a1a1a;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #6366f1;
}

.modal-body {
    height: calc(100% - 80px);
    padding: 0;
}

.screenshot-container {
    display: flex;
    height: 100%;
    width: 100%;
}

.screenshot-image {
    flex: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
}

.screenshot-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 1px solid #e2e8f0;
}

.screenshot-caption {
    flex: 1;
    padding: 2rem;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid #e2e8f0;
}

.screenshot-caption h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.screenshot-caption p {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* POX Splide customization */
.pox-splide {
    height: 100%;
}

.pox-splide .splide__track {
    height: 100%;
}

.pox-splide .splide__list {
    height: 100%;
}

.pox-splide .splide__slide {
    height: 100%;
}

.pox-splide .splide__arrow {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    color: #1a1a1a;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.pox-splide .splide__arrow:hover {
    background: white;
    border-color: #6366f1;
    color: #6366f1;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        height: 95%;
        margin: 1% auto;
    }
    
    .screenshot-container {
        flex-direction: column;
    }
    
    .screenshot-image {
        flex: 1;
        min-height: 60%;
    }
    
    .screenshot-caption {
        flex: 1;
        border-left: none;
        border-top: 2px solid #e2e8f0;
        padding: 1rem;
    }
    
    .screenshot-caption h3 {
        font-size: 1.25rem;
    }
    
    .screenshot-caption p {
        font-size: 0.9rem;
    }
} 