/* ==========================================================================
   Bento Portfolio CSS - Apple Sleek Premium Design
   ========================================================================== */

:root {
    /* Color Palette - Apple Sleek (Monochrome Aluminium & Soft Shadows) */
    --bg-main: #F5F5F7;
    --card-bg: #FFFFFF;
    --card-bg-hover: #FAFAFC;
    --card-bg-glass: rgba(255, 255, 255, 0.75);
    
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --text-light: #A1A1A6;
    
    --accent: #0071E3; /* Apple Blue */
    --accent-hover: #0077ED;
    --accent-light: rgba(0, 113, 227, 0.08);
    
    --border-color: #E8E8ED;
    --border-hover: #D2D2D7;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.1);
    
    /* System Styling */
    --radius-card: 24px;
    --radius-inner: 16px;
    --radius-pill: 99px;
    --duration-smooth: 0.35s;
    --duration-fast: 0.2s;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Outfit', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

/* Navigation Bar */
.nav-blur {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(245, 245, 247, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(224, 224, 230, 0.6);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 22px;
    color: var(--accent);
}

.nav-logo span {
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: #E8F2FC;
    color: var(--accent);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator .dot {
    width: 8px;
    height: 8px;
    background: #34C759;
    border-radius: 50%;
}

.status-indicator .dot.pulse {
    animation: pulse 1.8s infinite ease-in-out;
}

/* Layout Wrapper */
.main-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 100px 24px 60px 24px;
}

.main-header {
    text-align: center;
    margin-bottom: 48px;
}

.main-header h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.main-header .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 24px;
}

/* Bento Card Base */
.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-subtle);
    padding: 28px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--duration-smooth) cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow var(--duration-smooth) cubic-bezier(0.16, 1, 0.3, 1),
                border-color var(--duration-smooth) ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--border-hover);
}

.bento-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    z-index: 2;
}

.bento-card .header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bento-card .card-icon {
    font-size: 18px;
    color: var(--accent);
    background: var(--accent-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

/* Grid Cell Placement spanning - Modular size classes */
.card-hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F7 100%);
    border: 1px solid rgba(220, 220, 225, 0.6);
}

.size-half {
    grid-column: span 2;
    grid-row: span 2;
}

.size-full {
    grid-column: span 4;
    grid-row: span 2;
}

/* Packages and Skills card are shorter in row-spans */
#packagesCard.size-half, #skillsCard.size-half {
    grid-row: span 1;
}
#packagesCard.size-full, #skillsCard.size-full {
    grid-row: span 1;
}

/* CARD 1: HERO DETAIL STYLING */
.hero-bg-gradient {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    height: 100%;
    z-index: 2;
}

.avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    object-fit: cover;
    border: 3px solid #FFFFFF;
    box-shadow: var(--shadow-medium);
}

.avatar-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #0071E3;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid #FFFFFF;
}

.hero-text {
    display: flex;
    flex-direction: column;
}

.hero-badge-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    width: fit-content;
    margin-bottom: 12px;
}

.hero-text h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.hero-text h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.bio-desc {
    color: #48484A;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 18px;
}

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

.stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* CARD 2: PORTFOLIO SHOWCASE DETAIL STYLING */
.category-filters {
    display: flex;
    gap: 6px;
    background: #E8E8ED;
    padding: 3px;
    border-radius: 12px;
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--duration-fast) ease;
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active {
    background: #FFFFFF;
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 4px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 310px;
    padding-right: 4px;
}

.projects-grid::-webkit-scrollbar {
    width: 6px;
}
.projects-grid::-webkit-scrollbar-track {
    background: transparent;
}
.projects-grid::-webkit-scrollbar-thumb {
    background: #D2D2D7;
    border-radius: var(--radius-pill);
}

.project-item {
    position: relative;
    border-radius: var(--radius-inner);
    overflow: hidden;
    height: 140px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    transition: transform var(--duration-smooth) cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow var(--duration-smooth) cubic-bezier(0.16, 1, 0.3, 1);
}

.project-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-smooth) ease;
}

.project-item:hover .project-img {
    transform: scale(1.06);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.05) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    color: white;
}

