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

.feature-disabled {
    display: none !important;
}

:root {
    /* Light theme variables */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --text-primary: #1E3D59;
    --text-secondary: #4a5568;
    --accent-primary: #60A5FA;
    --accent-secondary: #0EA5E9;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --header-bg: #011829;
    --showcase-bg: linear-gradient(-45deg, #0A2540 0%, #1E3D59 100%);
    --tag-bg: #e0e0e0;
    --footer-bg: #011829;
    
    /* Gradient colors */
    --gradient-color-1: #ef008f;
    --gradient-color-2: #6ec3f4;
    --gradient-color-3: #7038ff;
    --gradient-color-4: #ffba27;
}

.dark-theme {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #3b82f6;
    --accent-secondary: #0284c7;
    --card-bg: #1a1a1a;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --header-bg: #000000;
    --showcase-bg: linear-gradient(-45deg, #000000 0%, #0A2540 100%);
    --tag-bg: #2a2a2a;
    --footer-bg: #000000;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

h1, h2, h3, .project-title {
    font-family: 'Space Grotesk', sans-serif;
}

header {
    text-align: center;
    background: var(--header-bg);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.showcase {
    position: relative;
    padding: 6rem 0;
    min-height: calc(100vh - 86px);
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.showcase::before {
    content: '';
    position: absolute;
    left: -50vw;
    width: 200vw;
    min-height: 30rem;
    height: 60vh;
    background: var(--showcase-bg);
    transform: rotate(3deg);
    z-index: 1;
    opacity: 0.3;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

#gradient-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.5;
    mix-blend-mode: screen;
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    overflow: visible;
    width: 100%;
    z-index: 2;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-align: left;
}

.hero-title .underline-highlight {
    position: relative;
    display: inline-block;
}

.hero-title .underline-highlight::after {
    content: '';
    position: absolute;
    bottom: -0.15em;
    left: 0;
    right: 0;
    height: 0.25em;
    background: #60A5FA;
    border-radius: 2px;
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    text-align: left;
    max-width: 600px;
    font-weight: 400;
}

.project-title {
    text-align: center;
    font-size: min(4.5rem, 10vw);
    overflow: visible;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    
    /* Create the gradient */
    background: linear-gradient(
        90deg,
        #60A5FA 0%,   /* Bright blue */
        #7DD3FC 25%,  /* Light blue */
        #ee9d41 50%,  /* Orange */
        #0EA5E9 75%,  /* Electric blue */
        #60A5FA 100%  /* Back to bright blue */
    );
    
    /* Make the gradient apply to the text */
    -webkit-background-clip: text;  /* For Safari/Chrome */
    background-clip: text;          /* Standard syntax */
    -webkit-text-fill-color: transparent;
    
    /* Add a subtle text shadow for depth */
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    
    /* Smooth transition for opacity changes */
    opacity: 1;
    transition: opacity 0.5s ease;
    
    /* Add these properties to the existing .project-title */
    background-size: 200% auto;
    animation: gradient-shift 8s ease infinite;
}

/* Optional: Animate the gradient */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.project-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.project-image-row {
    position: relative;
    width: 100%;
}

.navigation {
    position: absolute;
    top: 50%;
    left: -4rem;
    right: -4rem;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.nav-btn i {
    transition: transform 0.3s ease;
}

.nav-btn:hover i {
    transform: scale(1.2);
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255,255,255,0.1);
    width: 100%;
    margin-top: 2rem;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        rgba(2, 103, 175, 0.6),
        rgba(150, 255, 246, 0.3)
    );
    animation: progress 10s linear;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Stats Section */
.stats-section {
    background: var(--bg-secondary);
    padding: 4rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

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

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
    position: relative;
}

.stats-section .stat-number:not(.stat-percent):not(.stat-currency):not(.stat-millions):not(.stat-thousands)::after {
    content: '+';
    font-weight: 700;
}

.stats-section .stat-number.stat-currency::before {
    content: '$';
    font-weight: 700;
}

.stats-section .stat-number.stat-currency::after {
    content: 'M+';
    font-weight: 700;
    font-size: 0.7em;
}

.stats-section .stat-number.stat-thousands::before {
    content: '$';
    font-weight: 700;
}

.stats-section .stat-number.stat-thousands::after {
    content: 'k+';
    font-weight: 700;
    font-size: 0.7em;
}

.stats-section .stat-number.stat-millions::after {
    content: 'M+';
    font-weight: 700;
    font-size: 0.7em;
}

.stats-section .stat-number.stat-percent::after {
    content: '%';
    font-weight: 700;
    font-size: 0.6em;
    vertical-align: super;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark-theme .stats-section {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Process Section */
.process-section {
    background: var(--bg-primary);
    padding: 6rem 2rem;
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.process-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.process-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.process-step {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    position: relative;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--card-shadow);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 1rem;
}

.step-icon i {
    transition: transform 0.3s ease;
}

.process-step:hover .step-icon i {
    transform: scale(1.1);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.3;
    line-height: 1;
}

.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.dark-theme .process-section {
    background: var(--bg-primary);
}

.process-cta {
    text-align: center;
    margin-top: 4rem;
}

.process-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, #60A5FA 0%, #0EA5E9 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.process-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
    gap: 1rem;
}

.process-cta-button i {
    font-size: 0.9rem;
}

/* Resources Preview Section */
.resources-preview-section {
    background: var(--bg-secondary);
    padding: 6rem 2rem;
}

.resources-preview-container {
    max-width: 1200px;
    margin: 0 auto;
}

.resources-preview-header {
    text-align: center;
    margin-bottom: 4rem;
}

.resources-preview-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.resources-preview-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.resources-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.resource-preview-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.resource-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--card-shadow);
}

.resource-preview-card:visited {
    color: inherit;
}

.resource-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.resource-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.resource-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
    margin-top: auto;
    pointer-events: none;
}

.resource-link i {
    font-size: 0.9rem;
}

.resource-preview-card:hover .resource-link {
    gap: 0.75rem;
}

.resources-preview-cta {
    text-align: center;
    margin-top: 2rem;
}

.resources-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, #60A5FA 0%, #0EA5E9 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.resources-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
    gap: 1rem;
}

.dark-theme .resource-preview-card {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .resources-preview-section {
    background: var(--bg-secondary);
}

/* Case Studies Preview Section */
.case-studies-preview-section {
    background: var(--bg-primary);
    padding: 6rem 2rem;
}

.case-studies-preview-container {
    max-width: 1200px;
    margin: 0 auto;
}

.case-studies-preview-header {
    text-align: center;
    margin-bottom: 4rem;
}

.case-studies-preview-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.case-studies-preview-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.case-studies-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.case-study-preview-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.case-study-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--card-shadow);
}

.case-study-preview-card:visited {
    color: inherit;
}

.case-study-preview-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.case-study-preview-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.case-study-preview-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.case-study-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
    margin-top: auto;
    pointer-events: none;
}

