/* ============================================
   MERAA MEDIA - Main Stylesheet
   ============================================ */

/* ============================================
   FONTS
   ============================================ */
@font-face {
    font-family: 'Akira Expanded';
    src: url('/fonts/Akira-Expanded.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tomorrow';
    src: url('/fonts/Tomorrow-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tomorrow';
    src: url('/fonts/Tomorrow-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Tomorrow';
    src: url('/fonts/Tomorrow-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tomorrow';
    src: url('/fonts/Tomorrow-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tomorrow';
    src: url('/fonts/Tomorrow-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tomorrow';
    src: url('/fonts/Tomorrow-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tomorrow';
    src: url('/fonts/Tomorrow-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tomorrow';
    src: url('/fonts/Tomorrow-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tomorrow';
    src: url('/fonts/Tomorrow-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */
:root {
    /* Colors */
    --color-red: #FF4B4B;
    --color-blue: #05DAE8;
    --color-yellow: #B6FE54;
    --color-black: #2F2E2D;
    --color-gray: #DAD5D0;

    /* Fonts */
    --font-heading: 'Akira Expanded', sans-serif;
    --font-body: 'Tomorrow', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 5rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.heading-xl {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.heading-lg {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.heading-md {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.heading-sm {
    font-family: var(--font-heading);
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.text-italic {
    font-style: italic;
}

.text-body {
    font-family: var(--font-body);
    font-size: 1rem;
}

.text-body-sm {
    font-family: var(--font-body);
    font-size: 0.875rem;
}

/* ============================================
   TEXTURE OVERLAY
   ============================================ */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/texture-1.png');
    background-size: cover;
    background-position: center;
    pointer-events: none;
    opacity: 0.4;
    z-index: 9999;
    mix-blend-mode: multiply;
}

/* ============================================
   PAGE LAYOUTS
   ============================================ */
.page {
    min-height: 100vh;
    position: relative;
}

.page-content {
    position: relative;
    z-index: 1;
}

/* Landing Page */
.page--landing {
    background-color: var(--color-gray);
    color: var(--color-black);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Portfolio Page */
.page--portfolio {
    background-color: var(--color-black);
    color: var(--color-yellow);
}

/* Contact Page */
.page--contact {
    background-color: var(--color-blue);
    color: var(--color-red);
}

/* Services Page */
.page--services {
    background-color: var(--color-red);
    color: var(--color-yellow);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav__link {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    transition: var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: var(--transition-normal);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav__logo img {
    height: 40px;
    width: auto;
}

/* ============================================
   LANDING PAGE
   ============================================ */
.landing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: var(--space-xxl) var(--space-lg);
    text-align: center;
}

.landing__logo {
    max-width: 200px;
    margin-bottom: var(--space-lg);
}

.landing__logo img {
    width: 100%;
}

.landing__title {
    margin-bottom: var(--space-sm);
}

.landing__tagline {
    font-style: italic;
    font-weight: 300;
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: var(--space-xl);
}

.landing__tools {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-bottom: var(--space-lg);
}

.landing__tools img {
    height: 32px;
    width: auto;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.landing__tools img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.landing__tools-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.landing__tools-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ============================================
   PORTFOLIO PAGE
   ============================================ */
.portfolio {
    padding: var(--space-xxl) var(--space-xl);
    min-height: 100vh;
}

.portfolio__header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-top: var(--space-xl);
}

.portfolio__title {
    margin-bottom: var(--space-xs);
}

.portfolio__subtitle {
    font-size: 1.125rem;
    opacity: 0.8;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Card - Cyberpunk Style */
.portfolio-card {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.portfolio-card__border {
    position: absolute;
    inset: 0;
    border: 2px solid var(--color-yellow);
    clip-path: polygon(0 15%,
            5% 0,
            95% 0,
            100% 15%,
            100% 85%,
            95% 100%,
            5% 100%,
            0 85%);
    transition: var(--transition-normal);
}

.portfolio-card:hover .portfolio-card__border {
    border-color: var(--color-blue);
    box-shadow: 0 0 20px rgba(5, 218, 232, 0.3);
}

.portfolio-card__content {
    position: absolute;
    inset: 8px;
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 15%,
            5% 0,
            95% 0,
            100% 15%,
            100% 85%,
            95% 100%,
            5% 100%,
            0 85%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    background-color: rgba(47, 46, 45, 0.5);
}

.portfolio-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: var(--transition-slow);
}

.portfolio-card:hover .portfolio-card__image {
    transform: scale(1.05);
}

.portfolio-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(47, 46, 45, 0.9) 0%,
            rgba(47, 46, 45, 0.3) 50%,
            transparent 100%);
    z-index: 0;
}

.portfolio-card__info {
    position: relative;
    z-index: 1;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-card:hover .portfolio-card__info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-card__title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--color-yellow);
    margin-bottom: var(--space-xs);
}

.portfolio-card__client {
    font-size: 0.75rem;
    color: var(--color-gray);
    opacity: 0.8;
}

.portfolio-card__category {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-yellow);
    background: rgba(47, 46, 45, 0.8);
    padding: 4px 8px;
    border: 1px solid var(--color-yellow);
    z-index: 1;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.contact__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-xxl) var(--space-lg);
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact__title {
    margin-bottom: var(--space-sm);
}

.contact__subtitle {
    font-style: italic;
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
}

.contact__socials {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.contact__social-link {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition-normal);
}

.contact__social-link:hover {
    transform: translateY(-4px) scale(1.1);
}

.contact__social-link svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Geometric Shapes */
.contact__shapes {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1;
    overflow: hidden;
}

.contact__shape {
    width: 200px;
    height: 200px;
    background-color: var(--color-red);
    transform: rotate(45deg);
    position: absolute;
    border: 4px solid var(--color-blue);
}

.contact__shape:nth-child(1) {
    left: -5%;
    bottom: -100px;
}

.contact__shape:nth-child(2) {
    left: 15%;
    bottom: -60px;
}

.contact__shape:nth-child(3) {
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    bottom: -20px;
}

.contact__shape:nth-child(4) {
    right: 15%;
    bottom: -60px;
}

.contact__shape:nth-child(5) {
    right: -5%;
    bottom: -100px;
}

@media (max-width: 768px) {
    .contact__shape {
        width: 120px;
        height: 120px;
    }
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.services {
    min-height: 100vh;
    padding: var(--space-xxl) var(--space-xl);
}

.services__header {
    text-align: center;
    padding-top: var(--space-xl);
    margin-bottom: var(--space-xxl);
}

.services__title {
    margin-bottom: var(--space-sm);
}

.services__subtitle {
    font-style: italic;
    font-size: 1.25rem;
    opacity: 0.9;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    padding: var(--space-lg);
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.service-card__description-left {
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.9;
    text-align: start;
}

.service-card__description-center {
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.9;
    text-align: center;
}

.service-card__description-right {
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.9;
    text-align: end;
}

.service-card__price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-top: var(--space-md);
    color: var(--color-yellow);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.color-red {
    color: var(--color-red);
}

.color-blue {
    color: var(--color-blue);
}

.color-yellow {
    color: var(--color-yellow);
}

.color-black {
    color: var(--color-black);
}

.color-gray {
    color: var(--color-gray);
}

.bg-red {
    background-color: var(--color-red);
}

.bg-blue {
    background-color: var(--color-blue);
}

.bg-yellow {
    background-color: var(--color-yellow);
}

.bg-black {
    background-color: var(--color-black);
}

.bg-gray {
    background-color: var(--color-gray);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav {
        padding: var(--space-md);
    }

    .nav__link {
        font-size: 0.875rem;
    }

    .nav__logo img {
        height: 30px;
    }

    .landing {
        padding: var(--space-xl) var(--space-md);
    }

    .portfolio {
        padding: var(--space-xl) var(--space-md);
    }

    .services {
        padding: var(--space-xl) var(--space-md);
    }
}