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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0e1117;
    color: #F0F0F0;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 0 24px;
    padding-top: 160px; /* Account for fixed header */
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    width: calc(100% - 48px); /* Account for body padding */
    margin: 25px auto 0;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background-color: rgba(14, 17, 23, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

header.hidden {
    transform: translate(-50%, -120%);
    opacity: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text h3 {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
    color: #F0F0F0;
}

.logo-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

nav ul {
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 0;
}

nav li {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

nav li:hover, nav li.active {
    color: #F0F0F0;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: #3A8FFF;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #F0F0F0;
    color: #0e1117;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 120px 0 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    background-color: #161b22;
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 40px;
    border: 2px solid #1F242A;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #3A8FFF;
    border-radius: 50%;
    margin-right: 8px;
}

.hero-content {
    margin-bottom: 80px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    
    line-height: 1.6;
}

/* Tools Slider Animation */
.tools-slider {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
    position: relative;
    padding: 20px 0;
}

.tools-slider::before,
.tools-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tools-slider::before {
    left: 0;
    background: linear-gradient(to right, #0e1117, transparent);
}

.tools-slider::after {
    right: 0;
    background: linear-gradient(to left, #0e1117, transparent);
}

.tools-track {
    display: flex;
    gap: 48px;
    align-items: center;
    width: max-content;
    animation: slideLeft 60s linear infinite;
    will-change: transform;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3));
    }
}

.tool-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.3);
    transition: all 0.4s ease;
    opacity: 0.7;
}

.tool-img:hover {
    filter: grayscale(0%) brightness(1);
    transform: translateY(-5px) scale(1.1);
    opacity: 1;
}

/* Media Queries */
@media (max-width: 1460px) {
    header, .recent-designs, .design-services, .process-section, .cta-section, .footer-section {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0 16px;
        padding-top: 160px;
    }
    
    header {
        width: calc(100% - 32px);
        flex-direction: column;
        gap: 24px;
        padding: 20px;
        margin-top: 16px;
    }
    
    nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 12px;
        padding-top: 160px;
    }
    
    header {
        width: calc(100% - 24px);
        padding: 15px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .tool-img {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 375px) {
  body {
      padding: 0 12px;
      padding-top: 160px;
  }
  
  header {
      width: calc(100% - 24px);
      padding: 15px;
  }
  
  nav ul {
      gap: 15px;
  }
  
  .tool-img {
      width: 48px;
      height: 48px;
  }
}



/* Recent Designs Section */
.recent-designs {
    padding: 100px 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    width: calc(100% - 48px); /* Match header width calculation */
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 60px;
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #161b22;
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
    border: 2px solid #1F242A;
}

.badge svg {
    width: 16px;
    height: 16px;
    fill: #3A8FFF;
}

.heading-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-description {
    font-size: 18px;

    line-height: 1.6;
    max-width: 500px;
}

.text-gray {
    color: #9CA3AF;
}

.section-actions {
    display: flex;
    gap: 16px;
    position: absolute;
    right: 0;
    bottom: 0;
}

.secondary-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #14181F;
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #1F242A;
}

.secondary-button:hover {
    background-color: #1c222b;
}

