/* ============================================================================
   SHARED STYLES - Used across all main pages (index, contact, virtual-business-card, services)
   ============================================================================ */

/* ===== CLARITY CITY FONT ===== */
/* Loaded from jsDelivr CDN (VMware @clr/city). Headings and body use this font. */
@font-face {
    font-family: 'Clarity City';
    src: url('https://cdn.jsdelivr.net/npm/@clr/city@1.1.0/Webfonts/WOFF2/ClarityCity-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Clarity City';
    src: url('https://cdn.jsdelivr.net/npm/@clr/city@1.1.0/Webfonts/WOFF2/ClarityCity-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Clarity City';
    src: url('https://cdn.jsdelivr.net/npm/@clr/city@1.1.0/Webfonts/WOFF2/ClarityCity-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Clarity City';
    src: url('https://cdn.jsdelivr.net/npm/@clr/city@1.1.0/Webfonts/WOFF2/ClarityCity-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Clarity City';
    src: url('https://cdn.jsdelivr.net/npm/@clr/city@1.1.0/Webfonts/WOFF2/ClarityCity-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #ED2000;
    --secondary-color: #342C2B;
    --tertiary-color: #FF6E4A;
    --text-dark: #1A0300;
    --text-medium: #5C4F4D;
    --text-light: #718096;
    --background-light: #F7FAFC;
    --white: #FFFFFF;
    --gray-100: #F7FAFC;
    --gray-200: #EDF2F7;
    --gray-300: #E2E8F0;
    --gray-400: #CBD5E0;
    --max-width: 1200px;
    --padding-mobile: 20px;
    --hero-card-padding: 3rem;
    --hero-content-gap: 0.5rem;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    font-family: 'Clarity City', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-light);
    color: var(--text-medium);
    line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Clarity City', sans-serif;
    line-height: 3rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Clarity City', sans-serif;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    font-family: 'Clarity City', sans-serif;
}

/* Contact and services pages use slightly smaller h3 */
.contact-page h3,
.services-page h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* ===== LAYOUT CONTAINER ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-mobile);
}

.hero .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: left;
    margin-bottom: 0.5rem;
}

h1.section-title, h2.section-title {
    margin-bottom: 0.25rem;
}

.section-subtitle {
    text-align: left;
    margin-bottom: 2rem;
}

/* ===== HEADER ===== */
.header {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    height: 30px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-medium);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hamburger menu - hidden on desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-medium);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger-open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay - slide from left */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    padding: 5rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-mobile-open {
    transform: translateX(0);
}

.nav-mobile a {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 1.125rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.nav-mobile a:hover {
    color: var(--primary-color);
}

body.menu-open {
    overflow: hidden;
}

.nav-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 98;
}

