
:root {
    --bordo: #5b1a26;
    --bordo-dark: #3a1018;
    --beige: #f3e4d4;
    --beige-soft: #f8eee3;
    --text-main: #2b2220;
    --text-muted: #6b5a55;
    --white: #ffffff;
}

/* RESET */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body {
    background: var(--beige-soft);
    color: var(--text-main);
    line-height: 1.6;
}

/* HERO */

.hero {
    background: linear-gradient(135deg, var(--bordo-dark), var(--bordo));
    color: var(--beige);
    padding: 60px 10% 40px;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero p {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
    margin: 10px 0 25px;
}

/* NAV */

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-and-insta {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}

.lang-switch {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.fixed-lang-switch {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--beige);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.lang-btn.active,
.lang-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

nav {
    display: flex;
    gap: 18px;
}

nav a {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--beige);
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
}

nav a:hover {
    border-color: var(--beige);
}

/* INSTAGRAM */

.insta-inline img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.insta-inline img:hover {
    transform: scale(1.1);
}

/* SECTIONS */

.section {
    padding: 50px 10%;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section h2 {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 18px;
    color: var(--bordo-dark);
}

.section p {
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 500;
}

.section-intro {
    max-width: 600px;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* LAYOUT */

.two-col {
    display: grid;
    grid-template-columns: 2fr 1.3fr;
    gap: 40px;
}

@media (max-width: 800px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

/* PROFILE */

.profile-card {
    background: var(--beige);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(91, 26, 38, 0.15);
}

.profile-label {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* GRID */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.grid.gallery-3col {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--beige);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(91, 26, 38, 0.18);
    display: flex;
    flex-direction: column;
    transition: 0.2s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.grid.gallery-3col .card-image {
    aspect-ratio: 3 / 4;
}

.card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ddd;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 16px 18px;
}

.card-body h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FOTO */

.foto-wrapper {
    display: inline-block;
    background: var(--beige);
    padding: 12px;
    border: 4px solid var(--bordo);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.mana-bilde {
    width: 100%;
    max-width: 450px;
    height: 500px;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.3);
}

.foto-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* LIGHTBOX */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(6px);
}

.lightbox img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: zoomIn 0.25s ease;
    
}

/* FOOTER */

.footer {
    padding: 20px 10%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(91, 26, 38, 0.2);
}

/* ANIMATIONS */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
/* BUTTON */

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;

    width: 50px;
    height: 50px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: var(--beige);
    border: 3px solid var(--bordo);
    border-radius: 14px;

    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);

    transition: 0.25s ease;
}

.back-btn:hover {
    background: var(--bordo);
    border-color: var(--beige);
    transform: translateX(-4px);
}

.back-btn .arrow {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bordo);
}

.back-btn:hover .arrow {
    color: var(--beige);
}

/* =========================================
   GIF LAPAS STILS — centrēti GIFi ar bordo rāmi
========================================= */

.gif-page .single-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.center-title {
    text-align: center;
}

.gif-page .gif-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 720px;
    border: 3px solid var(--bordo);
    border-radius: 16px;
    padding: 18px;
    background: var(--white);
}

.gif-page .gif-item img {
    width: auto;          /* saglabā oriģinālo izmēru */
    height: auto;
    max-width: 100%;     /* attēls iekļaujas rāmi */
    max-height: 550px;    /* vēl mazāki, bet proporcija saglabāta */
    border-radius: 12px;  /* noapaļoti stūri attēlam */
    border: none;
}

.gif-page .gif-item p {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

/* =========================================
   DEKUPĀŽAS LAPAS STILS — viena kolonna
========================================= */

.deko-page .single-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.center-title {
    text-align: center;
}

.deko-page .deko-item img {
    width: 100%;
    max-width: 500px;     /* attēlu izmērs */
    border-radius: 12px;  /* viegli noapaļoti stūri */
    border: 3px solid var(--bordo); /* bordo rāmis */
    box-shadow: 0 10px 25px rgba(0,0,0,0.18); /* viegla ēna */
}

/* =========================================
   PHOTOSHOP / ILLUSTRATOR LAPAS STILS
========================================= */

.ps-page .single-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.ps-page .ps-item img {
    width: 100%;
    max-width: 600px;        /* attēlu izmērs */
    border-radius: 12px;     /* noapaļoti stūri */
    border: 3px solid var(--bordo); /* bordo rāmis */
    box-shadow: 0 10px 25px rgba(0,0,0,0.18); /* viegla ēna */
}

/* =========================================
   GLITCH ART LAPAS STILS
========================================= */

.Glitch-page .single-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.Glitch-page .Glitch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 450px;
    border: 2px solid var(--bordo);
    border-radius: 12px;
    padding: 14px;
    background: var(--white);
}

.Glitch-page .Glitch-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 350px;
    border-radius: 8px;
    border: none;
}

.Glitch-page .Glitch-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

a:hover,
a:active {
    color: inherit;
    text-decoration: none;
}
