/* Home Page Specific Styles */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(circle at 80% 20%, rgba(108, 99, 255, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Trust Strip */
.trust-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-color: rgba(255, 255, 255, 0.02);
  padding: 2rem 0;
  overflow: hidden;
}

.trust-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-stat {
  display: flex;
  flex-direction: column;
}

.trust-stat-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-light);
}

.trust-stat-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Services Overview */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(108, 99, 255, 0.1);
  color: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform var(--duration-fast) var(--ease-out);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  background-color: var(--color-primary);
  color: white;
}

.service-card .learn-more i {
  transition: transform 0.3s ease;
}

.service-card:hover .learn-more i {
  transform: translateX(5px);
}

/* Featured Works */
.works-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 992px) {
  .works-editorial {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
  }
  
  .works-editorial .project-card:first-child {
    grid-row: 1 / -1;
  }
}

.project-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project-img-wrapper {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.works-editorial .project-card:first-child .project-img-wrapper {
  aspect-ratio: 4/3;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9), transparent);
  transform: translateY(20px);
  opacity: 0.9;
  transition: all var(--duration-medium) var(--ease-out);
}

.project-card:hover .project-overlay {
  transform: translateY(0);
  opacity: 1;
}

.project-category {
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.project-title {
  color: white;
  margin-bottom: 0;
}

/* Process Section */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}

.process-step {
  position: relative;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border);
}

.process-step::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: -20px;
  right: 0;
  line-height: 1;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-bg-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  margin: 4rem 0;
  border: 1px solid var(--color-border);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section .btn {
  margin-top: 2rem;
}

/* Pricing Section */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.pricing-card {
  flex: 1 1 300px;
  max-width: 380px;
  background-color: var(--color-bg-card);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.1);
}

.pricing-card.featured {
  background-color: var(--color-bg-card);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.05) 100%);
  border: 2px solid var(--color-primary);
}

.pricing-card.featured::before {
  content: attr(data-tag);
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--color-primary-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 30px;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pricing-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(255, 77, 46, 0.15), rgba(255, 77, 46, 0.05));
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 16px rgba(255, 77, 46, 0.1);
}

.pricing-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.pricing-desc {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  min-height: 40px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.pricing-features li i {
  color: var(--color-accent);
  background: rgba(255, 77, 46, 0.1);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.pricing-features li.disabled i {
  color: var(--color-text-muted);
  background: rgba(0,0,0,0.05);
}

/* Responsive Pricing UI */
@media (max-width: 768px) {
  .pricing-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.25rem;
    padding: 1rem 1rem 2.5rem; /* bottom padding for shadow/scrollbar */
    margin: 0 -1rem; /* negative margin to pull to screen edge */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pricing-grid::-webkit-scrollbar {
    display: none;
  }
  .pricing-card {
    flex: 0 0 80%; /* Takes up 80% of the flex container */
    max-width: 320px; /* Ensures it doesn't get too wide on landscape phones */
    scroll-snap-align: center;
    padding: 1.5rem 1rem;
  }
  .pricing-price {
    font-size: 1.75rem; /* Reduced so "Custom" or long prices don't break */
  }
  .pricing-title {
    font-size: 1.15rem;
  }
  .pricing-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

/* Modern Services Section */
.modern-services-section {
    padding: 6rem 0 4rem;
    background-color: var(--color-bg-primary);
    overflow: hidden;
}

.ms-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

/* Left Column */
.ms-left-col {
    padding-right: 2rem;
}

.ms-header {
    margin-bottom: 3rem;
}

.ms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0,0,0,0.05);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .ms-eyebrow {
    background: rgba(255,255,255,0.05);
}

.ms-title {
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.ms-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 90%;
}

/* Service List */
.ms-service-list {
    display: flex;
    flex-direction: column;
}

.ms-service-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.ms-service-item:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: 0;
}

[data-theme="dark"] .ms-service-item:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ms-service-item:hover, .ms-service-item.active {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.03);
    border-radius: 16px;
    z-index: 2;
    transform: translateX(10px);
}

[data-theme="dark"] .ms-service-item:hover, [data-theme="dark"] .ms-service-item.active {
    background: var(--color-bg-elevated);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.05);
}

.ms-item-num {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-right: 1.5rem;
    font-variant-numeric: tabular-nums;
}

.ms-service-item.active .ms-item-num {
    color: var(--color-primary);
    font-weight: 600;
}