.primary-button {
    display: inline-block;
    padding: 14px 24px;
    background-color: #F0F0F0;
    color: #000;
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.primary-button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card, .service-card {
    background-color: #161b22;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 0px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: white;
}

.project-image {
    position: relative !important;
    overflow: hidden !important;
    aspect-ratio: 16/9 !important;
    border-radius: 20px !important;
    margin: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.project-image::after {
    content: '';
    position: absolute !important;
    inset: 0 !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    opacity: 0;
    transition: opacity 0.3s ease !important;
    border-radius: 16px !important;
    z-index: 10 !important;
}

.project-card:hover .project-image {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5),
                0 0 30px rgba(255, 255, 255, 0.3),
                0 0 45px rgba(255, 255, 255, 0.1) !important;
    animation: neonPulse 1.5s infinite alternate !important;
}

.project-card:hover .project-image::after {
    opacity: 1 !important;
}

.project-card:hover .project-image img {
    transform: scale(1.05) !important;
}

.project-image .view-details {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: rgba(22, 27, 34, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    opacity: 0;
    transition: opacity 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    min-width: 140px !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
    pointer-events: auto !important;
    line-height: 1.5 !important;
    height: auto !important;
    width: auto !important;
    max-width: none !important;
    transform-origin: center center !important;
}

.project-image .view-details span {
    display: inline-block !important;
    margin-right: 4px !important;
    position: relative !important;
    transform: none !important;
    opacity: 1 !important;
}

.project-image .view-details svg {
    width: 16px !important;
    height: 16px !important;
    stroke: white !important;
    transition: transform 0.2s ease !important;
    flex-shrink: 0 !important;
    position: relative !important;
    margin-left: 4px !important;
    transform: none !important;
    opacity: 1 !important;
}

.project-link-wrapper {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

.project-link {
    display: none;
}

.project-details {
    padding: 24px 28px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-details h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    margin-top: auto;
}

.project-tools span {
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.06);
    padding: 6px 12px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

/* Media Queries for Recent Designs */
@media (max-width: 992px) {
    .section-actions {
        position: relative;
        top: 0;
        right: 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .recent-designs {
        padding: 60px 0;
        width: calc(100% - 32px); /* Match header width calculation */
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .secondary-button, .primary-button {
        width: 100%;
        text-align: center;
    }
    
    .project-image {
        margin: 10px;
    }
    
    .project-details {
        padding: 20px 24px 24px;
    }
    
    .project-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .recent-designs {
        width: calc(100% - 24px); /* Match header width calculation */
    }
    
    .project-tools span {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .project-image .view-details,
    .service-image .view-details {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Design Services Section */
.design-services {
    padding: 100px 0;
    max-width: 1400px;
    margin: 0 auto;
    width: calc(100% - 48px); /* Match header width calculation */
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-card {
    border-radius: 30px;
    background-color: #161b22;
    overflow: hidden;
    position: relative;
    padding: 30px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: 100%;
    margin-bottom: 0px;
}

.service-icons-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 0;
}

.service-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
    color: #9CA3AF;
    max-width: 100%;
}

.service-image {
    position: relative !important;
    overflow: hidden !important;
    aspect-ratio: 3/2 !important;
    border-radius: 20px !important;
    margin: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.service-image .view-details {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: rgba(22, 27, 34, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    opacity: 0;
    transition: opacity 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    min-width: 140px !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
    pointer-events: auto !important;
    line-height: 1.5 !important;
    height: auto !important;
    width: auto !important;
    max-width: none !important;
    transform-origin: center center !important;
}

.service-image .view-details span {
    display: inline-block !important;
    margin-right: 4px !important;
    position: relative !important;
    transform: none !important;
    opacity: 1 !important;
}

.service-image .view-details svg {
    width: 16px !important;
    height: 16px !important;
    stroke: white !important;
    transition: transform 0.2s ease !important;
    flex-shrink: 0 !important;
    position: relative !important;
    margin-left: 4px !important;
    transform: none !important;
    opacity: 1 !important;
}

.service-image .view-details:hover {
    background-color: rgba(28, 34, 43, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.service-image .view-details:hover svg {
    transform: translateX(3px) !important;
}

.service-link-wrapper {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

/* Media Queries for Design Services */
@media (max-width: 992px) {
    /* Services grid is now a column by default */
}

@media (max-width: 768px) {
    .design-services {
        padding: 60px 0;
        width: calc(100% - 32px); /* Match header width calculation */
    }
    
    .service-card {
        padding: 24px;
    }
    
    .service-description {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    /* Services grid is now a column by default */
    
    .service-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .design-services {
        width: calc(100% - 24px); /* Match header width calculation */
    }
    
    .services-grid {
        gap: 20px; /* Reduce gap on smaller devices */
    }
    
    .service-card {
        padding: 20px; /* Slightly reduce padding for smallest screens */
    }
}

/* Process Section */
.process-section {
    padding: 100px 0;
    max-width: 1400px;
    margin: 0 auto;
    width: calc(100% - 48px); /* Match header width calculation */
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.process-card {
    background-color: #161b22;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.process-card:hover {
    transform: translateY(-5px);
    background-color: #1c222b;
}

.process-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.process-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.process-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.process-description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: auto;
}

.step-label {
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    align-self: flex-start;
}

/* Media Queries for Process Section */
@media (max-width: 1200px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-section {
        padding: 60px 0;
        width: calc(100% - 32px); /* Match header width calculation */
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .process-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .process-section {
        width: calc(100% - 24px); /* Match header width calculation */
    }
}

/* CTA Section with Neon Effect */
.cta-section {
    position: relative;
    margin: 80px auto 0;
    padding: 80px 40px;
    max-width: 1400px;
    border-radius: 30px;
    overflow: hidden;
    background: #161b22;
    border: 2px solid #1F242A !important;
    width: calc(100% - 48px); /* Match header width calculation */
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 40%, 
        rgba(255, 255, 255, 0.01) 70%, 
        rgba(255, 255, 255, 0) 100%);
    opacity: 0.7;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.cta-section:hover::before {
    opacity: 1;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 24px;
    background: #334155;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.cta-section p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-button-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 50px;
    background-color: transparent;
    border-radius: 100px;
    font-size: 22px;
    font-weight: 600;
    color: #F0F0F0;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    z-index: 1;
}

.button-text {
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
}

.button-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0), 
        rgba(255, 255, 255, 0.5), 
        rgba(255, 255, 255, 0)
    );
    z-index: 0;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-button-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0.8), 
        rgba(255, 255, 255, 0.3)
    );
    border-radius: 100px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button-glow:hover {
    border-color: rgba(255, 255, 255, 0);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
    color: #000;
    background-color: rgba(255, 255, 255, 1);
}

.cta-button-glow:hover::after {
    opacity: 1;
    animation: borderGlow 1.5s infinite;
}

.cta-button-glow:hover .button-glow {
    transform: translateX(100%);
    transition: transform 0.9s ease;
}

.cta-button-glow:hover .button-text {
    transform: scale(1.05);
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Footer Section */
.footer-section {
  position: relative;
  max-width: 1400px;
  margin: 40px auto;
  margin-top: 40px;
  width: calc(100% - 48px); /* Same width logic */
  background-color: transparent;
}


.footer-info {
    margin-top: 0px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #9CA3AF;
}

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

.social-links {
    display: flex;
    gap: 24px;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .cta-section {
        margin: 80px auto 40px;
        padding: 60px 40px;
        width: calc(100% - 32px); /* Match header width calculation */
    }
    
    .footer-section {
        padding: 0px;
        width: calc(100% - 32px); /* Match header width calculation */
    }

    .footer-info {
        flex-direction: column;
        gap: 20px;
    }

    .copyright {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cta-section {
        width: calc(100% - 24px); /* Match header width calculation */
        padding: 50px 20px;
        border-radius: 20px;
    }
    
    .footer-section {
        width: calc(100% - 24px); /* Match header width calculation */
        padding: 0;
    }
}

@media (max-width: 375px) {
  .cta-section {
      width: calc(100% - 24px); /* Match header width calculation */
      padding: 50px 20px;
      border-radius: 20px;
  }
  
  .footer-section {
      width: calc(100% - 24px); /* Match header width calculation */
      padding: 20px 20px;
  }
}

/* Case Study Styles */
.case-study-hero {
    padding: 120px 0 60px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.case-study-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 24px 0;
    letter-spacing: -0.02em;
}

.case-study-subtitle {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.8;
    line-height: 1.6;
}

.case-study-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.meta-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
}

.case-study-section {
    padding: 100px 0;
}

.bg-dark {
    background-color: #0e1117;
}

.case-study-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.case-study-section .section-header {
    margin-bottom: 60px;
    position: relative;
}

.case-study-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.overview-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
}

.overview-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.challenge-card {
    background-color: #161b22;
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-5px);
}

.challenge-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    opacity: 0.9;
}

.challenge-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.challenge-card p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.7;
}

.process-timeline {
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 42px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #161b22;
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    background-color: #161b22;
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    flex: 1;
}

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

.timeline-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 24px;
}

.timeline-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-item:nth-child(even) {
    direction: rtl;
}

.feature-content {
    direction: ltr;
}

.feature-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.result-card {
    background-color: #161b22;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-card p {
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.8;
}

.testimonial {
    background-color: #161b22;
    border-radius: 16px;
    padding: 40px;
    margin-top: 40px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 60px;
    position: absolute;
    top: -20px;
    left: -15px;
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.testimonial-info p {
    font-size: 14px;
    opacity: 0.7;
}

.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
}

.conclusion-content p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 24px;
}

.conclusion-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

/* Media Queries for Case Study */
@media (max-width: 992px) {
    .overview-grid,
    .feature-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-item:nth-child(even) {
        direction: ltr;
    }
    
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-study-hero {
        padding: 80px 0 40px;
    }
    
    .case-study-meta {
        gap: 20px;
    }
    
    .case-study-section {
        padding: 60px 0;
    }
    
    .challenges-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .process-timeline::before {
        left: 42px;
        height: calc(100% - 84px);
        top: 84px;
    }
    
    .conclusion-actions {
        flex-direction: column;
    }
}

/* Apple-Style Case Study Styles */

/* Base Case Study Styles */
.case-study-page {
    background-color: #F0F0F0;
    color: #333;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.cs-section {
    padding: 100px 0;
}

.cs-section:nth-child(even) {
    background-color: #0e1117;
}

/* Typography */
.cs-overline {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0066CC;
    margin-bottom: 16px;
}

.cs-section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.cs-subtitle {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.cs-section-intro {
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.8;
}

.cs-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #333;
}

.cs-image-caption {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* Header */
.cs-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    padding: 20px 0;
}

.cs-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.cs-back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: color 0.2s ease;
}

.cs-back-link:hover {
    color: #0066CC;
}

.cs-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cs-header-link {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: color 0.2s ease;
}

.cs-header-link:hover {
    color: #0066CC;
}

.cs-header-button {
    padding: 10px 20px;
    background-color: #0066CC;
    color: white;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.cs-header-button:hover {
    background-color: #0055b3;
}

/* Hero Section */
.cs-hero {
    padding: 40px 0 0;
    text-align: center;
}

.cs-hero-container {
    border-radius: 16px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 20px;
}

.cs-hero-image {
    width: 100%;
    display: block;
    margin: 0;
}

.cs-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px 0;
    text-align: left;
}

/* Media queries specifically for the case study hero section */
@media (max-width: 768px) {
    .cs-hero {
        padding: 0px 0 0px;
    }
    
    .cs-hero-container {
        margin: 0 20px;
        padding: 0;
        max-height: none;
        height: auto;
        border-radius: 16px;
        overflow: hidden;
    }
    
    .cs-hero-image {
        max-width: 800px;
        height: auto;
        display: block;
        margin: 0;
    }
    
    .cs-content-wrapper {
        padding-top: 15px;
    }
}

@media (max-width: 480px) {
    .cs-hero {
        padding: 30px 0 0px;
    }
    
    .cs-hero-container {
        margin: 0 20px;
        padding: 0;
        border-radius: 12px;
    }
    
    .cs-content-wrapper {
        padding-top: 15px;
    }
}

/* Add animations for sections and cards */
.section, .process-card, .cta-section, .cs-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible, .process-card.visible, .cta-section.visible, .cs-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer is always visible */
.footer-section {
    opacity: 1;
    transform: translateY(0);
}

.process-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-card.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.7), 0 0 10px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.7); }
    100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.7), 0 0 10px rgba(255, 255, 255, 0.5); }
}

