* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent mobile scaling issues */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.main-container {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    flex-direction: column;
}

/* Vertical scroll container for rows */
.rows-container {
    flex: 1;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rows-container::-webkit-scrollbar {
    display: none;
}

/* Each row takes full height of rows-container */
.card-row {
    height: 100%; /* Full height of rows-container */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Progress Indicator */
.progress-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 3px;
    z-index: 1000;
    display: flex;
    gap: 2px;
    padding: 0 10px;
}

.progress-segment {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.progress-segment.active {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Horizontal scroll container for cards */
.card-container {
    width: 100%;
    flex: 1;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.card-container::-webkit-scrollbar {
    display: none;
}

/* Unified card system - all cards use same base structure */
.card {
    min-width: 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0; /* Remove base padding - handle in content */
    overflow: hidden;
    box-sizing: border-box;
}

/* Card background (for image/video cards) */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Card overlay (for image cards with text overlay) */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.8) 100%
    );
    z-index: 2;
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: flex-end; /* Push content to bottom */
    align-items: stretch; /* Allow content to fill full width */
    padding: 0; /* No padding - card-content handles it */
}

/* Card content - always the main content container */
.card-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%; /* Full height of card */
    padding: 60px 30px 100px 30px; /* Bottom padding to clear navigation (80px nav + 20px space) */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* === THREE BASIC CARD TYPES === */

/* 1. Text Cards - Content feeds up from bottom */
.text-card .card-content,
.service-card .card-content,
.team-card .card-content,
.company-card .card-content,
.faq-card .card-content,
.contact-card .card-content,
.quote-cta-card .card-content,
.contact-info-card .card-content,
.consultation-card .card-content,
.quote-card .card-content {
    justify-content: flex-end; /* Content feeds up from bottom */
}

/* 2. Background Cards - Content should feed up from bottom */
.portfolio-card .card-content,
.product-card .card-content,
.image-card .card-content {
    position: absolute !important; /* Position content at bottom of overlay - force override */
    bottom: 0 !important; /* Stick to bottom - force override */
    left: 0 !important; /* Full width - force override */
    right: 0 !important; /* Full width - force override */
    height: auto !important; /* Auto height instead of 100% - force override */
    justify-content: flex-end; /* Content feeds up from bottom */
}

/* 3. Centered Cards - Content stays centered */
.landing-card .card-content {
    justify-content: center; /* Landing content stays centered */
}

/* Card Types */

/* Landing Card */
.landing-card {
    position: relative;
    overflow: hidden;
}

.landing-card .card-bg {
    transition: opacity 0.5s ease-in-out; /* Keep the transition for background changes */
}

.landing-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.7) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch; /* Allow content to fill full height */
    text-align: center;
    padding: 0; /* Let card-content handle padding */
}

.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Landing card stays centered */
    gap: 60px;
    width: 100%; /* Remove max-width constraint */
    margin: 0 auto;
    height: 100%; /* Full height of card-content */
}

/* Constrain only the logo, not the buttons */
.landing-content .logo-container {
    max-width: 400px;
    width: 100%;
}

/* Ensure CTA buttons are full width in all contexts */
.landing-content .card-cta,
.contact-form .card-cta,
.quote-form .card-cta,
form .card-cta {
    width: 100% !important; /* Force full width */
}

/* Ensure all CTA buttons follow the pattern */
.card-cta .card-button {
    width: 100% !important; /* Force all buttons to be full width */
}

/* Specific fix for landing card dual buttons */
.landing-content .card-cta.dual .card-button {
    flex: 1 !important;
    width: 100% !important;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    max-width: 280px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

/* Removed .contact-buttons - now using unified .card-cta system */

/* Removed .contact-btn - now using unified .card-button system */

.btn-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Consultation Card */
.consultation-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    text-align: center;
}

.consultation-icon {
    margin-bottom: 20px;
    display: block;
}

.consultation-icon .material-icons {
    font-size: 60px;
}

.consultation-features {
    margin: 25px 0;
    text-align: left;
}

.consultation-features .feature {
    padding: 8px 0;
    font-size: 14px;
    color: #aaa;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.consultation-features .feature:last-child {
    border-bottom: none;
}