.case-study-preview-link i {
    font-size: 0.9rem;
}

.case-study-preview-card:hover .case-study-preview-link {
    gap: 0.75rem;
}

.case-studies-preview-cta {
    text-align: center;
    margin-top: 2rem;
}

.case-studies-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, #60A5FA 0%, #0EA5E9 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.case-studies-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.dark-theme .case-study-preview-card {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .case-studies-preview-section {
    background: var(--bg-primary);
}

/* Article dark mode styles */
.dark-theme .highlight-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-left-color: var(--accent-primary);
}

.dark-theme .stat-box {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px var(--card-shadow);
}

.dark-theme .info-box {
    background: rgba(59, 130, 246, 0.15);
    border-left-color: var(--accent-primary);
}

.dark-theme .tip-box {
    background: rgba(251, 191, 36, 0.15);
    border-left-color: #fbbf24;
}

.dark-theme .cta-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-left-color: var(--accent-primary);
}

.dark-theme .cta-box h3 {
    color: var(--text-primary);
}

.dark-theme .cta-button:hover {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.dark-theme .article-content .cta-button:hover {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.dark-theme .article-content {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.dark-theme .article-content p,
.dark-theme .article-content li,
.dark-theme .article-content ul,
.dark-theme .article-content ol {
    color: var(--text-secondary);
}

.dark-theme .article-content h2,
.dark-theme .article-content h3,
.dark-theme .article-content strong {
    color: var(--text-primary);
}

.dark-theme .method-box,
.dark-theme .practice-box,
.dark-theme .metric-box,
.dark-theme .test-type-box,
.dark-theme .platform-box,
.dark-theme .step-box,
.dark-theme .comparison-table {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px var(--card-shadow);
}

.dark-theme .comparison-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dark-theme .comparison-table td {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.dark-theme .case-study-content {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.dark-theme .case-study-content p,
.dark-theme .case-study-content li,
.dark-theme .case-study-content ul,
.dark-theme .case-study-content ol {
    color: var(--text-secondary);
}

.dark-theme .case-study-content h2,
.dark-theme .case-study-content h3,
.dark-theme .case-study-content strong {
    color: var(--text-primary);
}

.dark-theme .result-box {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px var(--card-shadow);
}

.dark-theme .result-box h4 {
    color: var(--accent-primary);
}

.dark-theme .challenge-box {
    background: rgba(239, 68, 68, 0.15);
    border-left-color: #ef4444;
}

.dark-theme .challenge-box h4 {
    color: #ef4444;
}

.dark-theme .case-studies-page {
    background: var(--bg-primary);
}

.dark-theme .case-study-card {
    border-color: rgba(255, 255, 255, 0.1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    box-shadow: 0 8px 16px var(--card-shadow);
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card .card-content h3 {
    margin-bottom: 0.5rem;
}

.project-card .card-content p {
    margin-bottom: 1rem;
}

.project-card .card-content ul {
    margin-bottom: 1rem;
}

#project-card-spacer {
    flex: 1;
    min-height: 0;
}

.card-image {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: bottom;  /* Makes it lift from bottom */
    will-change: transform;  /* Optimize performance */
    transform: scale(1);
}

.card-content:hover .card-image {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.card-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.5;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
    list-style: none;
}

.tags li {
    background: var(--tag-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-primary);
}

.card-cta {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(
        90deg,
        var(--accent-primary) 0%,
        var(--accent-secondary) 100%
    );
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: auto;
}

.card-cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        90deg,
        #3b82f6 0%,
        #0284c7 100%
    );
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.dark-theme .card-cta {
    background: linear-gradient(
        90deg,
        #3b82f6 0%,
        #0284c7 100%
    );
}

.dark-theme .card-cta:hover {
    background: linear-gradient(
        90deg,
        #2563eb 0%,
        #0369a1 100%
    );
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

/* Create a shared gradient animation */
@keyframes shine-sweep {
    0% {
        background-position: -200% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

/* Shared gradient styles for title and highlighted text */
.project-title, .gradient-text {
    background-image: linear-gradient(
        60deg,
        #60A5FA 0%,
        #7DD3FC 20%,
        #ee9d41 40%,
        #0EA5E9 60%,
        #60A5FA 80%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-sweep 8s linear infinite;
}

.project-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.4;
    opacity: 1;
    transition: opacity 0.5s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Dark theme adjustments for hero */
.dark-theme .showcase {
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

.dark-theme #gradient-canvas {
    opacity: 0.6;
    mix-blend-mode: screen;
}

.gradient-text {
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    margin: 0;
    padding: 1rem 2.5rem;
    background: white;
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    background: #f5f5f5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.dark-theme .cta-button {
    background: white;
    color: #000;
}

.dark-theme .cta-button:hover {
    background: #f5f5f5;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 3rem;
    background: white;
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-button-large:hover {
    transform: translateY(-2px);
    background: #f5f5f5;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    gap: 1rem;
}

.cta-button-large i {
    transition: transform 0.3s ease;
}

.cta-button-large:hover i {
    transform: translateX(4px);
}

.dark-theme .cta-section {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

.dark-theme .cta-button-large {
    background: white;
    color: #000;
}

.dark-theme .cta-button-large:hover {
    background: #f5f5f5;
}

/* Add navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Add a subtle backdrop blur for better readability when content scrolls under */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--header-bg);
    opacity: 0.95;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

.dark-theme .navbar::before {
    opacity: 0.98;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link.consultation-btn {
    background: linear-gradient(90deg, #60A5FA 0%, #0EA5E9 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
}

.nav-link.consultation-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, #3b82f6 0%, #0284c7 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    color: white;
}

.dark-theme .nav-link.consultation-btn {
    background: linear-gradient(90deg, #3b82f6 0%, #0284c7 100%);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.dark-theme .nav-link.consultation-btn:hover {
    background: linear-gradient(90deg, #2563eb 0%, #0369a1 100%);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.5);
}

.nav-link.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.nav-link.phone-link i {
    font-size: 0.9em;
    color: var(--accent-primary);
}

.nav-link.phone-link:hover {
    color: white;
    transform: translateY(-1px);
}

.nav-link.phone-link:hover i {
    transform: scale(1.1);
}

.dark-theme .nav-link.phone-link i {
    color: var(--accent-primary);
}

/* Hamburger menu button */
.hamburger-menu {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger-menu:hover {
    transform: scale(1.1);
}

.hamburger-menu i {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hamburger-menu .fa-bars {
    opacity: 1;
    transform: rotate(0deg);
}

.hamburger-menu .fa-times {
    opacity: 0;
    transform: rotate(90deg);
}

.hamburger-menu.active .fa-bars {
    opacity: 0;
    transform: rotate(-90deg);
}

.hamburger-menu.active .fa-times {
    opacity: 1;
    transform: rotate(0deg);
}

/* Side menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

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

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.side-menu .nav-link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.side-menu .nav-link:hover {
    color: white;
    padding-left: 0.5rem;
    transition: all 0.3s ease;
}

.side-menu .nav-link.phone-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.side-menu .nav-link.phone-link .phone-number {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit;
    font-size: inherit;
}

.side-menu .theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 48px;
    height: 48px;
}

.side-menu .theme-toggle i {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 1.2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.side-menu .theme-toggle .fa-sun {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.side-menu .theme-toggle .fa-moon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.dark-theme .side-menu .theme-toggle .fa-sun {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.dark-theme .side-menu .theme-toggle .fa-moon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.side-menu .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.side-menu .consultation-btn-side {
    display: block;
    background: linear-gradient(90deg, #60A5FA 0%, #0EA5E9 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.side-menu .consultation-btn-side:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, #3b82f6 0%, #0284c7 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    color: white;
}

.side-menu .consultation-btn-side.active {
    background: linear-gradient(90deg, #3b82f6 0%, #0284c7 100%);
}

/* Mobile navbar adjustments */
@media (max-width: 1100px) {
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }
    
    /* Hide Services, Resources, phone number, and theme toggle from main nav on mobile */
    .nav-links .nav-link:not(.consultation-btn),
    .nav-links .theme-toggle {
        display: none;
    }
    
    /* Show them in side menu */
    .side-menu .nav-link:not(.consultation-btn),
    .side-menu .theme-toggle {
        display: block;
    }
    
    .nav-link.consultation-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-link.consultation-btn span {
        display: none;
    }
    
    .nav-link.consultation-btn::before {
        content: 'Contact';
    }
}

.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shooting-star {
    position: absolute;
    left: 0;
    top: 50%;
    width: 150px;  /* Make the trail longer */
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.8), 
        rgba(255,255,255,0)
    );
    border-radius: 50%;
    animation: shooting var(--duration, 35s) ease-in infinite;  /* Much longer base duration */
    animation-delay: var(--delay, 0s);
    opacity: 0;
    transform-origin: left;  /* Rotate from the left point */
    transform: rotate(var(--rotation));  /* Apply the rotation directly */
}

.shooting-star::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 15px 2px rgba(255,255,255,0.4);
}

/* Update the shooting star animations with more random positions and angles */
.shooting-star:nth-child(1) {
    top: 15%;
    animation-delay: 5s;
    --rotation: -35deg;
    --duration: 32s;
}

.shooting-star:nth-child(2) {
    top: 45%;
    animation-delay: 13s;
    --rotation: -20deg;
    --duration: 41s;
}

.shooting-star:nth-child(3) {
    top: 28%;
    animation-delay: 19s;
    --rotation: -15deg;
    --duration: 37s;
}

.shooting-star:nth-child(4) {
    top: 72%;
    animation-delay: 27s;
    --rotation: -25deg;
    --duration: 45s;
}

.shooting-star:nth-child(5) {
    top: 85%;
    animation-delay: 33s;
    --rotation: -30deg;
    --duration: 39s;
}

/* Update the animation to spend more time invisible */
@keyframes shooting {
    0% {
        transform: translateX(calc(100vw + 100px));
        opacity: 0;
    }
    2% {  /* Shorter visible duration */
        opacity: 1;
    }
    5% {  /* Shorter visible duration */
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(-100px);
        opacity: 0;
    }
}

/* Footer Styles */
.footer {
    background: var(--footer-bg);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Update gradient text for dark theme */
.dark-theme .gradient-text {
    background-image: linear-gradient(
        60deg,
        #60A5FA 0%,
        #7DD3FC 20%,
        #ee9d41 40%,
        #0EA5E9 60%,
        #60A5FA 80%
    );
}

/* Update card hover effect for dark theme */
.dark-theme .card-content:hover .card-image {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

/* Update social links for dark theme */
.dark-theme .social-links a {
    color: rgba(255, 255, 255, 0.6);
}

.dark-theme .social-links a:hover {
    color: white;
}

/* Update footer text for dark theme */
.dark-theme .footer-section p,
.dark-theme .footer-section a {
    color: rgba(255, 255, 255, 0.6);
}

.dark-theme .footer-section a:hover {
    color: white;
}

.dark-theme .footer-bottom {
    color: rgba(255, 255, 255, 0.4);
}

.theme-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    color: white;
    transform: scale(1.1);
}

.theme-toggle i {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(-90deg);
}

.dark-theme .theme-toggle .fa-sun {
    opacity: 0;
    transform: rotate(90deg);
}

.dark-theme .theme-toggle .fa-moon {
    opacity: 1;
    transform: rotate(0deg);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px; /* Height of the navbar */
}

/* Add a transition for the active state of nav links */
.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link.active:hover::after {
    transform: scaleX(1);
}

/* Search Bar Styles */
.search-container {
    position: relative;
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
}

/* Desktop: Show icon button by default, hide input */
.search-icon-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.search-icon-button:hover {
    color: white;
    transform: scale(1.1);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-container.expanded .search-wrapper {
    opacity: 1;
    width: 250px;
}

.search-container.expanded .search-icon-button {
    display: none;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    color: white;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 350px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result-item {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

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

.search-result-item:hover,
.search-result-item.selected {
    background: rgba(96, 165, 250, 0.1);
}

.search-result-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.search-result-title mark {
    background: var(--accent-primary);
    color: white;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 700;
}

.search-result-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.search-result-tags {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.search-no-results {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    justify-content: center;
}

.search-no-results i {
    font-size: 1.2rem;
    opacity: 0.5;
}

.dark-theme .search-results {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .search-result-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .search-result-item:hover,
.dark-theme .search-result-item.selected {
    background: rgba(96, 165, 250, 0.15);
}

/* Mobile search adjustments */
@media (max-width: 1100px) {
    /* Hide icon button and show full search on mobile */
    .search-container .search-icon-button {
        display: none !important;
    }
    
    .search-container .search-wrapper {
        opacity: 1 !important;
        width: 200px !important;
    }
    
    .search-container {
        display: none;
    }
    
    /* Show search in side menu on mobile */
    .side-menu .search-container {
        display: block;
        margin: 1rem 0;
        width: 100%;
    }
    
    .side-menu .search-container .search-icon-button {
        display: none !important;
    }
    
    .side-menu .search-container .search-wrapper {
        opacity: 1 !important;
        width: 100% !important;
    }
    
    .side-menu .search-input {
        width: 100%;
    }
    
    .side-menu .search-input:focus {
        width: 100%;
    }
    
    .side-menu .search-results {
        min-width: 100%;
        right: 0;
    }
}

/* Desktop: Show icon button, hide wrapper initially */
@media (min-width: 1101px) {
    .search-container:not(.expanded) .search-icon-button {
        display: flex;
    }
    
    .search-container:not(.expanded) .search-wrapper {
        opacity: 0;
        width: 0;
    }
} 