/* ===================================
   CSS Custom Properties / Variables
   =================================== */
:root {
    --color-primary: #DD6257;
    --color-accent: #38A1C1;
    --color-text: #333333;
    --color-background: #F9F8E6;
    --color-white: #FFFFFF;
    --color-light-gray: #f5f5f5;

    --font-main: "dreaming-outloud-sans", sans-serif;
    --font-accent: "dreaming-outloud-script", sans-serif;

    --padding-horizontal: 2rem;
    --padding-vertical: 3rem;
    --max-width: 1200px;

    --transition: all 0.3s ease;
}

/* ===================================
   Adobe Typekit Fonts - Dreaming Outloud
   =================================== */
/*
   Font Family Variations:
   - dreaming-outloud-sans: Body text (normal)
   - dreaming-outloud-script: Headers (normal)
   - dreaming-outloud-scriptslant: Italic variation
*/

/* Configure italic variation */
em,
i:not([class*="fa-"]),
.italic {
    font-family: "dreaming-outloud-scriptslant", sans-serif;
    font-style: normal;
    /* Already slanted by design */
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-accent);
}

a:hover {
    color: var(--color-primary);
}

/* ===================================
   Loading Overlay
   =================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.ascii-loader {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    color: var(--color-primary);
    font-weight: bold;
}

/* ===================================
   Main Wrapper
   =================================== */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===================================
   Container Component
   =================================== */
.container-component {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-horizontal);
}

/* ===================================
   Typography Components
   =================================== */
h1 {
    font-family: var(--font-accent);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    color: var(--color-primary);
}

h2 {
    font-family: var(--font-main);
    font-size: 2.5rem;
    text-transform: lowercase;
}

h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* ===================================
   Sidebar Navigation (Desktop)
   =================================== */
.sidebar {
    position: sticky;
    top: 0;
    width: 200px;
    height: 100vh;
    flex-shrink: 0;
    background-color: var(--color-background);
    border-right: 1px solid rgba(221, 98, 87, 0.2);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 3rem;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

/* Sidebar Logo */
.sidebar-logo {
    text-align: center;
    margin-bottom: 3rem;
}

.sidebar-logo a {
    display: inline-block;
}

.sidebar-logo img {
    width: 80px;
    height: auto;
    transition: var(--transition);
}

.sidebar-logo a:hover img {
    transform: scale(1.05);
}

/* Sidebar Navigation Links */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
}

.sidebar-link {
    text-decoration: none;
    color: var(--color-primary);
    font-size: 1.2rem;
    font-family: var(--font-main);
    font-weight: 400;
    transition: var(--transition);
    text-align: center;
    padding: 0.5rem 0;
}

.sidebar-link:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

/* Sidebar Social Icons */
.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.sidebar-social a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-social i {
    font-size: 1.3rem;
    color: var(--color-primary);
    transition: var(--transition);
}

.sidebar-social a:hover i {
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* Sidebar Close Button (Hidden on Desktop) */
.sidebar-close {
    display: none;
}

/* Hamburger Button (Hidden on Desktop) */
.hamburger-btn {
    display: none;
}

/* Sidebar Overlay (Hidden on Desktop) */
.sidebar-overlay {
    display: none;
}

/* Main Content Area */
.main-content {
    flex: 1;
    min-width: 0;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    padding: var(--padding-vertical) 0;
    text-align: center;
}

.logo-component {
    margin-bottom: 0.5rem;
}

.logo-component img {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ===================================
   Divider Component
   =================================== */
.divider-component {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1rem;
    display: flex;
    justify-content: center;
}

.divider-component img,
.divider-component svg {
    width: 100%;
    height: auto;
    display: block;
}

.star-divider {
    max-width: 80px;
    height: auto;
}

.star-divider svg {
    width: 100%;
    height: auto;
}

/* ===================================
   Navigation
   =================================== */
.navigation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0 0 1.5rem;
    flex-wrap: wrap;
}

.navigation a {
    text-decoration: none;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-family: var(--font-main);
    font-weight: 400;
    transition: var(--transition);
}

.navigation a:hover {
    color: var(--color-primary);
}

/* ===================================
   Social Icons Component
   =================================== */
.icons-component {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0;
}

.icons-component a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icons-component i {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: var(--transition);
}


/* ===================================
   Section Component
   =================================== */
.section-component {
    padding: var(--padding-vertical) 0;
    margin: 2rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.text-component {
    text-align: justify;
    text-align-last: center;
}

.text-component p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* ===================================
   Buttons Component
   =================================== */
.buttons-component {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.button-primary,
.button-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    text-transform: lowercase;
    cursor: pointer;
}

.button-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.button-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(221, 98, 87, 0.3);
}

.button-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.button-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(221, 98, 87, 0.3);
}

