/*
 * Friends Landing Page - New Design CSS
 * Based on Figma design: https://www.figma.com/design/H52rBzbJWnun3MqdjoQLET/לפיתוח
 * Desktop: 1440px (node 297-946) | Mobile: 375px (node 297-471)
 *
 * IMPORTANT: This file is ONLY for index-new.html (friends page)
 * DO NOT use with employ.html - it uses style.css
 *
 * Date: 2024-12-03
 */

/* ===========================================
   DESIGN TOKENS (from Figma)
   =========================================== */

:root {
    /* Colors */
    --color-bg-cream: #FDFBF7;
    --color-bg-dark: #2F2F2F;
    --color-text-dark: #231F20;
    --color-text-gray: #3E3E3E;
    --color-text-white: #FFFFFF;
    --color-input-border: #A0A0A0;
    --color-input-bg: rgba(255, 255, 255, 0.56);
    --color-button-dark: #2F2F2F;

    /* Typography - Ploni font already loaded in style.css */
    --font-family: "Ploni", "Ploni ML v2 AAA", sans-serif;

    /* Border Radius */
    --radius-hero-card: 19.81px;
    --radius-input: 55px;
    --radius-project: 14.25px;
    --radius-about: 25.5px;
    --radius-footer-btn: 77.33px;

    /* Spacing */
    --form-input-height: 63.93px;
    --form-button-height: 63.93px;
}

/* ===========================================
   BASE STYLES
   =========================================== */

/* Container classes z-index to ensure proper stacking */
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    position: relative;
    z-index: 2;
}

body {
    background: #e9e9e9 !important; /* Override style.css sky background */
    background-image: none !important;
    font-family: var(--font-family);
    color: var(--color-text-dark);
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure no gap at top */
main {
    display: block;
    margin: 0;
    padding: 0;
}

/* ===========================================
   HERO SECTION
   =========================================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 950px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff; /* White background */
    overflow: visible; /* Allow circle and lines to extend beyond card */
}

/* Override container constraints inside hero-section */
.hero-section .container {
    max-width: none !important;
    width: 100%;
    padding: 0 !important;
    margin: 0;
    display: flex;
    justify-content: center;
}
 
 .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-image: url('../images/new/hero-background.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
 }
 
 /* Decorative circle in hero - using hero-circle.png image */
 .hero-circle {
    position: absolute;
    width: 356px;
    height: 349px;
    top: -31px;
    right: -447px;
    left: auto;
    background-image: url('../images/hero-circle.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(66deg);
    pointer-events: none;
    z-index: 3;
}
 
 /* Hero card with video/image frame and Carasso logo */
 .hero-card {
    position: relative;
    width: 1017px;
    height: 711px;
    background: var(--color-bg-cream);
    border-radius: var(--radius-hero-card);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
 
 /* Paper texture overlay */
 .paper-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/new/paper-texture.png');
    background-size: cover;
    background-position: center;
    opacity: 0.24;
    mix-blend-mode: multiply;
    z-index: 0;
    border-radius: var(--radius-hero-card);
 }
 
 /* Carasso logo in hero card - CENTERED at top per Figma */
 .hero-logo {
    position: relative;
    width: 162.75px;
    height: auto;
    margin-top: 15px;
    margin-bottom: 20px;
    z-index: 1;
 }
 
 /* Decorative lines - Figma: extend from media frame edges outward */
 /* Desktop: y=229.5, width=348px, aligned with media frame edges (45px margin) */
 .hero-line {
    position: absolute;
    width: 348px;
    height: 1.5px;
    background: #4F4F4F; /* Exact Figma color */
    top: 115px; /* Figma: 229.50 - 114 = 115.5px */
    z-index: 2;
 }
 
 .hero-line.left {
    left: 45px; /* Aligns with media frame left edge */
 }
 
 .hero-line.right {
    right: 45px; /* Aligns with media frame right edge */
 }
 
 /* Video/image frame in hero - Figma: 927px × 521px */
 .hero-media-frame {
    position: relative;
    width: 927px;
    height: 521px;
    border-radius: 10.5px;
    border: 1.5px solid #4F4F4F;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
 }
 
 .hero-media-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

/* Hero background video */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

/* Dark overlay on hero image - Figma: rgba(0,0,0,0.16) */
.hero-media-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.16);
    pointer-events: none;
    z-index: 0;
}
 
 /* Dynamic personalization text */
 .personalized-text {
    position: relative;
    z-index: 1; /* Above the dark overlay */
    color: white;
    text-align: center;
    font-size: 35.26px;
    font-weight: 400;
    line-height: 46.19px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
 }
 
 .personalized-text .friend-name {
    display: block;
    font-size: 35.26px;
 }
 
 .personalized-text .employee-name {
    display: block;
    font-size: 50px;
    font-weight: 600;
    line-height: 65.50px;
 }
 
 
 /* ===========================================
    MESSAGE SECTION
    =========================================== */
 
 .message-section {
    background: white;
    padding: 50px 0;
    text-align: center;
 }
 
 .message-section .general-message {
    font-size: 25px;
    font-weight: 400;
    line-height: 26px;
    color: var(--color-text-gray);
    margin: 0 auto 30px;
    max-width: 600px;
 }
 
 .message-section .general-message strong {
    font-weight: 600;
 }
 