/* Quote Card */
.quote-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    text-align: center;
}

.quote-icon {
    margin-bottom: 20px;
    display: block;
}

.quote-icon .material-icons {
    font-size: 60px;
}

.quote-benefits {
    margin: 25px 0;
    text-align: left;
}

.quote-benefits .benefit {
    padding: 8px 0;
    font-size: 14px;
    color: #aaa;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-benefits .benefit .material-icons {
    font-size: 16px;
    color: #fff;
}

.quote-benefits .benefit:last-child {
    border-bottom: none;
}

/* Portfolio Cards */
.portfolio-card .card-bg {
    height: 60%; /* Portfolio cards show image in top 60% */
}

/* Portfolio cards now use the unified background card system above */

/* Portfolio overlay uses default bottom alignment from base .card-overlay */


.portfolio-features {
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.portfolio-features .feature {
    font-size: 14px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 6px;
}

.portfolio-features .feature .material-icons {
    font-size: 16px;
    color: #fff;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.portfolio-tags .tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #ccc;
}

.portfolio-metrics {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

/* Featured portfolio cards get enhanced styling */
.portfolio-card.featured .card-category {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    color: #000;
}

/* Team Cards */
.team-card {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    text-align: center;
}

.team-avatar {
    margin: 0 auto 20px;
}

.team-avatar .avatar-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto;
}

.team-card h3 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.team-skills .skill-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

/* FAQ Card */
.faq-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.faq-preview {
    margin: 25px 0;
}

.faq-item {
    margin-bottom: 12px; /* Reduced from 20px */
    padding: 12px; /* Reduced from 15px */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #fff;
}

.faq-item p {
    font-size: 14px;
    color: #aaa;
    margin: 0;
}

/* Company Card */
.company-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    text-align: center;
}

.company-stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
}

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

.company-stat .stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.company-stat .stat-label {
    font-size: 12px;
    opacity: 0.8;
    color: #aaa;
}

.company-mission {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.company-mission h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

/* Project Details Slide-up Styles */
.project-hero {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.project-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: white;
}

/* Removed .project-category - using unified .card-category */


.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item .material-icons {
    font-size: 18px;
    color: #43e97b;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.result-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-metric {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.result-label {
    font-size: 14px;
    color: #aaa;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-section {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.testimonial-section blockquote {
    font-size: 18px;
    font-style: italic;
    margin: 15px 0;
    color: #fff;
}

.testimonial-section cite {
    font-size: 14px;
    color: #aaa;
}

.project-cta {
    margin-top: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.project-cta h3 {
    margin-bottom: 10px;
    color: #fff;
}

/* FAQ Accordion Styles */
.faq-accordion {
    margin: 25px 0;
}

.faq-accordion-item {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-accordion-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-accordion-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.faq-toggle {
    transition: transform 0.3s ease;
    color: #aaa;
}

.faq-accordion-item.active .faq-toggle {
    transform: rotate(180deg);
    color: #fff;
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-accordion-item.active .faq-accordion-content {
    max-height: 500px;
}

.faq-accordion-content p {
    padding: 20px;
    margin-top: 20;
    color: #ccc;
    line-height: 1.6;
}

.faq-cta {
    margin-top: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.faq-cta h3 {
    margin-bottom: 10px;
    color: #fff;
}

/* Video Card */

.card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.card-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 16px;
}

/* Image Card - uses unified background card system above */

.card-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
}

/* Text Card */
.text-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3a3a3a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-info h4 {
    margin: 0;
    font-size: 16px;
}

.user-info span {
    color: #888;
    font-size: 14px;
}

.card-tags {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.card-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    color: #fff;
}

.card-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Product Card */
.product-card .card-bg {
    height: 60%; /* Product cards show image in top 60% */
}

/* Product Card - uses unified background card system above */

.product-card .card-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.9) 60%,
        rgba(0,0,0,1) 100%
    );
    /* Uses default bottom alignment from base .card-overlay */
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 10px 0;
}

.rating {
    margin: 10px 0;
    font-size: 16px;
}

/* Music Card */

.music-card .card-bg {
    filter: blur(20px); /* Music cards have blurred background */
}