body.menu-open .nav-mobile-overlay {
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    height: 30px;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

/* ===== CTA SECTION ===== */
.cta {
    background-color: var(--background-light);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

/* AI Section - two-column layout, similar look to CTA */
.ai-section {
    text-align: left;
    background-color: var(--gray-200);
}

.ai-section-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.ai-section-image {
    flex: 0 0 22.5%;
    min-width: 0;
}

.ai-section-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.ai-section-content {
    flex: 1;
    min-width: 0;
}

.ai-section-content h2 {
    margin-bottom: 1rem;
}

.ai-section-content p {
    margin-bottom: 1.5rem;
}

.ai-section-content .view-portfolio-btn {
    width: auto;
    display: inline-block;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-btn {
    padding: 1rem 2rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cta-btn.primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.cta-btn.primary:hover {
    background-color: #C53030;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* ============================================================================
   SHARED HERO & BUTTONS - Used by index, contact, virtual-business-card
   ============================================================================ */

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 4rem 0;
    background-repeat: repeat;
    background-size: 80px 80px;
    animation: bgMoveUpDiagonal 4s linear infinite;
}

/* Virtual-business-card page hero variations */
.virtual-business-card-page .hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

/* Hero background image - default for root level pages */
.hero {
    background-image: url('images/pattern-herobg.svg');
}

/* Services page is in subdirectory, needs different path */
.services-page .hero {
    background-image: url('../images/pattern-herobg.svg');
}

@keyframes bgMoveUpDiagonal {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -160px -160px;
    }
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
    background:
        linear-gradient(to bottom,rgba(0,0,0,0.14) 0%, rgba(0,0,0,0) 10%),
        linear-gradient(to top,   rgba(0,0,0,0.14) 0%, rgba(0,0,0,0) 10%);
}

.hero-card {
    position: relative;
    z-index: 2;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: var(--hero-card-padding) var(--hero-card-padding) var(--hero-card-padding) 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideIn 1s ease-out forwards;
}

/* Index page: stretch children so image can fill height top-to-bottom, no gap on desktop */
.index-page .hero-card {
    align-items: stretch;
    gap: 0;
}

/* Contact page hero-card variations */
.contact-page .hero-card,
.contact-hero-card {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
    gap: 0;
}

/* Virtual-business-card page hero-card variations */
.virtual-business-card-page .hero-card {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: auto;
    padding: 2rem;
    gap: 2rem;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image-wrapper {
    margin: 0;
}

/* Index page: responsive hero image - shrinks on smaller viewports, fills height top-to-bottom */
.index-page .hero-image-wrapper {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(500px, 45%);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.index-page .hero-image {
    flex: 1;
    min-height: 0;
    display: flex;
}

.index-page .hero-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.hero-image {
    width: 100%;
    margin: calc(var(--hero-card-padding) * -1) 0 calc(var(--hero-card-padding) * -1) calc(var(--hero-card-padding) * -1);
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background-color: var(--gray-300);
    margin: 0;
    padding: 0;
    border: none;
    display: block;
}

/* Contact page and contact-hero-card: same image treatment as index page */
.contact-page .hero-image-wrapper,
.contact-hero-card .hero-image-wrapper {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(500px, 45%);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.contact-page .hero-image,
.contact-hero-card .hero-image {
    flex: 1;
    min-height: 0;
    display: flex;
}

.contact-page .hero-image img,
.contact-hero-card .hero-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* Virtual-business-card page hero-image variations */
.virtual-business-card-page .hero-image img {
    display: block;
    max-width: 200px;
    object-fit: contain;
    align-items: center;
    background-color: var(--gray-300);
    margin: auto;
    padding-top: 1rem;
    border: none;
}

.hero-content {
    min-width: 40px;
}

/* Contact page hero-content */
.contact-page .hero-content {
    min-width: 40px;
}

/* Virtual-business-card page hero-content */
.virtual-business-card-page .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
    margin-top: -0.7rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hero-description {
    margin-bottom: var(--hero-content-gap);
}

/* Contact and virtual-business-card pages use 2rem margin */
.contact-page .hero-description,
.virtual-business-card-page .hero-description {
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== BUTTONS ===== */
.view-portfolio-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 0;
}

.view-portfolio-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.download-contact-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 0;
}

.download-contact-btn:hover {
    background-color: #C53030;
    transform: translateY(-2px);
}

.contact-buttons {
    display: flex;
    gap: 1rem;
}

/* Index page contact-buttons has height: 100% */
.index-page .contact-buttons {
    height: 100%;
}

.contact-btn {
    flex: 1;
    padding: 0.6rem 0.5rem;
    border: 2px solid var(--tertiary-color);
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--text-medium);
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Contact page and virtual-business-card use gray border instead of tertiary */
/* Default is tertiary (for index), override for contact/virtual-business-card pages */
.contact-page .contact-btn:not(.email),
.virtual-business-card-page .contact-btn:not(.email) {
    border: 2px solid var(--gray-300);
}

.contact-btn img {
    height: 32px;
}

.contact-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

a.contact-btn:has(img[src*="icon-contact.svg"]) {
    border-color: #717171;
}

a.contact-btn:has(img[src*="icon-contact.svg"]):hover {
    border-color: #5a5a5a;
}

a.contact-btn[href*="linkedin"] {
    border-color: #0072B1;
}

a.contact-btn[href*="linkedin"]:hover {
    border-color: #005a8f;
}

a.contact-btn[href*="instagram"] {
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) border-box;
}

a.contact-btn[href*="instagram"]:hover {
    background: linear-gradient(var(--white), var(--white)) padding-box,
                linear-gradient(45deg, #e0852a, #d45a30, #c9223a, #b91f5c, #a8157a) border-box;
}

.contact-btn.email {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.contact-btn.email:hover {
    background-color: #C53030;
}

/* ============================================================================
   GALLERY & MODAL - Used by index and contact pages
   ============================================================================ */

/* ===== GALLERY STYLES ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 400px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.gallery-item.visible {
    animation: fadeInUp 0.6s forwards;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item-image {
    width: 100%;
    height: 250px;
    background-color: var(--gray-300);
    flex-shrink: 0;
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-item-title {
    margin-bottom: 0.5rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.gallery-item-description {
    color: var(--text-light);
    font-size: 0.9rem;
    flex: 1;
}

.highlight-projects {
    background-color: var(--background-light);
}

.projects-gallery {
    background-color: var(--white);
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 800px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gray-200);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.modal-image {
    width: 100%;
    height: auto;
    background-color: var(--gray-300);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.modal-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    display: block;
}

.modal-title {
    margin-bottom: 1rem;
}

.modal-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================================================
   INDEX.HTML SPECIFIC STYLES
   ============================================================================ */

.experience {
    background-color: var(--white);
}

.experience-columns {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experience-content {
    max-width: 800px;
    margin: 0 auto;
}

.experience-summary {
    max-width: 800px;
    margin: 0 auto;
}

.experience-summary-lead {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    font-family: 'Clarity City', sans-serif;
}

.experience-summary-body {
    font-size: 1rem;
    color: var(--text-medium);
}

.experience-quote {
    color: var(--text-light);
}

/* ============================================================================
   CONTACT.HTML SPECIFIC STYLES
   ============================================================================ */

label {
    font-size: 1rem;
}

#contact-form .view-portfolio-btn {
    margin-bottom: 1rem;
}

input[type="checkbox"]:checked {
    accent-color: var(--primary-color);
}

.name-inputs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.name-inputs input {
    flex: 1 1 100%;
}

@media (min-width: 481px) {
    .name-inputs input {
        flex: 1 1 45%;
    }
}

/* ============================================================================
   VIRTUAL-BUSINESS-CARD.HTML SPECIFIC STYLES
   ============================================================================ */

/* Note: Virtual business card uses most shared styles. 
   Unique styles are handled via inline styles or minimal overrides. */

/* ============================================================================
   SERVICES.HTML SPECIFIC STYLES
   ============================================================================ */

.divider-line {
    margin-top: 0px;
    margin-bottom: 1rem;
    border: none;
    border-top: 1px solid var(--gray-300);
}

.hero-card-services {
    position: relative;
    z-index: 2;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: var(--hero-card-padding) var(--hero-card-padding) var(--hero-card-padding) 0;
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideIn 1s ease-out forwards;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

/* Services hero: same image treatment as index/contact */
.hero-card-services .hero-image-wrapper {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(500px, 45%);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hero-card-services .hero-image {
    flex: 1;
    min-height: 0;
    display: flex;
    margin: calc(var(--hero-card-padding) * -1) 0 calc(var(--hero-card-padding) * -1) calc(var(--hero-card-padding) * -1);
}

.hero-card-services .hero-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background-color: var(--gray-300);
    margin: 0;
    padding: 0;
    border: none;
    display: block;
}

.hero-card-services .hero-content {
    background-color: var(--white);
}

.hero-card-services .hero-description {
    margin-bottom: 1rem;
}

.hero-card-services .hero-actions {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 1rem;
}

.hero-card-services .hero-actions .view-portfolio-btn,
.hero-card-services .hero-actions .contact-btn {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
}

.experience {
    background-color: var(--white);
}

.offer {
    background-color: var(--white);
}

.experience-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.price-text {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--text-medium);
    margin-bottom: 0;
    font-size: 2rem;
    line-height: 1.5rem;
}

.price-subtitle {
    font-size: 14px;
    margin-bottom: 1rem;
    margin-top: 0.75rem;
    line-height: 1rem;
}

.package-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 250px;
}

.service-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 250px;
}

.package-card li,
.service-card li {
    list-style: none;
    position: relative;
    padding-left: 1.8rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.package-card li::before,
.service-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    background-image: url('websites/images/icon-list-check.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.offer-box {
    flex: 1;
    min-width: 250px;
    background: var(--background-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.package-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.offer-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.numbered-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.numbered-section .container {
    padding: 0;
}

.section-footer-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 2rem;
}

.numbered-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.step-content h3 {
    margin: 0;
    font-weight: 700;
    color: var(--text-dark);
}

.step-content p {
    margin-top: 0.5rem;
    color: var(--text-medium);
}

.numbered-step a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

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

.services .contact-btn {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 0;
}

/* ============================================================================
   RESPONSIVE DESIGN - Shared across all pages
   ============================================================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 var(--padding-mobile);
    }

    .hamburger {
        display: flex;
        order: 1;
    }

    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: flex;
    }

    .nav {
        gap: 1rem;
    }

    .hero {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .index-page .hero-card,
    .contact-page .hero-card,
    .contact-hero-card {
        gap: var(--hero-card-padding);
    }

    .hero-card-services {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: var(--hero-card-padding);
    }

    .hero-image-wrapper {
        margin-left: -1rem;
        margin-right: -1rem;
        margin-top: -1rem;
        width: calc(100% + 2rem);
        max-width: none;
        display: flex;
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        margin: 0 auto;
    }

    .hero-image img {
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: auto;
        display: block;
        margin: 0 auto;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    /* Index page hero: width fills edge-to-edge, no stretching, container expands for full height */
    .index-page .hero-image-wrapper {
        width: calc(100% + 2rem);
        max-width: none;
        align-self: auto;
        flex: none;
        min-height: 0;
        height: auto;
    }

    .index-page .hero-image {
        flex: none;
        min-height: 0;
        height: auto;
    }

    .index-page .hero-image img {
        width: 100%;
        height: auto;
        max-width: none;
        aspect-ratio: auto;
        object-fit: contain;
        object-position: center;
    }

    /* Contact page and contact-hero-card: same responsive treatment as index */
    .contact-page .hero-image-wrapper,
    .contact-hero-card .hero-image-wrapper {
        width: calc(100% + 2rem);
        max-width: none;
        align-self: auto;
        flex: none;
        min-height: 0;
        height: auto;
    }

    .contact-page .hero-image,
    .contact-hero-card .hero-image {
        flex: none;
        min-height: 0;
        height: auto;
    }

    .contact-page .hero-image img,
    .contact-hero-card .hero-image img {
        width: 100%;
        height: auto;
        max-width: none;
        aspect-ratio: auto;
        object-fit: contain;
        object-position: center;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-top: -2rem;
        margin-bottom: 0rem;
    }

    .hero-subtitle {
        margin-top: var(--hero-content-gap);
        margin-bottom: var(--hero-content-gap);
    }

    .contact-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .gallery-item {
        max-width: 400px;
        margin: 0 auto;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .ai-section-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .ai-section-image {
        flex: none;
        width: 50%;
        margin: 0 auto;
        order: 1;
    }

    .ai-section-content {
        order: 2;
        text-align: center;
    }

    .ai-section-content .view-portfolio-btn {
        margin: 0 auto;
    }

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

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 0;
        max-height: 100vh;
    }

    .modal-close {
        position: fixed;
        top: 1rem;
        right: 1rem;
        background: var(--white);
        box-shadow: var(--shadow);
        z-index: 1001;
    }

    h1 {
        font-size: 2rem;
        line-height: 2rem;
    }

    h2 {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Contact page specific responsive */
    #contact-form {
        width: 100%;
    }

    .hero-card {
        width: 100%;
        padding: 1rem;
    }

    label {
        font-size: 0.75rem;
    }

    /* Services page specific responsive */
    .hero-card-services .hero-image-wrapper {
        width: calc(100% + 2rem);
        max-width: none;
        align-self: auto;
        flex: none;
        min-height: 0;
        height: auto;
        max-height: 35vh;
    }

    .hero-card-services .hero-image {
        flex: none;
        min-height: 0;
        height: auto;
        margin: 0;
        width: 100%;
        max-height: 35vh;
    }

    .hero-card-services .hero-image img {
        width: 100%;
        height: auto;
        max-width: none;
        max-height: 35vh;
        aspect-ratio: auto;
        object-fit: contain;
        object-position: center;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    .hero-card-services .hero-title {
        font-size: 2.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        padding-top: 1rem;
    }

    .hero-card-services .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-card-services .hero-actions .view-portfolio-btn,
    .hero-card-services .hero-actions .contact-btn {
        flex: none;
        width: 100%;
    }

    .numbered-step img {
        margin-bottom: 1rem;
    }

    /* Index page specific responsive */
    .experience-columns {
        display: grid;
    }

    .index-page .experience-content {
        border-top: 1px solid var(--gray-400);
        padding-top: 2rem;
    }
}

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

    .section {
        padding: 5rem 0;
    }

    .modal-content {
        margin: 0;
        border-radius: 0;
        height: 100vh;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .container {
        padding: 0 2rem;
    }

    .hero .container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card {
        padding: 2.5rem;
    }

    .hero-card-services {
        padding: 2.5rem;
    }
}

@media (min-width: 768px) {
    .experience-columns {
        display: flex;
        gap: 2rem;
    }

    .experience-summary {
        border-right: 1px solid var(--gray-400);
        padding-right: 2.6rem;
    }

    .experience-content {
        padding-left: 2rem;
    }
}

/* Index page: use mobile-optimized image on small viewports */
@media (max-width: 768px) {
    .index-page .hero-image img {
        content: url('images/zac-hero-mobile.png');
    }
}

/* Virtual business card specific responsive */
@media (max-width: 768px) {
    .virtual-business-card-page .hero-image img {
        content: url('images/header-zacpic.png');
    }
}

/* Services page: use mobile-optimized image on small viewports */
@media (max-width: 768px) {
    .hero-card-services .hero-image img {
        content: url('websites/images/hero-zac-crop.png');
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .hero-card {
        padding: 2.5rem;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}