.project-item-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2px;
}

.project-item-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CARD 3: COST ESTIMATOR CALCULATOR STYLING */
.calc-badge-rate {
    font-size: 11px;
    background: #FFF2E0;
    color: #B25E00;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.calc-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-row {
    display: flex;
    gap: 16px;
}

.flex-1 { flex: 1; }

.input-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.project-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.type-option {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: var(--radius-inner);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all var(--duration-fast) ease;
}

.type-option i {
    font-size: 18px;
    color: var(--text-secondary);
    transition: color var(--duration-fast) ease;
}

.type-option span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.type-option small {
    font-size: 9px;
    color: var(--text-secondary);
}

.type-option input {
    display: none;
}

.type-option:hover {
    border-color: var(--border-hover);
    background: var(--card-bg-hover);
}

.type-option.active {
    border-color: var(--accent);
    background: var(--accent-light);
}

.type-option.active i {
    color: var(--accent);
}

.form-select {
    border: 1px solid var(--border-color);
    background: #F5F5F7;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    transition: border-color var(--duration-fast) ease;
}

.form-select:focus {
    border-color: var(--accent);
}

/* Custom Urgency Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding-top: 4px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #D2D2D7;
    transition: .3s;
    border-radius: 34px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .slider {
    background-color: #34C759; /* iOS Green */
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Range Slider */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.form-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E8E8ED;
    outline: none;
    margin: 8px 0;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-bounds {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Checklist of features */
.features-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feature-checkbox {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    background: var(--card-bg);
    transition: all var(--duration-fast) ease;
}

.feature-checkbox input {
    display: none;
}

.custom-chk {
    width: 16px;
    height: 16px;
    border: 2px solid #D2D2D7;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.15s ease;
}

.feature-checkbox input:checked + .custom-chk {
    background-color: var(--accent);
    border-color: var(--accent);
}

.feature-checkbox input:checked + .custom-chk:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.chk-text {
    display: flex;
    flex-direction: column;
}

.chk-text strong {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.chk-text span {
    font-size: 9px;
    color: var(--text-secondary);
    line-height: 1.2;
    margin-top: 2px;
}

.feature-checkbox:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-hover);
}

.feature-checkbox input:checked {
    background: var(--accent-light);
}

