/* ==========================================================================
   Wanvan Yearbook Portfolio - Stylesheet
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    --primary: #FF577F;
    --primary-hover: #FF3866;
    --primary-light: rgba(255, 87, 127, 0.1);

    --secondary: #40E0D0;
    --secondary-hover: #2ED2C2;
    --secondary-light: rgba(64, 224, 208, 0.1);

    --dark: #0F172A;
    --dark-light: #1E293B;
    --dark-muted: #64748B;

    --light: #F8FAFC;
    --light-alt: #F1F5F9;
    --white: #FFFFFF;

    --border-color: #E2E8F0;

    --font-heading: 'Outfit', 'Kanit', sans-serif;
    --font-body: 'Kanit', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.06);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-circle: 50%;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.text-gradient-pink {
    background: linear-gradient(135deg, var(--primary) 30%, #FF9E80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-turq {
    background: linear-gradient(135deg, var(--secondary) 30%, #5CE6E6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.15rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    gap: 8px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #FF7096 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 87, 127, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 87, 127, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--dark-light);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--light-alt);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 34px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 100px;
    background-color: var(--primary-light);
    color: var(--primary);
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* Section Header */
.section-header {
    margin-bottom: 50px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-header .section-title {
    margin-bottom: 15px;
}

.section-header .section-desc {
    color: var(--dark-muted);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-glass);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
}

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

/* Brand Logo (Wanvan Styled circular logo) */
.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 130px;
    width: auto;
    object-fit: contain;
}

.logo-brand {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: 1px;
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--dark-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-light);
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-bg-shapes .shape {
    position: absolute;
    filter: blur(100px);
    opacity: 0.15;
    border-radius: var(--radius-circle);
}

.hero-bg-shapes .shape-pink {
    background-color: var(--primary);
    width: 450px;
    height: 450px;
    top: -50px;
    right: -100px;
}

.hero-bg-shapes .shape-turquoise {
    background-color: var(--secondary);
    width: 350px;
    height: 350px;
    bottom: -50px;
    left: -100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--dark-muted);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--dark-muted);
    font-weight: 500;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating 3D Cards in Hero */
.image-wrapper-3d {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.hero-main-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: var(--transition-slow);
}

.image-wrapper-3d:hover .hero-main-img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.floating-card {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
    transition: var(--transition);
}

.floating-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 1);
}

.floating-card h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.floating-card p {
    font-size: 0.72rem;
    color: var(--dark-muted);
}

.card-top-left {
    top: 40px;
    left: -40px;
}

.card-bottom-right {
    bottom: 40px;
    right: -20px;
}

.icon-circle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.icon-pink {
    background-color: var(--primary);
}

.icon-turq {
    background-color: var(--secondary);
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--light-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--white);
}

.service-icon.icon-pink {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8da7 100%);
}

.service-icon.icon-turq {
    background: linear-gradient(135deg, var(--secondary) 0%, #76eee1 100%);
}

.service-icon.icon-dark {
    background: linear-gradient(135deg, var(--dark-light) 0%, #475569 100%);
}

.service-card h3 {
    margin-bottom: 14px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--dark-muted);
    font-size: 0.92rem;
}

/* 3D Showcase Section */
.showcase-section {
    padding: 100px 0;
    background-color: var(--white);
}

.showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Realistic 3D Book Layout */
.book-container {
    width: 320px;
    height: 320px;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.book-3d {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-18deg) rotateX(12deg);
    transition: transform 0.1s ease;
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 4px 10px 10px 4px;
    transform-origin: left center;
}

.book-face-front {
    z-index: 5;
    background-color: var(--dark);
    transform: translateZ(10px);
    overflow: hidden;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.25), -2px 0 5px rgba(255, 255, 255, 0.05);
}

.book-face-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.book-spine {
    position: absolute;
    width: 20px;
    height: 100%;
    background: #0b111e;
    left: 0;
    transform: rotateY(-90deg) translateZ(10px);
    transform-origin: left center;
    box-shadow: inset -2px 0 5px rgba(0, 0, 0, 0.4);
}

.book-face-back {
    background-color: #0b111e;
    transform: rotateY(180deg) translateZ(10px);
    box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.25);
}