.btn-dark {
    display: inline-block;
    width: 270px;
    height: 69.71px;
    background: var(--color-bg-dark);
    border-radius: 66.61px;
    border: 0.48px solid white;
    color: white;
    font-size: 28.55px;
    font-weight: 400;
    line-height: 69.71px;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-dark:hover {
    background: #4a4a4a;
    color: white;
}

/* Hero CTA button - Floating fixed button on left edge of page */
/* Proportionally sized for different screen dimensions using clamp() */
.hero-cta {
    position: fixed;
    bottom: 50%;
    transform: translateY(50%);
    left: clamp(10px, 2vw, 20px); /* Scales from 10px to 20px based on viewport */
    z-index: 99999; /* Maximum z-index to stay above ALL content including project cards */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    
    /* Proportional sizing - scales fluidly with viewport */
    width: clamp(100px, 19vw, 270px); /* Min 100px, preferred 19vw, max 270px */
    height: clamp(36px, 4.8vw, 70px); /* Min 36px, preferred 4.8vw, max 70px */
    font-size: clamp(11px, 1.9vw, 28.55px); /* Min 11px, preferred 1.9vw, max ~29px */
    line-height: clamp(36px, 4.8vw, 70px); /* Match height for vertical centering */
    padding: 0 clamp(12px, 2vw, 25px); /* Horizontal padding scales proportionally */
    border-radius: clamp(25px, 4.6vw, 66.61px); /* Border radius scales proportionally */
    
    /* Prevent text wrapping */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Smooth hide/show transition */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
}

/* Hide CTA when form section is in view */
.hero-cta.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Down arrow - pointing down polygon */
.down-arrow {
    margin-top: 40px;
    text-align: center;
}

.down-arrow img {
    display: block;
    margin: 0 auto;
    width: 69px;
    height: 32px;
}

/* ===========================================
   ABOUT SECTION "אנחנו"
   =========================================== */

.about-section {
    position: relative;
    background: white;
    padding: 50px 0 100px; /* Extra bottom padding for Frame 14 */
    overflow: visible; /* Allow Frame 14 ellipses to extend below about-box */
}

.about-box {
    position: relative;
    width: 100%;
    max-width: 1341px;
    min-height: 413px;
    margin: 0 auto;
    background: var(--color-bg-dark);
    border-radius: var(--radius-about);
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: visible;
}

.about-box h2 {
    font-size: 50px;
    font-weight: 500;
    line-height: 52px;
    color: var(--color-text-white);
    margin-bottom: 30px;
}

.about-box p {
    font-size: 25px;
    font-weight: 400;
    line-height: 26px;
    color: var(--color-text-white);
    max-width: 757px;
    margin: 0;
}

.about-box p strong {
    font-weight: 600;
}

/* Decorative ellipses on about section - Frame 14 (white strokes on dark bg) */
.decorative-vectors-1 {
    position: absolute;
    width: 514px;
    height: 424px;
    left: 27%;
    transform: translateX(-50%);
    bottom: -71px;
    pointer-events: none;
    z-index: 10;
    background-image: url(../images/Frame\ 14.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Decorative ellipses - Frame 15 (dark strokes on white bg, connects to Frame 14) */
.decorative-vectors-2 {
    position: absolute;
    width: 514px;
    height: 419px;
    left: 27%;
    transform: translateX(-50%);
    bottom: -220px;
    pointer-events: none;
    z-index: 9;
    background-image: url(../images/Frame\ 15.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* ===========================================
   PROJECTS SECTION
   =========================================== */

.projects-section {
    position: relative;
    background: var(--color-bg-cream);
    padding: 80px 0 100px;
}

/* Paper texture overlay - close-up-off-white-paper-texture 1
   Figma: x=-75, y=1755.65, width=1553, height=1553
   For >1440px: edge-to-edge (full width) */
.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75px;
    width: 1553px;
    height: 1553px;
    background-image: url('../images/new/paper-texture.png');
    background-size: cover;
    opacity: 0.24;
    pointer-events: none;
    z-index: 0;
}

/* Large screens (>1440px): paper texture edge-to-edge */
@media (min-width: 1441px) {
    .projects-section::before {
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
    }
}

.projects-section .container {
    position: relative;
    z-index: 1;
}

.projects-section h2 {
    font-size: 50px;
    font-weight: 400;
    line-height: 52px;
    color: var(--color-bg-dark);
    text-align: center;
    margin-bottom: 50px;
}

.projects-section h2 strong {
    font-weight: 600;
}

/* Projects grid - 3x3 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 80px;
}

.project-card {
    position: relative;
    width: 100%;
    padding-top: 95.72%; /* Aspect ratio like index.html */
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 3.85px solid white;
    backdrop-filter: blur(16.54px);
    -webkit-backdrop-filter: blur(16.54px);
}

.project-card:hover {
    transform: scale(1.02);
}

/* Project card overlay */
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 67, 147, 0.20) 0%, rgba(2, 67, 147, 0.20) 100%);
    border-radius: 20px;
    z-index: 0;
}