.music-player {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.album-art {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #3a3a3a, #2a2a2a);
    border-radius: 15px;
    margin: 0 auto 20px;
}

.track-info {
    text-align: center;
    margin-bottom: 25px;
}

.track-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.track-info p {
    color: #888;
    font-size: 16px;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.player-controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.player-controls button:hover {
    transform: scale(1.1);
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    width: 35%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    transition: width 0.3s ease;
}

/* Event Card */
.event-card {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
}

.event-date {
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.event-date .month {
    font-size: 14px;
    font-weight: 600;
}

.event-date .day {
    font-size: 28px;
    font-weight: 700;
}

.event-details {
    margin: 25px 0;
}

.detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Stats Card */
.stats-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    color: #888;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
}

.stat-change.positive {
    color: #43e97b;
}

.stat-change.negative {
    color: #f5576c;
}

.chart-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Quote Card */
.quote-card {
    background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
    color: #fff;
    text-align: center;
}

.quote-mark {
    font-size: 120px;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: -20px;
}

blockquote {
    font-size: 24px;
    font-style: italic;
    line-height: 1.4;
    margin: 20px 0;
    font-weight: 300;
}

cite {
    font-size: 16px;
    opacity: 0.8;
    font-style: normal;
}

.quote-card .action-btn {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.quote-card .action-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* News Card */

.news-card .card-bg {
    height: 50%; /* News cards show image in top 50% */
}


.news-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

/* Weather Card */
.weather-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    text-align: center;
    color: #fff;
}

.weather-header {
    margin-bottom: 30px;
}

.weather-header h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.weather-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.weather-icon {
    font-size: 80px;
}

.temperature {
    font-size: 80px;
    font-weight: 300;
}

.weather-desc {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.weather-details {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

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

.weather-item span:first-child {
    display: block;
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 5px;
    color: #fff;
}

.weather-item span:last-child {
    font-size: 18px;
    font-weight: 600;
}

/* Profile Card */
.profile-card {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 10px;
}

.profile-stats {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.profile-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* Common Card Elements */

.card-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.card-content p {
    font-size: 18px;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 15px;
}

.card-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto; /* Push single buttons to bottom */
    width: 100%; /* Ensure all buttons are full width */
    text-align: center; /* Center button text */
    text-decoration: none; /* For anchor tags */
    display: flex; /* For consistent layout */
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    box-sizing: border-box; /* Include padding in width */
}

.card-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.card-button.primary {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #000;
}

.card-button.primary:hover {
    background: rgba(255, 255, 255, 1);
    color: #000;
}

.card-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Unified CTA (Call-to-Action) system for all cards */
.card-cta {
    margin-top: auto; /* Always stick to bottom */
    padding-top: 20px; /* Space above CTA area */
    display: flex;
    gap: 12px;
    width: 100%;
}

/* Single button layout */
.card-cta.single {
    justify-content: center;
}

/* Two button layout - horizontal on desktop */
.card-cta.dual {
    justify-content: space-between;
}

.card-cta.dual .card-button {
    flex: 1; /* Equal width buttons */
    max-width: calc(50% - 6px); /* Account for gap */
}

/* Legacy support - keep existing card-buttons working */
.card-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: auto; /* Push buttons to bottom */
    padding-top: 20px; /* Ensure space above buttons */
}

.project-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

/* Bottom Navigation */
.bottom-nav {
    height: 80px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-icon {
    font-size: 24px;
    margin-right: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* When nav-icon contains home-logo, remove background and padding */
.nav-icon:has(.home-logo) {
    background: none;
    padding: 0;
    border-radius: 0;
}

.nav-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.home-logo {
    width: 43px; /* Reduced by ~20% from 54px */
    height: 43px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes the image white to match the theme */
    transition: all 0.3s ease;
}

/* Hover effect for the logo itself */
.nav-icon:has(.home-logo):hover .home-logo {
    transform: scale(1.05);
}

/* Override the general nav-icon hover when it contains logo */
.nav-icon:has(.home-logo):hover {
    background: none;
    transform: none;
}

.nav-menu {
    flex: 1;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    white-space: nowrap;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border-color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Touch interactions */
.card:active {
    transform: scale(0.98);
}

.nav-item:active,
.card-button:active,
.action-btn:active {
    transform: scale(0.95);
}

/* Glassy Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay-menu.active {
    opacity: 1;
    visibility: visible;
}

.overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.menu-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 85%;
    max-width: 350px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay-menu.active .menu-container {
    transform: translate(-50%, -50%) scale(1);
}

.menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 25px 5px;
}

.close-menu {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #aaa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-menu .material-icons {
    font-size: 16px;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: scale(1.05);
}

.menu-items {
    padding: 10px 25px 25px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin: 6px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    border: none;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.menu-item:active {
    transform: translateX(3px) scale(0.98);
}

.menu-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.menu-icon .material-icons {
    font-size: 18px;
}

.menu-text h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #fff;
}

.menu-text p {
    display: none; /* Hide descriptions to reduce chrome */
}

/* New Card Types */

/* Case Study Cards */

.case-study-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}


.case-study-metrics {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 14px;
    color: #aaa;
}

/* About Cards */
.about-card {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    text-align: center;
}

.about-header {
    margin-bottom: 30px;
}

.about-avatar {
    margin: 0 auto 20px;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.about-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

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

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* Values Card */
.values-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.values-list {
    margin-top: 30px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.value-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
}

.value-content p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.4;
    margin: 0;
}

/* Timeline Card */
.timeline-card {
    background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
    color: #000;
}

.timeline {
    margin-top: 30px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    width: 2px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
}

.timeline-year {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-content p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* Service Cards */
.service-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    text-align: center;
}

.service-icon {
    margin-top: 40px; /* Push down to avoid progress bar on all screen sizes */
    margin-bottom: 20px;
    display: block;
}

.service-icon .material-icons {
    font-size: 60px;
}

.service-features {
    margin: 25px 0;
    text-align: left;
}

.feature {
    padding: 8px 0;
    font-size: 14px;
    color: #aaa;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature:last-child {
    border-bottom: none;
}

.service-pricing {
    margin: 30px 0;
    text-align: center;
}

.price-from {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 5px;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

/* Contact and Quote CTA Cards */
.contact-card,
.quote-cta-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* Removed .quote-features - unused */

.feature-item {
    padding: 8px 0;
    font-size: 14px;
    color: #aaa;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

.contact-form,
.quote-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    flex: 1; /* Allow form to grow and push CTA to bottom */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Contact Info Card */
.contact-info-card {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
}

.contact-methods {
    margin: 30px 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px; /* Drastically reduced from 25px */
    padding: 15px; /* Reduced from 20px */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon .material-icons {
    font-size: 24px;
}

.contact-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.availability {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.availability h3 {
    margin-bottom: 10px;
}

.availability p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Form Loading States */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

.form-success {
    background: rgba(67, 233, 123, 0.1) !important;
    border-color: #43e97b !important;
}

.form-error {
    background: rgba(245, 87, 108, 0.1) !important;
    border-color: #f5576c !important;
}

/* Longform Reader */
.longform-reader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.longform-reader.active {
    opacity: 1;
    visibility: visible;
}

.longform-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.longform-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85vh;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.longform-reader.active .longform-container {
    transform: translateY(0);
}

.longform-header {
    padding: 20px 25px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.longform-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #aaa;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 300;
}

.longform-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.05);
}

.longform-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px 25px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.longform-content::-webkit-scrollbar {
    width: 6px;
}

.longform-content::-webkit-scrollbar-track {
    background: transparent;
}

.longform-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.longform-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Longform content styling */
.longform-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
}

.longform-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #fff;
    line-height: 1.3;
}

.longform-content h3 {
    font-size: 20px;
    font-weight: 500;
    margin: 25px 0 12px;
    color: #fff;
    line-height: 1.4;
}

.longform-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 16px;
}

.longform-content .lead {
    font-size: 18px;
    color: #e0e0e0;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Form styling inside longform reader */
.longform-content .contact-form,
.longform-content .quote-form {
    margin-top: 20px;
}

.longform-content .form-group {
    margin-bottom: 25px;
}

.longform-content .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #fff;
}

.longform-content .form-group input,
.longform-content .form-group textarea,
.longform-content .form-group select {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.longform-content .form-group input:focus,
.longform-content .form-group textarea:focus,
.longform-content .form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.longform-content .form-group input::placeholder,
.longform-content .form-group textarea::placeholder {
    color: #888;
}

.longform-content .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.longform-content .card-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #000;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.longform-content .card-button:hover {
    background: rgba(255, 255, 255, 1);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .card-content {
        padding: 50px 25px 90px 25px; /* Bottom padding to clear 70px nav + 20px space */
    }
    
    .card-content h2 {
        font-size: 28px;
    }
    
    .card-content p {
        font-size: 16px;
    }
    
    .bottom-nav {
        height: 70px;
        padding: 0 15px;
    }
    
    
    .nav-icon {
        font-size: 20px;
        padding: 12px;
        margin-right: 15px;
    }
    
    .nav-item {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    /* Menu responsive */
    .menu-container {
        width: 90%;
        max-width: 320px;
    }
    
    .menu-header {
        padding: 10px 20px 5px;
    }
    
    .menu-items {
        padding: 8px 20px 20px;
    }
    
    .menu-item {
        padding: 14px;
        gap: 14px;
    }
    
    .menu-icon {
        width: 36px;
        height: 36px;
    }
    
    .menu-icon .material-icons {
        font-size: 16px;
    }
    
    .menu-text h3 {
        font-size: 15px;
    }
    
    /* Form responsive */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .case-study-metrics {
        gap: 20px;
    }
    
    .about-stats {
        gap: 20px;
    }
    
    .contact-method {
        padding: 15px;
        gap: 15px;
    }
}

@media (max-width: 360px) {
    .card-content {
        padding: 40px 20px 85px 20px; /* Bottom padding to clear 65px nav + 20px space */
    }
    
    .card-content h2 {
        font-size: 24px;
    }
    
    .card-content p {
        font-size: 15px;
    }
    
    .bottom-nav {
        height: 65px;
        padding: 0 10px;
    }
    
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-item {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .menu-container {
        width: 95%;
        max-width: 300px;
    }
    
    .menu-header {
        padding: 12px 18px 6px;
    }
    
    .menu-items {
        padding: 6px 18px 18px;
    }
    
    .menu-item {
        padding: 12px;
        gap: 12px;
    }
    
    .menu-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .menu-text h3 {
        font-size: 14px;
    }
    
    .case-study-metrics {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Landing card responsive */
    .landing-content {
        gap: 40px;
    }
    
    .logo-image {
        max-width: 240px;
        max-height: 100px;
    }
    
    /* Removed .contact-btn responsive rule - using unified .card-button system */
    
    /* Progress indicator responsive */
    .progress-indicator {
        top: 15px;
        left: 15px;
        right: 15px;
        padding: 0 5px;
    }
    
    /* Scale features on small screens */
    .consultation-features,
    .service-features,
    .portfolio-features {
        margin: 18px 0; /* Slightly reduce margins */
    }
    
    .consultation-features .feature,
    .service-features .feature {
        font-size: 13px; /* Slightly smaller text */
        padding: 7px 0; /* Slightly reduce padding */
    }
    
    /* Portfolio features remain 2-column but with smaller text */
    .portfolio-features .feature {
        font-size: 13px;
    }
    
    /* Hide service icons, team avatars, and FAQ preview at this smaller breakpoint */
    .service-icon,
    .team-avatar,
    .faq-preview {
        display: none;
    }
    
    /* Reduce spacing on small screens */
    .contact-method {
        margin-bottom: 8px; /* Much more aggressive reduction */
        padding: 12px; /* Further reduced */
        gap: 12px; /* Further reduced */
    }
    
    .faq-item {
        margin-bottom: 8px; /* Much more aggressive reduction */
        padding: 10px; /* Further reduced */
    }
    
    .feature-grid {
        margin: 15px 0; /* Reduced from 20px 0 */
    }
    
}


/* Enhanced mobile optimizations */
@media (max-width: 768px) {
    /* Fix viewport scaling issues */
    .main-container {
        height: 100vh;
        height: 100dvh;
        width: 100%;
        overflow-x: hidden;
    }
    
    .card-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .rows-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    
    .service-icon .material-icons {
        font-size: 48px; /* Slightly smaller on mobile */
    }
    
    /* Enhanced portfolio card overlay for better text readability on mobile */
    .portfolio-card .card-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.2) 0%,
            rgba(0,0,0,0.5) 30%,
            rgba(0,0,0,0.8) 60%,
            rgba(0,0,0,0.95) 100%
        );
    }
    
    .portfolio-card.featured .card-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.3) 0%,
            rgba(0,0,0,0.6) 30%,
            rgba(0,0,0,0.85) 60%,
            rgba(0,0,0,0.98) 100%
        );
    }
    
    /* Additional text shadow for portfolio cards on mobile */
    .portfolio-card .card-content h2,
    .portfolio-card .card-content p,
    .portfolio-card .card-category {
        text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    }
    
    
    /* Contact cards use same height system as all other cards */
    
    /* Improve touch targets */
    .card-button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
    }
    
    /* Keep original nav-item styling for mobile */
    
    /* Better button layout on mobile */
    .card-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .card-button {
        width: 100%;
        text-align: center;
    }
    
    /* Stack CTA buttons vertically on mobile */
    .card-cta.dual {
        flex-direction: column !important;
        gap: 10px;
    }
    
    .card-cta.dual .card-button {
        flex: none !important;
        max-width: none !important;
        width: 100% !important;
    }
    
    /* Specific fix for landing card on mobile */
    .landing-content .card-cta.dual {
        flex-direction: column !important;
    }
    
    .landing-content .card-cta.dual .card-button {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Service icons are hidden on mobile - no sizing needed */
    
    .service-pricing {
        margin: 15px 0; /* Optimize spacing without features */
    }
    
    .service-features,
    .portfolio-tags {
        display: none; /* Hide secondary elements on mobile to reduce crowding */
    }
    
    /* Keep FAQ preview visible - FAQ cards have less content than service cards */
    
    /* Keep team avatars visible - team cards have less content */
    
    /* Service icons still visible on this breakpoint with optimized sizing */
    .service-icon .material-icons {
        font-size: 50px; /* Slightly smaller than desktop 60px */
    }
    
    /* Optimize service card layout without features and icons */
    .service-card .card-content h2 {
        font-size: 28px; /* Larger titles since we have much more space */
        margin-bottom: 15px; /* Space after title */
    }
    
    .service-card .card-content p {
        font-size: 17px; /* Larger descriptions since we have more space */
        line-height: 1.4; /* Tighter line height */
        margin-bottom: 25px; /* More space before pricing */
    }
    
    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .card-content {
        padding: 30px 15px 85px 15px; /* Bottom padding to clear 65px nav + 20px space */
    }
    
    .card-content h2 {
        font-size: 20px;
    }
    
    .card-content p {
        font-size: 14px;
    }
    
    
    /* Service icons are hidden on mobile - no sizing needed */
    
    .service-features {
        margin: 15px 0; /* Reduce spacing */
    }
    
    /* Hide features and tags on very small screens to save space */
    .consultation-features,
    .service-features,
    .portfolio-features,
    .portfolio-tags {
        display: none;
    }
    
    /* Reduce service card content on tiny screens */
    .service-pricing {
        margin: 10px 0; /* Reduce spacing */
    }
    
    /* Service icons are hidden at this breakpoint - no rules needed */
    
    /* Minimal spacing on tiny screens */
    .contact-method {
        margin-bottom: 4px; /* Ultra-minimal margin */
        padding: 6px; /* Ultra-minimal padding */
        gap: 6px; /* Ultra-minimal gap */
    }
    
    .faq-item {
        margin-bottom: 4px; /* Ultra-minimal margin */
        padding: 6px; /* Ultra-minimal padding */
    }
    
    .feature-grid {
        margin: 8px 0; /* Minimal margin */
    }
    
    /* Minimal card overlay padding */
    .card-overlay {
        padding: 15px 8px; /* Ultra-minimal padding */
    }
    
    .portfolio-card .card-content {
        padding-bottom: 6px; /* Ultra-minimal bottom padding */
    }
    
    .landing-overlay {
        padding: 20px 8px; /* Ultra-minimal landing overlay padding */
    }
    
    /* Reduce card padding even more on tiny screens */
    .card {
        padding: 30px 15px; /* Further reduced from 40px 20px */
    }
    
    /* Keep existing nav-item styles from other breakpoints */
}