.ms-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1.5rem;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

[data-theme="dark"] .ms-item-icon {
    background: rgba(255,255,255,0.05);
}

.ms-service-item.active .ms-item-icon {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.3);
}

.ms-item-content {
    flex: 1;
}

.ms-item-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ms-item-content p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.ms-item-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--color-primary);
}

.ms-service-item.active .ms-item-arrow, .ms-service-item:hover .ms-item-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Right Column: Preview Mockup */
.ms-preview-pane {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
    min-height: 550px;
}

[data-theme="dark"] .ms-preview-pane {
    background: #15181a;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.ms-preview-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.ms-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.05);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

[data-theme="dark"] .ms-badge {
    background: rgba(255,255,255,0.05);
}

.ms-preview-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ms-preview-header p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    max-width: 250px;
    line-height: 1.5;
}

/* Split Preview Body */
.ms-preview-body {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.ms-preview-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 0 0 200px;
    transition: opacity 0.3s ease;
}

.ms-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.ms-feature-item i {
    color: #2e2e2e;
    font-size: 1rem;
}
[data-theme="dark"] .ms-feature-item i { color: #fff; }

/* Browser Mockup */
.ms-browser-graphic {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 280px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transform-origin: right center;
    transition: all 0.5s ease;
}

[data-theme="dark"] .ms-browser-graphic {
    background: #202224;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.ms-browser-graphic:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.ms-browser-top {
    background: #f1f1f1;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.35rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

[data-theme="dark"] .ms-browser-top {
    background: #1a1c1e;
    border-bottom-color: rgba(255,255,255,0.05);
}

.ms-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.ms-dot.red { background: #ff5f56; }
.ms-dot.yellow { background: #ffbd2e; }
.ms-dot.green { background: #27c93f; }

.ms-browser-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.05), transparent);
}

.ms-browser-hero h4 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    max-width: 200px;
    transition: opacity 0.3s ease;
}

/* Floating Stat Cards */
.ms-stat-card {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    z-index: 3;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .ms-stat-card {
    background: var(--color-bg-elevated);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.ms-stat-left {
    bottom: -20px;
    left: -20px;
    width: 220px;
    animation: float-anim-1 6s ease-in-out infinite;
}

.ms-stat-right {
    bottom: 30px;
    right: -20px;
    align-items: center;
    width: 130px;
    animation: float-anim-2 5s ease-in-out infinite reverse;
}

.ms-stat-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.ms-stat-val {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ms-stat-val i {
    color: #27c93f;
    font-size: 1rem;
    margin-left: 0.25rem;
}

.ms-stat-chart {
    height: 40px;
    width: 100%;
    color: var(--color-primary);
}

.ms-circular-progress {
    width: 70px;
    height: 70px;
    margin-bottom: 0.75rem;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: rgba(0,0,0,0.05);
    stroke-width: 2.5;
}
[data-theme="dark"] .circle-bg { stroke: rgba(255,255,255,0.05); }

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke: var(--color-primary);
    animation: circle-anim 2s ease-out forwards;
}

@keyframes circle-anim {
    0% { stroke-dasharray: 0, 100; }
}

.percentage {
    fill: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: 0.4em;
    font-weight: 700;
    text-anchor: middle;
}

.ms-stat-desc {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 1.2;
}

@keyframes float-anim-1 {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes float-anim-2 {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Bottom Strip */
.ms-bottom-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 3rem;
}

[data-theme="dark"] .ms-bottom-strip {
    border-top-color: rgba(255,255,255,0.05);
}

.ms-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ms-trust-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

[data-theme="dark"] .ms-trust-icon { background: var(--color-bg-elevated); }

.ms-trust-text h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ms-trust-text p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
    .ms-split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .ms-left-col {
        padding-right: 0;
    }
    
    .ms-preview-pane {
        padding: 2rem;
        min-height: auto;
    }
    
    .ms-stat-left { bottom: -15px; left: -10px; }
    .ms-stat-right { right: -10px; bottom: 10px; }
    
    .ms-bottom-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .ms-title { font-size: 2.2rem; }
    
    .ms-preview-body {
        flex-direction: column;
    }
    
    .ms-preview-features {
        flex: auto;
    }
    
    .ms-browser-graphic {
        height: 200px;
        transform: none;
    }
    
    .ms-stat-card { display: none; } /* Hide complex floating stats on tiny screens to avoid overflow */
    
    .ms-bottom-strip {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