.project-card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-align: center;
    color: white;
}

.project-card img.project-icon {
    position: absolute;
    top: 21%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    max-width: clamp(30px, 12vw, 170px);
    max-height: 28%;
}

.project-card h4 {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 5%;
    font-size: clamp(12px, 4.5vw, 84px);
    font-weight: 600;
    line-height: 1;
    color: white;
}

.project-card p {
    position: absolute;
    top: 68%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 5%;
    font-size: clamp(8px, 2.2vw, 52px);
    font-weight: 400;
    line-height: 1.3;
    color: white;
}

/* ===========================================
   FORM SECTION
   =========================================== */

/* ===========================================
   LEAD FORM SECTION - Separate section with white background
   Figma: Form at x=384 (LEFT), Waves at x=1099.5 (RIGHT)
   Spacing from Figma:
   - 256.4px from paper texture (top) → ~17.8% of section
   - 68.59px from footer (bottom) → ~4.76% of section
   - 42.5px gap between form and waves → ~2.95% of wrapper width
   =========================================== */
.lead-form-section {
    background: white;
    padding-top: 5%;
    padding-bottom: calc(68.59px * 1.1); /* ~75px, slightly more for visual balance */
    padding-left: 0;
    padding-right: 0;
    position: relative;
}

/* For larger screens, use percentage-based padding */
@media (min-width: 1440px) {
    .lead-form-section {
        padding-top: 5%;
        padding-bottom: 4.76%; /* 68.59 / 1440 ≈ 4.76% */
    }
}

/* Form wrapper - contains form, waves are positioned absolutely */
.form-wrapper {
    display: flex;
    flex-direction: row-reverse; /* RTL: form on visual LEFT */
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.form-container {
    width: 673px;
    max-width: 673px;
    flex-shrink: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17.73px;
    margin-bottom: 17px;
}

.form-row.single-field {
    grid-template-columns: 327.6px;
}

.form-row.full-width-row {
    grid-template-columns: 1fr;
}

.form-input {
    width: 100%;
    height: var(--form-input-height);
    border-radius: var(--radius-input);
    border: 1.28px solid var(--color-input-border);
    background: transparent;
    padding: 0 25px;
    font-size: 25px;
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--color-text-dark);
    direction: rtl;
    text-align: right;
}

.form-input::placeholder {
    color: var(--color-text-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-bg-dark);
}

/* Project dropdown with submit button row */
.form-submit-row {
    display: grid;
    grid-template-columns: 373.8px 281.4px; /* Exact widths from Figma */
    gap: 17.73px;
    margin-bottom: 20px;
}

.form-select {
    width: 100%;
    height: var(--form-input-height);
    border-radius: var(--radius-input);
    border: 1.28px solid var(--color-input-border);
    background: var(--color-input-bg);
    padding: 0 25px;
    font-size: 25px;
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--color-text-dark);
    direction: rtl;
    text-align: right;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('../images/caret.svg');
    background-repeat: no-repeat;
    background-position: left 25px center;
}

.form-submit-btn {
    width: 100%;
    height: var(--form-button-height);
    border-radius: var(--radius-input);
    background: var(--color-button-dark);
    border: none;
    color: rgba(255, 255, 255, 0.89);
    font-size: 32.91px;
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 34.22px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-submit-btn:hover {
    background: #1a1a1a;
}

.form-submit-btn .btn-arrow {
    order: 1;
}

/* Privacy text */
.privacy-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

.privacy-text a {
    color: var(--color-text-dark);
    text-decoration: underline;
}

/* Marketing consent checkbox */
.marketing-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
    direction: rtl;
}

.marketing-consent input[type="checkbox"] {
    margin-top: 4px;
    order: 2;
    margin-left: 5px;
}

.marketing-consent label {
    font-size: 14px;
    color: var(--color-text-dark);
    order: 1;
}

/* Star shape decoration - hidden on desktop, visible on mobile */
.form-star-shape {
    display: none;
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 121px;
    height: 135px;
    opacity: 0.67;
    pointer-events: none;
    z-index: 0;
}

/* Decorative form waves - positioned at RIGHT edge of page */
.decorative-form-vectors {
    position: absolute;
    right: -35px;
    top: 50%;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    width: 396px;
    max-width: 20%;
}

.decorative-form-vectors svg {
    flex-shrink: 0;
    width: 100%;
    height: auto;
}


/* ===========================================
   FOOTER
   =========================================== */

footer {
    background: #2F2F2F !important;
    background-image: none !important;
    background-color: #2F2F2F !important;
    background-blend-mode: normal !important;
    height: 98px;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    isolation: isolate; /* Create new stacking context */
}

/* Remove any pseudo-element textures */
footer::before,
footer::after {
    display: none !important;
    content: none !important;
}