/* ===================================
   Gallery Component
   =================================== */
.gallery-section {
    margin: 4rem 0;
}

.gallery-title {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-component {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Image Component
   =================================== */
.image-component {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-component img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--color-light-gray) 0%, var(--color-background) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px dashed rgba(221, 98, 87, 0.3);
}

/* ===================================
   Footer Component
   =================================== */
.footer-component {
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 2px solid rgba(221, 98, 87, 0.2);
}

.footer-text {
    text-align: center;
}

.footer-text p {
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.7;
    margin: 0.5rem 0;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet and Mobile - Hamburger Menu */
@media (max-width: 1024px) {

    /* Change wrapper to block layout on mobile */
    .wrapper {
        display: block;
    }

    /* Hide sidebar by default on mobile */
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        width: 250px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    /* Show sidebar when open */
    .sidebar.open {
        transform: translateX(0);
    }

    /* Show hamburger button */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        position: fixed;
        top: 1.5rem;
        left: 1.5rem;
        width: 40px;
        height: 40px;
        background-color: transparent;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        z-index: 1001;
        padding: 8px;
        transition: var(--transition);
    }

    .hamburger-btn:hover span {
        background-color: var(--color-accent);
    }

    .hamburger-btn span {
        width: 100%;
        height: 3px;
        background-color: var(--color-primary);
        border-radius: 2px;
        transition: var(--transition);
    }

    /* Hamburger animation when open */
    .hamburger-btn.open span {
        background-color: var(--color-accent);
    }

    .hamburger-btn.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Show close button in sidebar */
    .sidebar-close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--color-primary);
        cursor: pointer;
        transition: var(--transition);
    }

    .sidebar-close:hover {
        color: var(--color-text);
        transform: rotate(90deg);
    }

    /* Show overlay when sidebar is open */
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* General responsive styles */
    html {
        font-size: 16px;
    }

    :root {
        --padding-horizontal: 2rem;
    }

    .logo-component img {
        max-width: 350px;
    }

    .gallery-component {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    /* Designs section */
    .designs-swiper {
        padding: 2rem 2rem 2.5rem;
    }

    .design-item {
        width: clamp(280px, 45vw, 380px);
    }

    #designsSlides {
        gap: clamp(1.25rem, 3vw, 1.75rem);
    }
}

/* Large Desktop (1920px) */
@media (max-width: 1920px) {
    :root {
        --padding-horizontal: 3rem;
    }
}

/* Desktop (1680px) */
@media (max-width: 1680px) {
    :root {
        --padding-horizontal: 2.5rem;
    }
}

/* Laptop (1280px) */
@media (max-width: 1280px) {
    html {
        font-size: 17px;
    }

    h1 {
        font-size: 3.2rem;
    }
}

/* Tablet Portrait (980px) */
@media (max-width: 980px) {
    .navigation {
        gap: 1.5rem;
    }
}

