/* ================================
   PIQUÉ CREATIONS - DESIGN SYSTEM
   ================================ */

/* Variables */
:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-bg-light: #141414;
    --color-text: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-accent: #00d4ff;
    --color-accent-glow: rgba(0, 212, 255, 0.3);

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 10rem;

    /* Layout */
    --container-max: 1400px;
    --container-padding: 2rem;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

/* ================================
   NAVIGATION
   ================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2rem 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    max-width: 200px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
    object-fit: contain;
}

.logo:hover .logo-image {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-text);
}

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

/* ================================
   HERO SECTION
   ================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 0 4rem;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.hero-content {
    max-width: 1000px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.hero-title .line:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-title .line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-title .line:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-title .accent {
    color: var(--color-accent);
    text-shadow: 0 0 40px var(--color-accent-glow);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.5s forwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.7s forwards;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--color-accent) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ================================
   BUTTONS
   ================================ */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 2px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-align: center;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.btn-primary:hover {
    background: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--color-accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-2px);
}

/* ================================
   SECTIONS
   ================================ */

section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

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

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
}

/* ================================
   SERVICES SECTION
   ================================ */

.services {
    background: var(--color-bg);
}

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

.service-card {
    padding: 2.5rem 2rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--color-accent) 0%, transparent 30%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.6s ease;
}

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

.service-card:hover::after {
    opacity: 0.15;
}

.service-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-8px);
}

.service-number {
    font-size: 0.75rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ================================
   PROJECTS SECTION
   ================================ */

.projects {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

.project-card {
    padding: 3rem;
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.03) 100%);
    transition: width 0.8s ease;
}

.project-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

.project-card:hover::after {
    width: 100%;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-card h3 {
    font-size: 2rem;
    font-weight: 600;
}

.project-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--color-accent);
    font-size: 0.85rem;
    border-radius: 2px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ================================
   ABOUT SECTION
   ================================ */

.about {
    background: var(--color-bg);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: start;
}

.about-text {
    max-width: 700px;
}

.about-story {
    margin-top: 2rem;
}

.about-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2rem;
    font-weight: 500;
}

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

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    text-shadow: 0 0 30px var(--color-accent-glow);
}

.highlight-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-approach {
    background: var(--color-bg-light);
    padding: 2.5rem;
    border-left: 2px solid var(--color-accent);
    margin-top: 2rem;
}

.about-approach h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-approach p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.about-approach strong {
    color: var(--color-accent);
    font-weight: 600;
}

.about-visual {
    position: sticky;
    top: 120px;
}

.about-image {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--color-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1);
    transition: var(--transition-smooth);
}

.about-image:hover img {
    filter: grayscale(0%) contrast(1.05);
    transform: scale(1.02);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.95) 40%);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 2;
}

.image-caption span:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
}

.caption-role {
    font-size: 0.9rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Fallback when no image */
.about-image:empty::after {
    content: 'Image coming soon';
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* ================================
   WHY SECTION
   ================================ */

.why {
    background: var(--color-bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.why-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.why-icon {
    font-size: 2rem;
    color: var(--color-accent);
    font-weight: 300;
}

.why-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
}

.why-item p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ================================
   CLIENTS SECTION
   ================================ */

.clients {
    background: var(--color-bg-light);
}

.clients-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.client-item {
    padding: 2.5rem 2rem;
    background: var(--color-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-smooth);
    position: relative;
    text-align: center;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.client-item::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.4s ease;
}

.client-item:hover::before {
    width: 100%;
}

.client-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.2);
    background: rgba(20, 20, 20, 0.6);
}

.client-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    font-weight: 600;
}

.client-item p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ================================
   CONTACT SECTION
   ================================ */

.contact {
    background: var(--color-bg);
    padding: var(--spacing-xxl) 0;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-header {
    margin-bottom: var(--spacing-lg);
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-top: 2rem;
    line-height: 1.8;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-link {
    font-size: 1.3rem;
    color: var(--color-text);
    transition: var(--transition-smooth);
}

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

.contact-text {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
}

.contact-cta {
    margin-top: var(--spacing-lg);
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: var(--color-bg-light);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.footer-logo {
    max-height: 40px;
    max-width: 180px;
    height: auto;
    width: auto;
    margin-bottom: 0.5rem;
    object-fit: contain;
}

.footer-left p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
        --spacing-xxl: 6rem;
    }

    .nav {
        padding: 1.5rem 0;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
        min-height: 240px;
    }

    .clients-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .client-item {
        min-height: 160px;
        padding: 2rem 1.5rem;
    }

    .project-card {
        padding: 2rem 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-highlights {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

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

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        align-items: center;
    }
}

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

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

    .nav-links {
        display: none;
    }

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

    .service-card {
        min-height: auto;
    }

    .clients-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .client-item {
        text-align: left;
        min-height: auto;
        padding: 1.5rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .highlight-item {
        flex-direction: row;
        align-items: baseline;
        gap: 1rem;
    }

    .highlight-number {
        font-size: 2rem;
    }

    .about-approach {
        padding: 1.5rem;
    }
}

/* ================================
   UTILITIES
   ================================ */

.text-accent {
    color: var(--color-accent);
}

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

/* Selection */
::selection {
    background: var(--color-accent);
    color: var(--color-bg);
}

::-moz-selection {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
