/*
Theme Name: Borstein Premium
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------*/
:root {
    /* Colors */
    --background: #1a1a1a;
    --surface: #252525;
    --primary: #f4ba5d;
    --primary-hover: #dca34a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --white: #ffffff;
    --black: #000000;

    /* Typography - Fluid Scale */
    --font-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-sm: clamp(0.875rem, 0.83rem + 0.22vw, 1rem);
    --font-md: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --font-xl: clamp(1.75rem, 1.6rem + 0.75vw, 2.5rem);
    --font-xxl: clamp(2.5rem, 2.1rem + 2vw, 5.3125rem);

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --spacing-xl: 7.5rem;
}

html {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background-color: var(--background);
    font-weight: 400;
    font-style: normal;
    color: var(--text-main);
    font-size: var(--font-sm);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a, a:hover, a:focus, i, input, button, input:focus, .transition {
    text-decoration: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a { color: var(--text-main); }
a:hover { color: var(--primary); }

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

ul { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', serif;
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

/*-----------------------------------------------------------------
  1. >>> Header Style
----------------------------------------------------------------*/
.ds-header {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    position: relative;
    z-index: 100;
}

.ds-logo a {
    display: inline-block;
    background-color: var(--primary);
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.5rem 1rem;
    color: var(--black);
    letter-spacing: 1px;
    border-radius: 2px;
}

.ds-logo a:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 186, 93, 0.3);
}

/*-----------------------------------------------------------------
  2. >>> Banner Style
----------------------------------------------------------------*/
.ds-banner {
    margin-bottom: var(--spacing-xl);
}

.ds-banner-hed {
    font-size: var(--font-xxl);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.ds-image-shadow {
    box-shadow: 20px 20px 0 var(--primary);
    border-radius: 4px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ds-banner:hover .ds-image-shadow {
    transform: translate(-5px, -5px);
    box-shadow: 25px 25px 0 var(--primary);
}

.ds-social {
    display: flex;
    align-items: center;
    margin-top: var(--spacing-md);
    gap: 1rem;
}

.ds-social a {
    width: 45px;
    height: 45px;
    background-color: transparent;
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: var(--primary);
}

.ds-social a:hover {
    background-color: var(--primary);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(244, 186, 93, 0.2);
}

.ds-banner figure {
    width: 100%;
    max-width: 400px;
    position: relative;
    margin-left: auto;
}

.ds-banner figure figcaption {
    color: var(--text-muted);
    font-size: var(--font-sm);
    position: absolute;
    bottom: -3rem;
    right: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/*-----------------------------------------------------------------
  3. >>> Resume Style
----------------------------------------------------------------*/
.ds-resume-section {
    background-color: var(--black);
    padding: var(--spacing-xl) 0;
}

.ds-resume-section h2 {
    font-size: var(--font-xl);
    line-height: 1.3;
    max-width: 90%;
    color: var(--white);
}

.ds-resume-section p {
    color: var(--text-muted);
    font-size: var(--font-md);
    margin-bottom: var(--spacing-md);
}

.ds-download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    border: 1px solid var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 1rem 2rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ds-download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.ds-download-button:hover {
    color: var(--black);
}

.ds-download-button:hover::before {
    width: 100%;
}

/*-----------------------------------------------------------------
  4. >>> Projects Style
----------------------------------------------------------------*/
.ds-projects-section {
    padding: var(--spacing-xl) 0;
}

.ds-projects-section h2 {
    font-size: var(--font-xl);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.ds-projects-section h2 span {
    display: block;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.ds-projects-listing-section {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem 0;
}

/* Project Card */
.ds-projects-loop {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.ds-projects-loop figure {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.ds-projects-loop figure img {
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
    width: 100%;
    display: block;
}

.ds-projects-loop:hover figure img {
    transform: scale(1.05);
}

.ds-projects-loop section {
    position: relative;
}

.ds-projects-loop section h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: var(--font-lg);
    margin-bottom: 0.5rem;
    color: var(--white);
    transition: color 0.3s;
}

.ds-projects-loop:hover section h3 {
    color: var(--primary);
}

.ds-projects-loop section span {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Link Button within Card */
.ds-link-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--background);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.ds-projects-loop:hover .ds-link-button {
    opacity: 1;
    transform: translateY(0);
}

.ds-link-button:hover {
    background-color: var(--primary);
    color: var(--black);
}

/*-----------------------------------------------------------------
  5. >>> Testimonials Style (Hidden but Styled)
----------------------------------------------------------------*/
.ds-testimonials-section {
    background-color: var(--black);
    padding: var(--spacing-xl) 0;
}

/*-----------------------------------------------------------------
  6. >>> Email Style
----------------------------------------------------------------*/
.ds-email-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary);
    text-align: center;
    color: var(--black);
}

.ds-email-section h2 {
    font-size: var(--font-xl);
    margin-bottom: var(--spacing-md);
    color: var(--black);
}

.ds-email-section a {
    font-size: 2rem;
    color: var(--black);
    display: inline-block;
    transition: transform 0.3s;
}

.ds-email-section a:hover {
    transform: scale(1.2);
}

/*-----------------------------------------------------------------
  7. >>> Footer Style
----------------------------------------------------------------*/
.ds-footer {
    padding: var(--spacing-md) 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid #333;
    margin-top: var(--spacing-lg);
}

/*-----------------------------------------------------------------
  Media Queries
----------------------------------------------------------------*/
@media (max-width: 991px) {
    .ds-header { padding-bottom: 3rem; }
    .ds-banner figure { margin: 2rem auto 0; max-width: 80%; }
    .ds-banner-hed { text-align: center; }
    .ds-banner-left { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .ds-resume-section h2 { max-width: 100%; margin-bottom: 2rem; }
}

@media (max-width: 767px) {
    :root {
        --spacing-lg: 4rem;
        --spacing-xl: 5rem;
    }
    .ds-projects-loop { margin-bottom: 3rem; }
}