/* Mobile Landscape (736px) */
@media (max-width: 736px) {
    html {
        font-size: 15px;
    }

    :root {
        --padding-horizontal: 1.5rem;
        --padding-vertical: 2rem;
    }

    .logo-component img {
        max-width: 300px;
    }

    h2 {
        font-size: 2rem;
    }

    .navigation {
        gap: 1.5rem;
    }

    .gallery-component {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile Portrait (480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    :root {
        --padding-horizontal: 1rem;
    }

    .logo-component img {
        max-width: 250px;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .icons-component {
        gap: 1rem;
    }

    .icons-component a {
        width: 35px;
        height: 35px;
    }
}

/* Small Mobile (360px) */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }

    .logo-component img {
        max-width: 200px;
    }

    .button-primary,
    .button-secondary {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   About Section Layout
   =================================== */
#about {
    margin-top: 1rem;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: stretch;
    margin: 2rem 0;
}

.about-image {
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.about-image img {
    width: 280px;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1;
    text-align: justify;
    text-align-last: left;
}

.about-text h3 {
    margin-bottom: 0rem;
    padding-right: 3rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
    padding-right: 10rem;
}

.light-text {
    font-size: 0.9em;
}

/* Responsive layout for about section */
@media (max-width: 736px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .about-image {
        justify-content: center;
    }

    .about-image img {
        width: 200px;
        height: auto;
        object-fit: contain;
    }

    .about-text {
        text-align: justify;
        text-align-last: center;
    }

    .about-text h3,
    .about-text p {
        padding-right: 0;
    }
}

/* ===================================
   Designs Section - Horizontal Scroll
   =================================== */
.designs-swiper {
    width: 100%;
    max-width: 1400px;
    margin: 3rem auto;
    padding: 2.5rem 3.5rem 2rem;
    position: relative;
    background-color: var(--color-background);
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    user-select: none;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) rgba(221, 98, 87, 0.1);
    transform: scaleY(-1);
}

.designs-swiper:active {
    cursor: grabbing;
}

#designsSlides {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2rem);
    width: max-content;
    transform: scaleY(-1);
}

.design-item {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-shrink: 0;
    width: clamp(280px, 28vw, 400px);
}

.design-item .twitter-tweet {
    width: 100% !important;
    max-width: 100% !important;
}

/* Custom Scrollbar Styling */
.designs-swiper::-webkit-scrollbar {
    height: 8px;
}

.designs-swiper::-webkit-scrollbar-track {
    background: rgba(221, 98, 87, 0.1);
    border-radius: 10px;
}

.designs-swiper::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 10px;
    transition: var(--transition);
}

.designs-swiper::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ===================================
   Design Galleries
   =================================== */
.design-subsection {
    margin: 3rem 0;
}

.design-subsection h3 {
    font-family: var(--font-main);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-transform: lowercase;
}

.design-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.design-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.design-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Mobile responsive */
@media (max-width: 736px) {
    .designs-swiper {
        padding: 2rem 1rem 1.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .designs-swiper::-webkit-scrollbar {
        height: 6px;
    }

    .design-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .design-subsection {
        margin: 2rem 0;
    }

    .design-subsection h3 {
        font-size: 1.5rem;
    }

    .design-item {
        width: clamp(260px, 80vw, 340px);
    }

    #designsSlides {
        gap: clamp(1rem, 4vw, 1.5rem);
    }
}

/* ===================================
   Wishlists Section
   =================================== */
.wishlist-group {
    margin: 4rem 0;
}

.wishlist-group-title {
    font-family: var(--font-main);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-transform: lowercase;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.wishlist-group-title:hover {
    color: var(--color-accent);
}

.dropdown-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.wishlist-group-title.active .dropdown-arrow {
    transform: rotate(180deg);
}

.wishlist-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.wishlist-content.active {
    max-height: 10000px;
}

.wishlist-album {
    margin: 3rem 0;
}

.wishlist-album h4 {
    font-family: var(--font-main);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    text-transform: lowercase;
}

.wishlist-album h4 a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

.wishlist-album h4 a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.wishlist-album .design-gallery {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) {
    .wishlist-album .design-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 736px) {
    .wishlist-album .design-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   Lightbox
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--color-accent);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}


/* ===================================
   Smooth Animations
   =================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}