.footer-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    position: relative;
}

/* Position Salt & Pepper logo on the left - 30% smaller */
.footer-logo.salt-pepper {
    position: absolute;
    left: 50px;
    transform: scale(0.7);
}

.footer-privacy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 208px;
    height: 37.33px;
    border: 0.67px solid white;
    border-radius: var(--radius-footer-btn);
    background: transparent;
    color: white;
    font-size: 18px;
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 18.72px;
    text-shadow: 0px 0px 23px rgba(2, 67, 147, 0.53);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-privacy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-privacy-btn .btn-arrow {
    width: 15px;
    height: 14px;
    margin-right: 10px;
}

.footer-logo {
    width: auto;
    height: 40px;
}

/* ===========================================
   RESPONSIVE DESIGN - All Breakpoints
   1920px → 1440px → 1280px → 1024px → 768px → 480px → 375px
   =========================================== */

/* Large Desktop (> 1440px) - Scale up from design target */
@media (min-width: 1441px) {
    .hero-section {
        min-height: 1050px;
    }

    .hero-card {
        width: 1100px;
        height: 770px;
    }

    .hero-logo {
        width: 180px;
    }

    .hero-media-frame {
        width: 1000px;
        height: 565px;
    }

    .hero-circle {
        width: 356px;
        height: 349px;
        top: -31px;
        right: -407px;
        transform: rotate(61deg);
    }

    .hero-line {
        width: 400px;
    }

    .personalized-text {
        font-size: 40px;
        line-height: 52px;
    }

    .personalized-text .friend-name {
        font-size: 40px;
    }

    .personalized-text .employee-name {
        font-size: 56px;
        line-height: 72px;
    }

    .message-section .general-message {
        font-size: 28px;
        line-height: 32px;
        max-width: 700px;
    }

    .btn-dark {
        width: 300px;
        height: 78px;
        font-size: 32px;
        line-height: 78px;
    }

    /* Hero CTA - larger size for big screens */
    .hero-cta {
        width: 270px;
        height: 70px;
        font-size: 28px;
        line-height: 70px;
        padding: 0 25px;
    }

    .about-box {
        max-width: 1450px;
        min-height: 460px;
        padding: 60px 80px;
    }

    .about-box h2 {
        font-size: 56px;
        line-height: 60px;
    }

    .about-box p {
        font-size: 28px;
        line-height: 32px;
        max-width: 850px;
    }

    .projects-section h2 {
        font-size: 56px;
        line-height: 60px;
    }

    .projects-grid {
        max-width: 1300px;
        gap: 30px;
    }

    .form-container {
        max-width: 750px;
    }

    .form-input,
    .form-select {
        height: 72px;
        font-size: 28px;
    }

    .form-submit-btn {
        height: 72px;
        font-size: 36px;
    }

    footer {
        height: 110px;
    }

    .footer-content {
        padding: 0 80px;
    }

    .footer-logo {
        height: 48px;
    }

    .footer-logo.salt-pepper {
        left: 80px;
    }

    .footer-privacy-btn {
        width: 230px;
        height: 42px;
        font-size: 20px;
    }
}

/* Laptop (1280px - 1440px) */
@media (max-width: 1440px) and (min-width: 1281px) {
    .hero-section {
        min-height: 900px;
    }

    .hero-card {
        width: 960px;
        height: 670px;
    }

    .hero-logo {
        width: 150px;
    }

    .hero-media-frame {
        width: 875px;
        height: 490px;
    }

    .hero-circle {
        width: 356px;
        height: 349px;
        top: 29px;
        right: -367px;
        transform: rotate(84deg);
    }

    /* Hero CTA - ensure proper sizing for this breakpoint */
    .hero-cta {
        width: 240px;
        height: 62px;
        font-size: 24px;
        line-height: 62px;
        padding: 0 22px;
    }

    .personalized-text {
        font-size: 32px;
        line-height: 42px;
    }

    .personalized-text .employee-name {
        font-size: 46px;
        line-height: 60px;
    }

    .about-box {
        max-width: 1200px;
        padding: 45px 50px;
    }

    .about-box h2 {
        font-size: 46px;
    }

    .about-box p {
        font-size: 23px;
        max-width: 700px;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        gap: 20px;
        padding: 0 40px;
    }

    .form-container {
        max-width: 620px;
    }

    .form-submit-row {
        grid-template-columns: 1.33fr 1fr; /* Scale ratio for smaller screens */
    }

    .form-input,
    .form-select {
        width: 100%;
        height: 58px;
        font-size: 22px;
    }

    .form-submit-btn {
        width: 100%;
        height: 58px;
        font-size: 26px;
        padding: 0 20px;
    }
}