/* Frosted glass results panel */
.calc-results-panel {
    background: rgba(245, 245, 247, 0.6);
    border: 1px solid rgba(220, 220, 225, 0.8);
    border-radius: var(--radius-inner);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    align-items: center;
    gap: 16px 24px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.result-top-badge {
    grid-column: span 3;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.result-price-box {
    margin-bottom: 0;
}

.result-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    margin-bottom: 2px;
}

.price-display {
    display: flex;
    align-items: flex-start;
    color: var(--text-primary);
}

.price-display .currency {
    font-size: 20px;
    font-weight: 700;
    margin-top: 2px;
    margin-right: 2px;
    color: var(--accent);
}

.price-display .price-number {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.result-time-box {
    margin-bottom: 0;
}

.time-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.time-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.time-unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.result-summary-text {
    grid-column: span 3;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 12px;
    margin-top: 0;
}

/* Fixed pricing packages container */
.packages-list {
    display: flex;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Beautiful slim Apple scrollbar for horizontal scrolling */
.packages-list::-webkit-scrollbar {
    height: 6px;
}
.packages-list::-webkit-scrollbar-track {
    background: transparent;
}
.packages-list::-webkit-scrollbar-thumb {
    background: #D2D2D7;
    border-radius: var(--radius-pill);
}

.pkg-item {
    flex: 0 0 calc(33.333% - 11px);
    scroll-snap-align: start;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: var(--radius-inner);
    padding: 20px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transition: all var(--duration-smooth) cubic-bezier(0.16, 1, 0.3, 1);
}

.pkg-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.pkg-item.highlighted {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(240, 246, 255, 0.4) 100%);
    position: relative;
}

.pkg-tag {
    position: absolute;
    top: 10px;
    right: 14px;
    background: var(--accent);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    z-index: 5;
}

.pkg-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.pkg-sub {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

.pkg-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pkg-price span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pkg-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 16px;
    flex-grow: 1;
}

.pkg-features-list {
    list-style: none;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pkg-features-list li {
    font-size: 10px;
    color: #48484A;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pkg-features-list li i {
    color: #30D158; /* iOS Green check */
}

/* CARD 5: TECH STACK */
.skills-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.skills-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-size: 11px;
    font-weight: 600;
    background: #E8E8ED;
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--duration-fast) ease;
}

.skill-tag:hover {
    background: #1D1D1F;
    color: #FFFFFF;
    transform: scale(1.05);
}

.react-color { color: #61DAFB; }
.js-color { color: #F7DF1E; }
.html-color { color: #E34F26; }
.css-color { color: #1572B6; }
.node-color { color: #339933; }
.db-color { color: #003B57; }
.api-color { color: #FF6C37; }
.ai-color { color: #8A2BE2; }
.git-color { color: #F05032; }

/* CARD 6: CONTACT DETAILS */
.contact-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.quick-channels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-inner);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    transition: border-color var(--duration-fast) ease;
}

.channel-item:hover {
    border-color: var(--border-hover);
}

.channel-item .chan-icon {
    font-size: 16px;
    width: 32px;
    height: 32px;
    background: #F5F5F7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-item[data-type="email"] .chan-icon { color: var(--accent); background: var(--accent-light); }
.channel-item[data-type="line"] .chan-icon { color: #06C755; background: rgba(6, 199, 85, 0.08); }
.channel-item[data-type="phone"] .chan-icon { color: #34C759; background: rgba(52, 199, 89, 0.08); }

.chan-info {
    display: flex;
    flex-direction: column;
}

.chan-title {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
}

.chan-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

.btn-copy {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-light);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: all var(--duration-fast) ease;
}

.btn-copy:hover {
    color: var(--text-primary);
    background: #E8E8ED;
}

.socials-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.social-btn {
    flex: 1;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--duration-fast) ease;
}

.social-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--card-bg-hover);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 18px;
}

.form-input {
    width: 100%;
    border: 1px solid var(--border-color);
    background: #F5F5F7;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    outline: none;
    font-family: inherit;
    transition: border-color var(--duration-fast) ease;
}

.form-input:focus {
    border-color: var(--accent);
    background: #FFFFFF;
}

.form-input.textarea {
    resize: none;
    height: 72px;
}

.btn-submit-msg {
    border: none;
    background: #1D1D1F;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--duration-fast) ease;
}

.btn-submit-msg:hover {
    background: #000000;
}

/* Premium Buttons */
.btn-primary-outline {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--duration-fast) ease;
}

.btn-primary-outline:hover {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-premium-action {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--duration-fast) ease;
}

.btn-premium-action:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.35);
}

.w-100 { width: 100%; }

#bookCalculatedBtn {
    grid-column: span 3;
}

/* Footer */
.main-footer {
    max-width: 1200px;
    margin: 48px auto 0 auto;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.accent-text { color: #FF2D55; }

.footer-admin-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-admin-link .divider {
    color: var(--border-hover);
}

.btn-footer-link {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-footer-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ==========================================================================
   MODALS SYSTEM (Apple Frosted Glass Overlays)
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-smooth) cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
    padding: 36px;
    position: relative;
    width: 100%;
    max-width: 900px;
    transform: translateY(20px);
    transition: transform var(--duration-smooth) cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-small .modal-content {
    max-width: 420px;
}

.max-width-600 {
    max-width: 600px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #F5F5F7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    z-index: 10;
}

.close-btn:hover {
    background: #E8E8ED;
    color: var(--text-primary);
}

/* Portfolio Details Modal Layout */
.modal-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
}

.modal-image-panel {
    border-radius: var(--radius-inner);
    overflow: hidden;
    height: 380px;
    border: 1px solid var(--border-color);
}

.modal-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-panel {
    display: flex;
    flex-direction: column;
}

.modal-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    margin-bottom: 8px;
}

.modal-info-panel h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.modal-tag {
    font-size: 10px;
    font-weight: 600;
    background: #F5F5F7;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.modal-desc {
    font-size: 13px;
    color: #48484A;
    line-height: 1.6;
    margin-bottom: 24px;
    overflow-y: auto;
    max-height: 180px;
    padding-right: 6px;
}

.modal-desc::-webkit-scrollbar {
    width: 4px;
}
.modal-desc::-webkit-scrollbar-thumb {
    background: #D2D2D7;
    border-radius: var(--radius-pill);
}

.modal-actions-row {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background var(--duration-fast) ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: #F5F5F7;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background var(--duration-fast) ease;
}

.btn-secondary:hover {
    background: #E8E8ED;
}

/* ==========================================================================
   ADMIN CMS PANELS & CRUD STYLING
   ========================================================================== */
.admin-only-flex {
    display: none; /* Injected/Toggled via JS */
}

.admin-only-inline {
    display: none;
}

.admin-only-block {
    display: none;
}

/* When active, show admin elements */
body.admin-mode .admin-only-flex {
    display: flex !important;
}

body.admin-mode .admin-only-inline {
    display: inline-block !important;
}

body.admin-mode .admin-only-block {
    display: block !important;
}

/* Add project hover trigger card inside bento grid */
.add-project-trigger {
    grid-column: span 2;
    justify-content: center;
    margin-top: 14px;
}

.btn-admin-add {
    background: #34C759; /* Green */
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(52, 199, 89, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--duration-fast) ease;
}

.btn-admin-add:hover {
    background: #28a745;
    box-shadow: 0 6px 14px rgba(52, 199, 89, 0.3);
}

.modal-admin-controls {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 18px;
}

.modal-admin-controls h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.admin-buttons-row {
    display: flex;
    gap: 10px;
}

.btn-admin-edit {
    background: #FF9500; /* Apple Orange */
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-admin-edit:hover { background: #E08200; }

.btn-admin-delete {
    background: #FF3B30; /* Apple Red */
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-admin-delete:hover { background: #E03026; }

/* Edit triggers overlay on elements */
.edit-indicator-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FF9500;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
    z-index: 5;
    transition: transform 0.2s ease;
}

.edit-indicator-badge:hover {
    transform: scale(1.1);
}

/* Authentication Dark UI styles */
.glassmorphism-dark {
    background: rgba(30, 30, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.glassmorphism-dark .close-btn {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.glassmorphism-dark .close-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 10px;
}

.login-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-header p {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row-auth {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row-auth label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
}

.auth-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    color: white;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

.btn-auth-submit {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s ease;
}

.btn-auth-submit:hover {
    background: var(--accent-hover);
}

.auth-error-msg {
    color: #FF453A; /* Red */
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

/* CRUD Admin Forms Details */
.admin-crud-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 18px;
}

.form-group-crud {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-crud label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.crud-input, .crud-select {
    width: 100%;
    border: 1px solid var(--border-color);
    background: #F5F5F7;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.crud-input:focus, .crud-select:focus {
    border-color: var(--accent);
    background: white;
}

.crud-input.textarea {
    resize: vertical;
    min-height: 90px;
}

.crud-flex-row {
    display: flex;
    gap: 16px;
}

.crud-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
    margin-top: 8px;
}

.btn-cancel {
    background: #E8E8ED;
    border: none;
    color: var(--text-primary);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
}

.btn-cancel:hover { background: #D2D2D7; }

.btn-save-crud {
    background: #34C759;
    border: none;
    color: white;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(52, 199, 89, 0.2);
}

.btn-save-crud:hover {
    background: #28a745;
}

/* Toast Alert Notices */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: rgba(30, 30, 32, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast i {
    color: #30D158; /* iOS green */
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Bento fluid grid adjustment)
   ========================================================================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .size-half, .size-full { grid-column: span 2 !important; }
    .card-hero, .card-projects, .card-calculator, .card-contact { grid-row: span 2 !important; }
    .card-packages, .card-skills { grid-row: span 1 !important; }
    
    .pkg-item {
        flex: 0 0 calc(50% - 8px) !important;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    .main-wrapper {
        padding: 80px 16px 40px 16px;
    }
    
    .main-header h1 {
        font-size: 32px;
        letter-spacing: -0.8px;
    }
    
    .main-header .subtitle {
        font-size: 14px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bento-card {
        grid-column: span 1 !important;
        grid-row: auto !important;
        padding: 20px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
    }
    
    .hero-badge-tag {
        margin: 0 auto 10px auto;
    }
    
    .hero-stats {
        width: 100%;
        justify-content: space-around;
        gap: 10px;
    }
    
    .category-filters {
        width: 100%;
        overflow-x: auto;
        padding: 4px;
    }
    
    .bento-card .card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
    
    .calc-results-panel {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .result-top-badge, .result-summary-text, #bookCalculatedBtn {
        grid-column: span 1 !important;
    }
    
    .features-checklist {
        grid-template-columns: 1fr;
    }
    
    .pkg-item {
        flex: 0 0 100% !important;
    }
    
    .modal-grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-image-panel {
        height: 200px;
    }
    
    .modal-content {
        padding: 24px;
    }
    
    .modal-actions-row {
        flex-direction: column;
    }
    
    .main-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .crud-flex-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Desktop Split Layout for full-width Contact card */
@media (min-width: 1025px) {
    .contact-body {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 32px;
        align-items: start;
    }
    .contact-form {
        border-top: none !important;
        padding-top: 0 !important;
        border-left: 1px solid rgba(0, 0, 0, 0.05);
        padding-left: 32px;
    }
}

/* ==========================================================================
   BENTO LAYOUT MANAGER & DRAG/DROP STYLES (Admin Only)
   ========================================================================== */

/* Layout Settings Top Bar styling */
.layout-settings-bar {
    grid-column: 1 / 5;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-inner);
    padding: 16px 24px;
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 8px;
    animation: fadeIn var(--duration-smooth) ease;
}

.layout-settings-bar.active {
    display: flex;
}

.layout-bar-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.layout-bar-title i {
    color: var(--accent);
    font-size: 18px;
}

.layout-bar-title h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.layout-bar-title p {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.layout-bar-actions {
    display: flex;
    gap: 12px;
}

/* Edit Mode Grid highlights */
.bento-grid.layout-editing {
    background: rgba(0, 113, 227, 0.02);
    border: 2px dashed rgba(0, 113, 227, 0.15);
    border-radius: 32px;
    padding: 24px;
    gap: 24px;
}

/* Card layout handles and overlays */
.card-layout-controls {
    position: absolute;
    inset: 0;
    background: rgba(29, 29, 31, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-smooth) cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    color: white;
    padding: 24px;
    text-align: center;
}

.bento-grid.layout-editing .bento-card {
    cursor: move;
    user-select: none;
}

.bento-grid.layout-editing .bento-card .card-layout-controls {
    opacity: 1;
    pointer-events: auto;
}

.layout-card-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.layout-card-size-lbl {
    font-size: 10px;
    opacity: 0.6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-bottom: 8px;
}

.card-drag-handle {
    font-size: 28px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: all 0.2s ease;
}

.card-drag-handle:hover {
    background: white;
    color: var(--accent-hover);
    transform: scale(1.1);
}

.card-drag-handle:active {
    cursor: grabbing;
}

.layout-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}

.layout-control-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--duration-fast) ease;
}

.layout-control-btn:hover {
    background: white;
    color: var(--text-primary);
    transform: translateY(-1px);
}

.layout-control-btn.btn-size-toggle {
    background: var(--accent);
    border-color: var(--accent);
}

.layout-control-btn.btn-size-toggle:hover {
    background: var(--accent-hover);
    color: white;
}

/* Drag states visual feedback */
.bento-card.card-dragging {
    opacity: 0.25;
    border: 2px dashed var(--accent) !important;
    box-shadow: none !important;
    transform: scale(0.96);
}

.bento-card.card-dragover {
    border: 2.5px dashed var(--accent) !important;
    background: rgba(0, 113, 227, 0.05) !important;
    box-shadow: var(--shadow-medium) !important;
    transform: scale(1.02);
}

/* Adjust size label icon details */
.btn-size-toggle i {
    font-size: 10px;
}

@media (max-width: 1024px) {
    .layout-settings-bar {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .layout-settings-bar {
        grid-column: span 1;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .layout-control-btn.desktop-only-btn {
        display: none;
    }
}


