/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

/* ===================================
   Layout & Container
   =================================== */

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

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

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

/* ===================================
   Header & Navigation
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #FFF;
    backdrop-filter: blur(10px);
    padding: 24px 0;
    z-index: 1000;
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    background-color: #000;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 40px;
    margin-left: auto;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #1a1a1a;
    position: relative;
    text-transform: uppercase;
}

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

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

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-origin: center;
}

/* Hamburger animation */
.hamburger.active span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

.hero {
    padding: 180px 0 120px;
    background-color: #fff;
}

.hero-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.highlight {
    color: #0066cc;
    font-weight: 500;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    max-width: 560px;
    margin-bottom: 24px;
    color: #333;
    font-weight: 300;
}

.social-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #1a1a1a;
}

.social-link:hover {
    color: #0066cc;
}

.social-link:hover::after {
    background-color: #0066cc;
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-description {
        font-size: 16px;
    }
}

/* ===================================
   Works Section
   =================================== */

.works {
    padding: 40px 0;
    background-color: #fafafa;
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-link:hover .btn-coming-soon {
    background-color: #000;
}

.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
    background-color: #fff;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.project-link:last-of-type .project {
    margin-bottom: 0;
}

.project.ibm-featured,
.project.darwin-featured {
    grid-template-columns: 1.15fr 0.85fr;
}

.project.ibm-featured .mockup-screen,
.project.darwin-featured .mockup-screen {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.project.ibm-featured:hover .mockup-screen,
.project.darwin-featured:hover .mockup-screen {
    transform: scale(1.15);
}

@media (min-width: 1025px) {
    .project.reverse {
        grid-template-columns: 1fr 1fr;
    }

    .project.darwin-featured.reverse {
        grid-template-columns: 0.85fr 1.15fr;
    }

    .project.reverse .project-content {
        order: 1;
    }

    .project.reverse .project-image {
        order: 2;
    }
}

.project-category {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 12px;
}

.project-title {
    font-size: 36px;
    font-weight: 500;
    color: #0066cc;
    margin-bottom: 20px;
    line-height: 1.3;
}

.project-description {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 32px;
    font-weight: 300;
}

.btn-coming-soon {
    background-color: #5a5a5a;
    color: #fff;
    padding: 14px 32px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-coming-soon:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.btn-coming-soon:active {
    background-color: #000;
    transform: translateY(0);
}

.btn-coming-soon:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-coming-soon:disabled:hover {
    background-color: #5a5a5a;
    transform: none;
}

.project:has(.btn-coming-soon:disabled):hover {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    transform: none;
}

/* ===================================
   Device Mockups
   =================================== */

.project-image {
    position: relative;
}

.device-mockup {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background-color: #1a1a1a;
    transition: transform 0.3s ease;
}

.project:hover .device-mockup {
    transform: scale(1.02);
}

.device-mockup.laptop {
    padding: 8px 8px 28px 8px;
    border-radius: 12px;
}

.device-mockup.tablet {
    padding: 16px;
    border-radius: 16px;
}

.mockup-screen {
    width: 100%;
    height: auto;
    border-radius: 4px;
    background-color: #e5e5e5;
    object-fit: contain;
}

@media (max-width: 1024px) {

    .project,
    .project.reverse,
    .project.ibm-featured,
    .project.darwin-featured {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
        margin-bottom: 40px;
    }


    .project-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .project {
        padding: 30px;
        margin-bottom: 40px;
    }

    .project-title {
        font-size: 28px;
    }

    .project-description {
        font-size: 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        right: 0px;
        top: 0px;
        height: 100vh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        gap: 40px;
        z-index: 1000;
        padding: 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

    .nav.active {
        transform: translateX(0%);
    }

    .nav-link {
        font-size: 24px;
        letter-spacing: 2px;
    }

    /* Prevent scrolling when menu is open */
    body.no-scroll {
        overflow: hidden;
    }
}

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

.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 24px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    font-weight: 300;
    color: #999;
}

/* ===================================
   Utility Classes
   =================================== */

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

.mb-small {
    margin-bottom: 20px;
}

.mb-medium {
    margin-bottom: 40px;
}

.mb-large {
    margin-bottom: 60px;
}
/* Black background for non-disabled CTA buttons on mobile */
@media (max-width: 768px) {
    .btn-coming-soon:not(:disabled) {
        background-color: #000;
    }
}