/* Small Laptop (1024px - 1280px) */
@media (max-width: 1280px) and (min-width: 1025px) {
    .hero-section {
        min-height: 800px;
    }

    .hero-card {
        width: 850px;
        height: 595px;
    }

    .hero-logo {
        width: 130px;
        margin-bottom: 15px;
    }

    .hero-media-frame {
        width: 775px;
        height: 435px;
    }

    .hero-circle {
        width: 356px;
        height: 349px;
        top: 22px;
        right: -372px;
        transform: rotate(82deg);
    }

    .hero-line {
        width: 280px;
        top: 100px;
    }

    .personalized-text {
        font-size: 28px;
        line-height: 38px;
    }

    .personalized-text .employee-name {
        font-size: 40px;
        line-height: 52px;
    }

    .message-section .general-message {
        font-size: 22px;
        line-height: 26px;
        max-width: 550px;
    }

    .btn-dark {
        width: 240px;
        height: 60px;
        font-size: 24px;
        line-height: 60px;
    }

    /* Hero CTA - proper sizing for small laptop */
    .hero-cta {
        width: 210px;
        height: 55px;
        font-size: 20px;
        line-height: 55px;
        padding: 0 18px;
    }

    .about-section {
        padding: 40px 20px 80px;
    }

    .about-box {
        max-width: 100%;
        padding: 40px 40px;
    }

    .about-box h2 {
        font-size: 42px;
        line-height: 46px;
    }

    .about-box p {
        font-size: 20px;
        line-height: 24px;
        max-width: 650px;
    }

    .projects-section {
        padding: 60px 20px 80px;
    }

    .projects-section h2 {
        font-size: 42px;
        line-height: 46px;
        margin-bottom: 40px;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        gap: 18px;
        padding: 0 30px;
    }

    .lead-form-section {
        padding-top: 5%;
        padding-bottom: 4%;
    }

    .form-wrapper {
        padding: 0 30px;
    }

    .form-container {
        width: 560px;
        max-width: 560px;
    }

    .decorative-form-vectors {
        width: 320px;
        max-width: 20%;
    }

    .form-submit-row {
        grid-template-columns: 1.33fr 1fr; /* Scale ratio for smaller screens */
    }

    .form-input,
    .form-select {
        width: 100%;
        height: 54px;
        font-size: 20px;
        padding: 0 22px;
    }

    .form-submit-btn {
        width: 100%;
        height: 54px;
        font-size: 24px;
        padding: 0 18px;
    }

    footer {
        height: 85px;
        background: #2F2F2F !important;
        background-image: none !important;
    }

    .footer-content {
        padding: 0 40px;
    }

    .footer-logo {
        height: 35px;
    }

    .footer-logo.salt-pepper {
        left: 40px;
    }

    .footer-privacy-btn {
        width: 180px;
        height: 32px;
        font-size: 15px;
    }

    /* Decorative vectors - scaled for 1280-1025 */
    .decorative-vectors-1 {
        width: 420px;
        height: 350px;
        bottom: -60px;
    }

    .decorative-vectors-2 {
        width: 420px;
        height: 345px;
        bottom: -180px;
    }
}

/* Tablet Landscape (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-section {
        min-height: 700px;
        padding: 30px 0;
    }

    .hero-card {
        width: 700px;
        height: 500px;
    }

    .hero-logo {
        width: 110px;
        margin-top: 10px;
        margin-bottom: 12px;
    }

    .hero-media-frame {
        width: 640px;
        height: 360px;
    }

    .hero-circle {
        width: 356px;
        height: 349px;
        top: 37px;
        right: -362px;
        transform: rotate(87deg);
    }

    .hero-line {
        width: 180px;
        top: 85px;
    }

    .hero-line.left {
        left: 20px; /* Aligned with media frame edge */
    }

    .hero-line.right {
        right: 20px; /* Aligned with media frame edge */
    }

    .personalized-text {
        font-size: 24px;
        line-height: 32px;
    }

    .personalized-text .friend-name {
        font-size: 24px;
    }

    .personalized-text .employee-name {
        font-size: 34px;
        line-height: 44px;
    }

    .message-section {
        padding: 40px 30px;
    }

    .message-section .general-message {
        font-size: 20px;
        line-height: 26px;
        max-width: 500px;
    }

    .btn-dark {
        width: 220px;
        height: 55px;
        font-size: 22px;
        line-height: 55px;
    }

    .down-arrow img {
        width: 50px;
        height: 23px;
    }
    
    /* Hero CTA - proper sizing for tablet landscape */
    .hero-cta {
        width: 170px;
        height: 48px;
        font-size: 16px;
        line-height: 48px;
        padding: 0 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .about-section {
        padding: 40px 30px 75px;
    }

    /* Decorative vectors - scaled for 1024-769 */
    .decorative-vectors-1 {
        width: 350px;
        height: 290px;
        bottom: -50px;
    }

    .decorative-vectors-2 {
        width: 350px;
        height: 285px;
        bottom: -150px;
    }

    .about-box {
        max-width: 100%;
        min-height: auto;
        padding: 35px 30px;
    }

    .about-box h2 {
        font-size: 36px;
        line-height: 40px;
        margin-bottom: 20px;
    }

    .about-box p {
        font-size: 18px;
        line-height: 24px;
        max-width: 600px;
    }

    .projects-section {
        padding: 50px 0 60px;
    }

    .projects-section h2 {
        font-size: 34px;
        line-height: 38px;
        margin-bottom: 35px;
        padding: 0 30px;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 0 30px;
        max-width: 100%;
        margin-bottom: 50px;
    }

    .project-card {
        border-radius: 12px;
    }

    .project-card::before {
        border-radius: 12px;
    }

    .lead-form-section {
        padding-top: 5%;
        padding-bottom: 5%;
    }

    /* Desktop-like layout for form */
    .form-wrapper {
        flex-direction: row-reverse;
        justify-content: center;
        align-items: center;
        padding: 0 30px;
    }

    .form-container {
        width: 500px;
        max-width: 500px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        margin-bottom: 14px;
    }

    .form-submit-row {
        grid-template-columns: 1.3fr 1fr;
        gap: 14px;
        margin-bottom: 14px;
    }

    .form-input,
    .form-select {
        width: 100%;
        height: 50px;
        font-size: 16px;
        padding: 0 20px;
        border-radius: 40px;
    }

    .form-submit-btn {
        width: 100%;
        height: 50px;
        font-size: 18px;
        border-radius: 40px;
        padding: 0 15px;
    }

    .privacy-text,
    .marketing-consent label {
        font-size: 11px;
    }

    /* Show decorative waves like desktop */
    .decorative-form-vectors {
        display: flex;
        width: 280px;
        max-width: 20%;
    }

    /* Hide star shape - desktop style */
    .form-star-shape {
        display: none;
    }

    /* Footer - desktop style */
    footer {
        height: 80px;
        background: #2F2F2F !important;
        background-image: none !important;
        margin-top: 26%;
    }

    .footer-content {
        padding: 0 30px;
        justify-content: center;
    }

    .footer-logo {
        height: 32px;
    }

    .footer-logo.salt-pepper {
        position: absolute;
        left: 30px;
    }

    .footer-privacy-btn {
        width: 165px;
        height: 32px;
        font-size: 14px;
    }
}