.cta-button-glow.pulse {
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visible {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Secondary Text Colors */
.hero-description, 
.section-description, 
.process-description, 
.service-description,
.project-description, 
.feature-description,
.logo-text p,
nav li,
.copyright,
.cs-subtitle,
.cs-meta-text,
.cs-text,
.cs-list li,
.project-tools span {
    color: #9CA3AF;
}

/* Project Button Hover Effects */
.project-card:hover .project-image .view-details {
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important;
}

/* Service Button Hover Effects */
.service-card:hover .service-image .view-details {
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important;
}

@keyframes neonPulse {
    0% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5),
                  0 0 30px rgba(255, 255, 255, 0.3),
                  0 0 45px rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6),
                  0 0 40px rgba(255, 255, 255, 0.4),
                  0 0 60px rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 480px) {
    .cs-hero {
        padding: 40px 0 30px;
    }
    
    .cs-hero-container {
        margin: 0 20px;
        padding: 30px 0;
    }
    
    .cs-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .cs-principles-grid,
    .cs-results-grid,
    .cs-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .cs-testimonial {
        padding: 30px 20px;
    }
    
    .cs-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* Back Home button styles */
.back-home-button {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background-color: transparent;
    color: rgba(240, 240, 240, 0.7);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-decoration: none;
    border: none;
    box-shadow: none;
}

.back-home-button:hover {
    color: #FFFFFF;
    background-color: transparent;
    border: none;
    transform: translateX(-3px);
}

.back-home-button svg {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    stroke: rgba(58, 143, 255, 0.8);
    transition: all 0.3s ease;
}

.back-home-button:hover svg {
    stroke: #4e9aff;
}

@media (max-width: 480px) {
    .cs-hero {
        padding: 0px 0 0px;
    }
    
    .cs-hero-container {
        margin: 0 20px;
        padding: 30px 0;
    }
    
    .cs-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .cs-principles-grid,
    .cs-results-grid,
    .cs-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .cs-testimonial {
        padding: 30px 20px;
    }
    
    .cs-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* Typography for case studies */
.cs-meta-label-alt {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #3A8FFF;
  margin-bottom: 20px;
}

.cs-meta-label-alt-more {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: #F0F0F0;
  margin-bottom: 20px;
}

/* Media queries for mobile view */
@media (max-width: 768px) {
    .cs-alt-section {
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

@media (max-width: 480px) {
    .cs-alt-section {
        margin-top: 0px;
        margin-bottom: 0px;
    }
    
    .cs-hero {
        padding: 0px 0 0px;
    }
    
    .cs-hero-container {
        margin: 0 20px;
        padding: 30px 0;
    }
}

/* Base style for cs-alt-section */
.cs-alt-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

/* Media queries for mobile view */
@media (max-width: 768px) {
    .cs-alt-section {
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

@media (max-width: 480px) {
    .cs-alt-section {
        margin-top: 0px;
        margin-bottom: 0px;
    }
    
    .cs-hero {
        padding: 0px 0 0px;
    }
    
    .cs-hero-container {
        margin: 0 20px;
        padding: 30px 0;
    }
} 