.book-pages {
    position: absolute;
    width: 96%;
    height: 96%;
    background: #fdfdfd;
    right: 0;
    top: 2%;
    z-index: 1;
    transform: translateZ(9px);
    border-radius: 0 6px 6px 0;
    box-shadow: inset -3px 0 5px rgba(0, 0, 0, 0.1), inset 0 -3px 5px rgba(0, 0, 0, 0.05), inset 0 3px 5px rgba(0, 0, 0, 0.05);
    background-image: repeating-linear-gradient(90deg, transparent, transparent 1px, #e2e8f0 1px, #e2e8f0 2px);
    background-size: 3px 100%;
}

.instruction-badge {
    background-color: var(--light-alt);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--dark-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
}

.showcase-content .features-list {
    margin: 28px 0 38px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.showcase-content .features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    color: var(--secondary);
    background-color: var(--secondary-light);
    padding: 2px;
    border-radius: var(--radius-circle);
}

/* Portfolio Gallery Section */
.gallery-section {
    padding: 100px 0;
    background-color: var(--light);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 100px;
    background-color: var(--white);
    color: var(--dark-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.filter-btn:hover {
    background-color: var(--light-alt);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--secondary) 0%, #2ED2C2 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.3);
}

/* Gallery Responsive CSS Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    transition: var(--transition-slow);
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 3 / 2;
    cursor: pointer;
    position: relative;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    position: absolute;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
}

.gallery-image-box {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image-box img {
    transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.img-category {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.overlay-content h3 {
    color: var(--white);
    margin-bottom: 6px;
    font-size: 1.4rem;
}

.overlay-content p.img-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
    background-color: var(--primary);
    color: var(--white);
}

/* Custom Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.98);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.08);
}

.lightbox-caption {
    color: var(--white);
    margin-top: 18px;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 2.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* Pricing Calculator */
.pricing-section {
    padding: 100px 0;
    background-color: var(--light-alt);
}

.pricing-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 40px;
}

.calculator-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.calculator-card h3 {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-alt);
    padding-bottom: 16px;
    font-size: 1.4rem;
}

.calc-row {
    margin-bottom: 32px;
}

.calc-label {
    font-weight: 600;
    color: var(--dark-light);
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.calc-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.calc-options .option-btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    background-color: var(--light);
    color: var(--dark-light);
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.88rem;
}

.calc-options .option-btn:hover {
    background-color: var(--light-alt);
}

.calc-options .option-btn.active {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Pricing Slider */
.range-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.slider {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 5px;
    background: var(--border-color);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 87, 127, 0.4);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 90px;
    text-align: right;
}

.slider-helper {
    font-size: 0.78rem;
    color: var(--dark-muted);
    margin-top: 8px;
}

/* Custom Checkboxes */
.calc-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 0.88rem;
    user-select: none;
    color: var(--dark-light);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input~.checkmark {
    background-color: var(--light-alt);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Summary Card */
.pricing-summary-card {
    background-color: var(--dark);
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.pricing-summary-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary-light) 0%, transparent 70%);
    bottom: -80px;
    right: -80px;
    pointer-events: none;
}

.pricing-summary-card h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 14px;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}

.spec-item span:last-child {
    font-weight: 500;
    color: var(--white);
}

.discount-badge {
    background-color: var(--secondary);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 14px;
}

.price-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 14px;
}

.total-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
    margin-bottom: 2px;
}

.total-amount {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 28px;
}

/* Contact Section & Form */
.contact-section {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
    margin-bottom: 60px;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
}

.info-items {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.info-text p {
    color: var(--dark-muted);
    font-size: 0.9rem;
}

.contact-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Form Styles */
.contact-form-block {
    background-color: var(--light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-form-block h3 {
    margin-bottom: 28px;
    font-size: 1.35rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    background-color: var(--white);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition);
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 14px;
    color: var(--dark-muted);
    font-size: 0.92rem;
    pointer-events: none;
    transition: var(--transition);
    background-color: transparent;
    padding: 0 4px;
}

/* Floating Label Effects */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input:focus~label,
.form-group textarea:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--white);
    padding: 0 6px;
}

.form-feedback {
    font-size: 0.88rem;
    text-align: center;
    display: none;
}

.form-feedback.success {
    display: block;
    color: #10B981;
}

.form-feedback.error {
    display: block;
    color: var(--primary);
}

/* Map Embed */
.map-section {
    width: 100%;
    margin-top: 40px;
}

.map-inner-wrapper {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.map-inner-wrapper iframe {
    display: block;
}

/* Footer styling */
.main-footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 0 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.8fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-group {
    margin-bottom: 20px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.footer-grid h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-grid ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-grid ul a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-grid ul a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-circle);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-socials a:hover {
    background-color: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #0b111e;
    padding: 24px 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.45);
}

.footer-legal a:hover {
    color: var(--white);
}

/* ==========================================================================
   Responsive Design Breakpoints
   ========================================================================== */

/* Tablet view (Max 992px) */
@media (max-width: 992px) {
    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .showcase-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .pricing-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Navigation Drawer for Mobile (Max 768px) */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        z-index: 1100;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px;
        gap: 24px;
        transition: var(--transition-slow);
        z-index: 1050;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
    }

    .header-actions .btn {
        display: none;
        /* Hide free consultation CTA on smaller devices */
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 16px;
    }

    .lightbox-next {
        right: 16px;
    }

    /* Overlay Toggle Icon Animations */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .card-top-left {
        left: -10px;
        top: 10px;
    }

    .card-bottom-right {
        right: -10px;
        bottom: 10px;
    }
}

/* Small mobile (Max 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.95rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .calculator-card {
        padding: 24px 16px;
    }

    .calc-options .option-btn {
        width: 100%;
        text-align: center;
    }

    .pricing-summary-card {
        padding: 30px 20px;
    }

    .contact-form-block {
        padding: 24px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}