/* Tablet Portrait (480px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .hero-section {
        min-height: 550px;
        padding: 25px 0;
    }

    .hero-background {
        background-position: top center;
    }

    .hero-circle {
        display: none;
    }

    .hero-card {
        width: 90%;
        max-width: 500px;
        height: auto;
        min-height: 400px;
        padding: 15px 15px 20px;
        border-radius: 12px;
    }

    .hero-logo {
        width: 100px;
        margin-top: 8px;
        margin-bottom: 12px;
    }

    /* Lines visible on mobile - Figma: width=100px, positioned at media frame edges */
    .hero-line {
        width: 100px;
        top: 70px; /* Adjusted for mobile card size */
    }

    .hero-line.left {
        left: 10px;
    }

    .hero-line.right {
        right: 10px;
    }

    .hero-media-frame {
        width: calc(100% - 20px);
        height: 300px;
        border-radius: 8px;
    }

    .personalized-text {
        font-size: 20px;
        line-height: 28px;
        padding: 15px;
    }

    .personalized-text .friend-name {
        font-size: 20px;
    }

    .personalized-text .employee-name {
        font-size: 28px;
        line-height: 36px;
    }

    .message-section {
        padding: 35px 25px;
    }

    .message-section .general-message {
        font-size: 18px;
        line-height: 24px;
        max-width: 100%;
    }

    .btn-dark {
        width: 180px;
        height: 48px;
        font-size: 18px;
        line-height: 48px;
        border-radius: 35px;
    }

    .down-arrow {
        margin-top: 30px;
    }

    .down-arrow img {
        width: 45px;
        height: 21px;
    }
    
    /* Hero CTA - proper sizing for tablet portrait */
    .hero-cta {
        width: 150px;
        height: 44px;
        font-size: 14px;
        line-height: 44px;
        padding: 0 14px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .about-section {
        padding: 35px 20px 70px;
    }

    /* Tablet ellipses - scaled for 768-481 */
    .decorative-vectors-1 {
        width: 280px;
        height: 230px;
        bottom: -40px;
    }

    .decorative-vectors-2 {
        width: 280px;
        height: 225px;
        bottom: -120px;
    }

    .about-box {
        max-width: 100%;
        min-height: auto;
        padding: 30px 25px;
        border-radius: 18px;
    }

    .about-box h2 {
        font-size: 32px;
        line-height: 36px;
        margin-bottom: 18px;
    }

    .about-box p {
        font-size: 16px;
        line-height: 22px;
    }

    .projects-section {
        padding: 40px 0 50px;
    }

    .projects-section::before {
        display: none;
    }

    .projects-section h2 {
        font-size: 26px;
        line-height: 30px;
        margin-bottom: 30px;
        padding: 0 20px;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 15px;
        max-width: 100%;
        margin-bottom: 40px;
    }

    .project-card {
        border-radius: 10px;
        border-width: 2px;
    }

    .project-card::before {
        border-radius: 10px;
    }

    .lead-form-section {
        padding-top: 10%;
        padding-bottom: 32%;
    }

    .form-wrapper {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
    }

    .form-container {
        width: 100%;
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .form-submit-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .form-input,
    .form-select {
        height: 48px;
        font-size: 16px;
        padding: 0 18px;
        border-radius: 35px;
    }

    .form-submit-btn {
        height: 48px;
        font-size: 18px;
        border-radius: 35px;
    }

    .privacy-text,
    .marketing-consent label {
        font-size: 11px;
    }

    .decorative-form-vectors {
        display: none;
    }

    .form-star-shape {
        display: block;
        width: 180px;
        height: 200px;
        bottom: -4%;
        left: -5px;
    }

    footer {
        height: auto;
        padding: 18px 25px;
        background: #2F2F2F !important;
        background-image: none !important;
    }

    .footer-content {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        padding: 0 25px;
    }

    .footer-logo {
        height: 25px;
    }

    .footer-logo.salt-pepper {
        position: absolute;
        left: 25px;
    }

    .footer-privacy-btn {
        position: absolute;
        right: 25px;
        width: auto;
        min-width: 140px;
        height: 30px;
        font-size: 13px;
        padding: 5px 15px;
    }
}

/* Large Mobile (375px - 480px) */
@media (max-width: 480px) and (min-width: 376px) {
    .hero-section {
        min-height: 440px;
        padding: 18px 0 25px;
    }

    .hero-circle {
        display: none;
    }

    .hero-card {
        max-width: 350px;
        width: 92%;
        height: auto;
        min-height: 360px;
        border-radius: 10px;
        padding: 15px 15px 20px;
    }

    .hero-logo {
        width: 85px;
        margin-top: 5px;
        margin-bottom: 12px;
    }

    /* Lines visible on large mobile - scaled from desktop */
    .hero-line {
        width: 90px;
        top: 60px;
    }

    .hero-line.left {
        left: 8px;
    }

    .hero-line.right {
        right: 8px;
    }

    .hero-media-frame {
        width: calc(100% - 16px);
        max-width: 320px;
        height: 260px;
        border-radius: 6px;
    }

    .personalized-text {
        font-size: 17px;
        line-height: 24px;
        padding: 12px;
    }

    .personalized-text .friend-name {
        font-size: 17px;
    }

    .personalized-text .employee-name {
        font-size: 24px;
        line-height: 32px;
    }

    .message-section {
        padding: 30px 18px;
    }

    .message-section .general-message {
        font-size: 16px;
        line-height: 22px;
    }

    .btn-dark {
        width: 160px;
        height: 42px;
        font-size: 15px;
        line-height: 42px;
        border-radius: 30px;
    }

    .down-arrow {
        margin-top: 20px;
    }
    
    .down-arrow img {
        width: 40px;
        height: 18px;
    }
    
    /* Hero CTA - proper sizing for large mobile */
    .hero-cta {
        width: 130px;
        height: 40px;
        font-size: 12px;
        line-height: 40px;
        padding: 0 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .about-section {
        padding: 30px 15px 60px;
    }

    /* Large mobile ellipses - scaled for 480-376 */
    .decorative-vectors-1 {
        width: 220px;
        height: 180px;
        bottom: -30px;
    }

    .decorative-vectors-2 {
        width: 220px;
        height: 175px;
        bottom: -95px;
    }

    .about-box {
        max-width: 100%;
        padding: 28px 20px;
        border-radius: 15px;
    }

    .about-box h2 {
        font-size: 28px;
        line-height: 32px;
        margin-bottom: 18px;
    }

    .about-box p {
        font-size: 14px;
        line-height: 20px;
    }

    .projects-section {
        padding: 35px 0 40px;
    }

    .projects-section::before {
        display: none;
    }

    .projects-section h2 {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 25px;
        padding: 0 15px;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 12px;
        margin-bottom: 35px;
    }

    .project-card {
        border-radius: 8px;
        border-width: 2px;
    }

    .project-card::before {
        border-radius: 8px;
    }

    .lead-form-section {
        padding-top: 10%;
        padding-bottom: 32%;
    }

    .form-wrapper {
        flex-direction: column;
        gap: 0;
        padding: 0 15px;
    }

    .form-container {
        width: 100%;
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }

    .form-submit-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .form-input,
    .form-select {
        height: 48px;
        font-size: 16px;
        padding: 0 20px;
        border-radius: 30px;
    }

    .form-submit-btn {
        height: 48px;
        font-size: 18px;
        border-radius: 30px;
    }

    .privacy-text {
        font-size: 11px;
    }

    .marketing-consent label {
        font-size: 11px;
    }

    .decorative-form-vectors {
        display: none;
    }

    .form-star-shape {
        display: block;
        width: 160px;
        height: 180px;
        bottom: -4%;
        left: -8px;
    }

    footer {
        height: auto;
        padding: 15px 18px;
        background: #2F2F2F !important;
        background-image: none !important;
    }

    .footer-content {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 0 18px;
    }

    .footer-logo {
        height: 22px;
    }

    .footer-logo.salt-pepper {
        position: absolute;
        left: 18px;
    }

    .footer-privacy-btn {
        position: absolute;
        right: 18px;
        width: auto;
        min-width: 125px;
        height: 28px;
        font-size: 12px;
        padding: 4px 12px;
    }

    .footer-privacy-btn .btn-arrow {
        width: 12px;
        height: 11px;
        margin-right: 6px;
    }
}

/* Mobile (≤ 375px) - Design Target */
@media (max-width: 375px) {
    .hero-section {
        min-height: 400px;
        padding: 15px 0 20px;
    }

    .hero-circle {
        display: none;
    }

    .hero-card {
        max-width: 336px;
        width: 94%;
        height: auto;
        min-height: 340px;
        border-radius: 8px;
        padding: 12px 12px 18px;
    }

    .hero-logo {
        width: 75px;
        margin-top: 5px;
        margin-bottom: 10px;
    }

    /* Lines visible on mobile (375px) - Figma: width=100px */
    .hero-line {
        width: 100px;
        height: 1px; /* Thinner on mobile */
        top: 55px;
    }

    .hero-line.left {
        left: 7px;
    }

    .hero-line.right {
        right: 7px;
    }

    .hero-media-frame {
        width: calc(100% - 14px);
        max-width: 306px;
        height: 240px;
        border-radius: 6px;
        border-width: 1px;
    }

    .personalized-text {
        font-size: 15px;
        line-height: 21px;
        padding: 10px;
    }

    .personalized-text .friend-name {
        font-size: 15px;
    }

    .personalized-text .employee-name {
        font-size: 21px;
        line-height: 28px;
    }

    .message-section {
        padding: 25px 15px;
    }

    .message-section .general-message {
        font-size: 15px;
        line-height: 21px;
    }

    .btn-dark {
        width: 145px;
        height: 38px;
        font-size: 14px;
        line-height: 38px;
        border-radius: 28px;
    }

    .down-arrow {
        margin-top: 15px;
    }
    
    .down-arrow img {
        width: 35px;
        height: 16px;
    }
    
    /* Hero CTA - proper sizing for mobile */
    .hero-cta {
        width: 115px;
        height: 36px;
        font-size: 11px;
        line-height: 36px;
        padding: 0 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .about-section {
        padding: 25px 12px 55px;
    }

    /* Mobile 375px ellipses - scaled for ≤375 */
    .decorative-vectors-1 {
        width: 180px;
        height: 150px;
        bottom: -25px;
    }

    .decorative-vectors-2 {
        width: 180px;
        height: 145px;
        bottom: -80px;
    }

    .about-box {
        max-width: 100%;
        padding: 25px 18px;
        border-radius: 14px;
    }

    .about-box h2 {
        font-size: 26px;
        line-height: 30px;
        margin-bottom: 16px;
    }

    .about-box p {
        font-size: 13px;
        line-height: 19px;
    }

    .projects-section {
        padding: 30px 0 35px;
    }

    .projects-section::before {
        display: none;
    }

    .projects-section h2 {
        font-size: 17px;
        line-height: 23px;
        margin-bottom: 22px;
        padding: 0 12px;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .project-card {
        border-radius: 6px;
        border-width: 2px;
    }

    .project-card::before {
        border-radius: 6px;
    }

    .lead-form-section {
        padding-top: 10%;
        padding-bottom: 32%;
    }

    .form-wrapper {
        flex-direction: column;
        gap: 0;
        padding: 0 12px;
    }

    .form-container {
        width: 100%;
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 8px;
    }

    .form-submit-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }

    .form-input,
    .form-select {
        height: 44px;
        font-size: 15px;
        padding: 0 18px;
        border-radius: 28px;
    }

    .form-select {
        background-position: left 14px center;
    }

    .form-submit-btn {
        height: 44px;
        font-size: 16px;
        border-radius: 28px;
    }

    .form-submit-btn .btn-arrow {
        width: 5px;
        height: 9px;
    }

    .marketing-consent {
        margin-top: 10px;
    }

    .privacy-text {
        font-size: 10px;
        margin-top: 8px;
    }

    .marketing-consent label {
        font-size: 10px;
        line-height: 1.4;
    }

    .decorative-form-vectors {
        display: none;
    }

    .form-star-shape {
        display: block;
        width: 140px;
        height: 160px;
        bottom: -4%;
        left: -10px;
    }

    footer {
        height: auto;
        padding: 12px 15px;
        background: #2F2F2F !important;
        background-image: none !important;
    }

    .footer-content {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        padding: 0 15px;
    }

    .footer-logo {
        height: 18px;
    }

    .footer-logo.salt-pepper {
        position: absolute;
        left: 15px;
    }

    .footer-privacy-btn {
        position: absolute;
        right: 15px;
        width: auto;
        min-width: 110px;
        height: 26px;
        font-size: 11px;
        padding: 3px 10px;
    }

    .footer-privacy-btn .btn-arrow {
        width: 10px;
        height: 9px;
        margin-right: 5px;
    }
}
