/* Basic Reset & Body Styling */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif; /* More modern sans-serif */
    line-height: 1.6;
    color: #f0f0f0; /* Light text color for dark background */
    background-color: #000; /* Dark background */
    padding-top: 100px; /* Reduced padding-top since header is now thinner */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Archive', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #4187C1; /* Medium blue for dark background */
    transition: color 0.2s ease-in-out;
    font-weight: bold; /* Bold links */
}

a:hover {
    color: #a5d8ff; /* Even lighter blue on hover */
}

/* Header & Navigation - OLD STYLES REMOVED */
/* These old navigation styles have been removed to prevent conflicts with the new navigation system */

/* Sections General Styling */
section {
    padding: 4rem 5%;
    text-align: center;
    border-bottom: 1px solid #333; /* Separator lines */
}

/* Remove alternating background for dark theme */
/* section:nth-child(odd) {
     background-color: #2b2b2b; 
} */

section h2 {
    margin-bottom: 3.5rem; 
    font-size: 2.4rem; /* Slightly larger */
    color: #ffffff; /* White headings */
    font-weight: bold; /* Bold headings */
}

section h3 {
    font-weight: bold; /* Bold subheadings */
    color: #e0e0e0;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    width: 100vw;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: none;
    padding: 0;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(65, 135, 193, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(65, 135, 193, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 25% 25%, rgba(65, 135, 193, 0.12) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 
        50px 50px,
        50px 50px,
        100px 100px,
        150px 150px;
    background-position: 
        0 0,
        0 0,
        0 0,
        25px 25px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    z-index: 2;
    animation: heroFadeIn 1.2s cubic-bezier(0.77,0,0.175,1) 0.1s both;
}

.hero-arrow {
    margin-bottom: 2.5rem;
    animation: arrowBounce 2.5s infinite cubic-bezier(0.77,0,0.175,1);
}
.hero-arrow svg {
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 8px #4187C1cc);
}

#hero h1 {
    font-family: 'Archive', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 0 2px 32px #111, 0 1px 0 #4187C122;
    animation: heroSlideUp 1.1s cubic-bezier(0.77,0,0.175,1) 0.3s both;
}

#hero p {
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: 0.18em;
    text-align: center;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    opacity: 0.85;
    animation: heroSlideUp 1.1s cubic-bezier(0.77,0,0.175,1) 0.5s both;
}

.cta-button-primary {
    font-size: 1.3rem;
    padding: 1.1rem 3.2rem;
    border: 2.5px solid #4187C1;
    background: transparent;
    color: #4187C1;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: 0.12em;
    box-shadow: 0 0 0 0 #4187C1;
    transition: box-shadow 0.3s cubic-bezier(0.77,0,0.175,1), background 0.3s, color 0.3s, transform 0.12s;
    margin-bottom: 1.2rem;
    animation: heroFadeIn 1.1s cubic-bezier(0.77,0,0.175,1) 0.7s both;
    outline: none;
    position: relative;
    z-index: 2;
}
.cta-button-primary:hover, .cta-button-primary:focus {
    background: #4187C1;
    color: #111;
    box-shadow: 0 0 32px 0 #4187C1cc, 0 0 0 4px #fff2;
    transform: scale(1.04);
}

.cta-link-secondary {
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
    animation: heroFadeIn 1.1s cubic-bezier(0.77,0,0.175,1) 0.9s both;
}
.cta-link-secondary:hover {
    color: #4187C1;
    opacity: 1;
    text-decoration: underline;
}

/* Animations */
@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(18px); }
}

/* Responsive Tweaks */
@media (max-width: 900px) {
    #hero h1 { font-size: 2.1rem; }
    .hero-arrow { margin-bottom: 1.2rem; }
    .cta-button-primary { font-size: 1.1rem; padding: 0.9rem 2.1rem; }
}
@media (max-width: 600px) {
    #hero { min-height: 80vh; }
    .hero-content { max-width: 98vw; }
    #hero h1 { font-size: 1.3rem; }
    .cta-button-primary { font-size: 1rem; padding: 0.7rem 1.2rem; }
    .hero-arrow svg { width: 60px; height: 60px; }
}

/* Features Section */
#features {
    background: transparent;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.feature-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
}

.feature-anim {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 320px;
    min-width: 280px;
    z-index: 2;
    animation: featureFadeUp 1.1s cubic-bezier(0.77,0,0.175,1) both;
}
.feature-anim:nth-child(1) { animation-delay: 0.1s; }
.feature-anim:nth-child(3) { animation-delay: 0.3s; }
.feature-anim:nth-child(5) { animation-delay: 0.5s; }

.feature-item {
    background: rgba(17,17,17,0.98);
    border: 2.5px solid #fff2;
    border-radius: 2rem;
    box-shadow: 0 4px 32px 0 #0006;
    padding: 2.5rem 2rem 2rem 2rem;
    margin: 0 0.5rem;
    min-width: 280px;
    max-width: 320px;
    text-align: center;
    transition: box-shadow 0.25s, border 0.25s, transform 0.18s;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}
.feature-item:hover, .feature-item:focus-within {
    border: 2.5px solid #4187C1;
    box-shadow: 0 0 32px 0 #4187C1cc, 0 4px 32px 0 #000a;
    transform: translateY(-8px) scale(1.03);
}

.feature-icon {
    height: 48px;
    width: 48px;
    margin-bottom: 1.2rem;
    display: inline-block;
    filter: invert(1) drop-shadow(0 0 8px #4187C122);
    transition: transform 0.35s cubic-bezier(0.77,0,0.175,1), filter 0.25s;
}
.feature-item:hover .feature-icon, .feature-item:focus-within .feature-icon {
    transform: scale(1.18) rotate(-8deg);
    filter: invert(1) drop-shadow(0 0 16px #4187C1cc);
}

.feature-item h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    border-bottom: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-item p {
    color: #e0e0e0;
    font-size: 1rem;
    letter-spacing: 0.02em;
    opacity: 0.9;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.5;
}

.feature-link {
    display: inline-block;
    color: #4187C1;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    margin-top: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: #a5d8ff;
    border-bottom-color: #4187C1;
    transform: translateX(5px);
}

.feature-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    max-width: 60px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
    animation: connectorFadeIn 1.1s cubic-bezier(0.77,0,0.175,1) 0.2s both;
}

@keyframes featureFadeUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes connectorFadeIn {
    from { opacity: 0; }
    to { opacity: 0.7; }
}

@media (max-width: 1100px) {
    .feature-grid { flex-wrap: wrap; }
    .feature-connector { min-width: 30px; max-width: 30px; }
}
@media (max-width: 900px) {
    #features { padding-top: 3rem; padding-bottom: 3rem; }
    .feature-item { padding: 2rem 1.5rem; min-width: 240px; max-width: 98vw; min-height: 240px; }
    .feature-icon { height: 40px; width: 40px; }
}
@media (max-width: 700px) {
    .feature-grid { flex-direction: column; align-items: center; gap: 1.5rem; }
    .feature-connector { display: none; }
    .feature-item { margin: 0; min-height: 220px; }
}

/* How It Works Section */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.step {
    flex: 1;
    max-width: 300px;
    opacity: 0;
    transform: translateY(20px);
    animation: stepFadeIn 0.6s ease-out forwards;
}

.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(5) { animation-delay: 1s; }

.step-content {
    background: rgba(65, 135, 193, 0.1);
    border: 1px solid rgba(65, 135, 193, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(65, 135, 193, 0.15);
}

.step h3 {
    color: #4187C1;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.step p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-connector {
    width: 100px;
    height: 40px;
    opacity: 0;
    animation: connectorFadeIn 0.6s ease-out forwards;
}

.step-connector:nth-child(2) { animation-delay: 0.4s; }
.step-connector:nth-child(4) { animation-delay: 0.8s; }

.connector-line {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: drawLine 1s ease-out forwards, moveLine 2s linear infinite;
}

.connector-arrow {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: drawArrow 0.6s ease-out forwards, moveArrow 2s linear infinite;
}

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

@keyframes connectorFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawArrow {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes moveLine {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -80;
    }
}

@keyframes moveArrow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(20px);
    }
}

@media (max-width: 900px) {
    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step {
        max-width: 100%;
    }
    
    .step-connector {
        transform: rotate(90deg);
        margin: -1rem 0;
    }
}

/* Benefits Section Styles */
.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem 2rem 1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 0.5rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

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

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

.benefit-icon {
    font-size: 1.5rem;
}

.benefit-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    margin-bottom: 1.5rem;
}

.benefit-list li:last-child {
    margin-bottom: 0;
}

.benefit-title {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.benefit-list p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.benefit-card.before {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-card.after {
    border: 1px solid rgba(250, 62, 5, 0.3);
    background: rgba(250, 62, 5, 0.05);
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
}

/* CTA Section */
#cta {
    background: linear-gradient(135deg, 
        rgba(65, 135, 193, 0.15) 0%, 
        rgba(38, 50, 106, 0.25) 50%, 
        rgba(65, 135, 193, 0.15) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    margin: 4rem 5% 2rem 5%;
    padding: 4rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        transparent 50%, 
        rgba(65, 135, 193, 0.05) 100%
    );
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: 'Archive', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* FAQ Section */
.faq-item {
    text-align: left;
    margin-bottom: 1rem;
    border-bottom: 1px solid #444; /* Darker border */
    padding-bottom: 1rem;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    color: #e0e0e0;
    font-size: 1.3rem; /* Bolded via section h3 */
}

.faq-item h3::after {
    content: '\25BC'; /* Down arrow */
    font-size: 0.8em;
    transition: transform 0.3s ease;
    color: #cccccc;
}

.faq-item.open h3::after {
    transform: rotate(180deg); /* Up arrow */
}

.faq-item p {
    margin-top: 1rem;
    padding-left: 1rem; 
    display: none; 
    color: #cccccc;
}

.faq-item.open p {
    display: block; 
}

/* FAQ Accordion Styles */
.faq-item p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.77,0,0.175,1), opacity 0.25s;
  margin: 0;
}
.faq-item.open p {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.5rem;
}
.faq-item h3 {
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.faq-item.open h3 {
  color: #4187C1;
}

/* About Section */
#about {
    text-align: left;
}

#about a {
    display: inline-block;
    margin-right: 1rem;
    margin-top: 1rem;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 5%;
    margin-top: 3rem;
    border-top: 1px solid #444; /* Darker border */
    font-size: 0.9rem;
    color: #aaa; /* Lighter grey footer text */
    background-color: #1a1a1a; /* Match body background */
}

footer a {
    color: #ccc; /* Lighter footer links */
    margin: 0 0.5rem;
    font-weight: normal; /* Normal weight footer links */
}

footer a:hover {
    color: #fff;
}

/* Basic Responsive - UPDATED */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.4rem;
    }
    #hero p {
        font-size: 1.2rem;
    }
    .cta-button-primary {
        padding: 0.8rem 1.8rem;
        font-size: 1.1rem;
        display: block; /* Stack buttons */
        margin: 1rem auto;
    }
    .cta-link-secondary {
        display: block;
        margin: 1rem auto;
    }

    section h2 {
        font-size: 2rem;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    .step-connector {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    .benefits-container {
        flex-direction: column;
    }
}

/* --- NAVIGATION REDESIGN --- */
.main-nav {
    width: 100vw;
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    animation: navFadeIn 1.1s cubic-bezier(0.77,0,0.175,1) 0.1s both;
    transition: box-shadow 0.3s cubic-bezier(0.77,0,0.175,1), background 0.3s;
    display: flex;
    justify-content: flex-start; 
}
.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: flex-end; /* Align items to bottom of header */
    justify-content: space-between; 
    padding: 1rem 4vw; /* Reduced padding to make header thinner */
    gap: 2rem;
    position: relative;
    z-index: 1002; /* Higher than main-nav to ensure proper stacking */
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 150px; /* Increased min-width for bigger logo */
    position: relative;
    z-index: 1001; /* Higher than main-nav z-index to ensure logo is always visible */
}

.logo img {
    height: 120px !important; /* Increased height for bigger logo */
    width: auto !important;
    filter: drop-shadow(0 0 8px #000a);
    position: relative;
    z-index: 1001; /* Ensure logo image is always on top */
}


.nav-links {
    display: flex;
    align-items: flex-end; /* Align navigation items to bottom */
    justify-content: flex-end; 
    gap: 2.2rem;
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    z-index: 999; /* Lower than logo to ensure logo is always visible */
}

.nav-link {
    position: relative;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.08rem;
    letter-spacing: 0.18em;
    font-weight: 600;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0 0.2em;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0.85;
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-link:not(:last-child)::after {
    content: '';
    display: inline-block;
    margin-left: 2.2rem;
    margin-right: -2.2rem;
    width: 6px;
    height: 6px;
    background: #4187C1;
    border-radius: 50%;
    opacity: 0.7;
}

.nav-link:hover, .nav-link:focus {
    color: #4187C1;
    opacity: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2.5px;
    background: linear-gradient(90deg, #4187C1 60%, transparent 100%);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.28s cubic-bezier(0.77,0,0.175,1);
}

.nav-link:hover::before, .nav-link:focus::before {
    transform: scaleX(1);
}

.cta-button-header {
    margin-left: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: transparent;
    color: #4187C1;
    border: 2px solid #4187C1;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 0 0 #4187C1;
}
.cta-button-header:hover, .cta-button-header:focus {
    background: #4187C1;
    color: #111;
    box-shadow: 0 0 16px 0 #4187C1cc;
}

.nav-lang {
    font-size: 0.98rem;
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: 0.12em;
    margin-left: 0.5rem;
}

/* Sticky shadow/glow on scroll */
.main-nav.scrolled {
    box-shadow: 0 4px 32px 0 #4187C122, 0 1.5px 0 0 #fff1;
    background: rgba(17,17,17,0.85);
    backdrop-filter: blur(2.5px);
}

@keyframes navFadeIn {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive nav */
@media (max-width: 900px) {
    .nav-container { padding: 0.7rem 2vw; }
    .logo img { height: 80px; } /* Increased from 60px for better visibility on mobile */
    .nav-links { gap: 1.1rem; }
    .nav-link:not(:last-child)::after { margin-left: 1.1rem; margin-right: -1.1rem; }
}
@media (max-width: 600px) {
    /* Make header non-sticky on mobile to allow content visibility */
    .main-nav {
        position: relative;
        top: auto;
    }
    
    .nav-container { 
        flex-direction: column; 
        align-items: flex-start; 
        padding: 0.5rem 2vw; /* Reduced padding for mobile */
    }
    .nav-links { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 0.7rem; 
        margin-top: 0.5rem; 
    }
    .nav-link:not(:last-child)::after { display: none; }
    
    /* Ensure hero section is properly positioned on mobile */
    #hero {
        padding-top: 2rem;
    }
    
    /* Adjust body padding for mobile */
    body {
        padding-top: 80px;
    }
}

.hero-cta-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.steps-container > .step {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.steps-container > .step:nth-of-type(3) {
    flex: 1;
    max-width: 300px;
}

/** Styles below this line are for Agents and other auxiliary pages **/

/* Agents Page Specific Styles - Social Media Platform Design */

/* Hero Section for Agents Page */
#agents-hero {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #111 100%);
    padding: 8rem 5% 4rem 5%;
    text-align: center;
    border-bottom: 1px solid #333;
}

.agents-hero-content h1 {
    font-family: 'Archive', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 0 2px 32px #111;
}

.agents-hero-content p {
    font-size: 1.3rem;
    color: #e0e0e0;
    letter-spacing: 0.1em;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Feed Container - Social Media Layout */
#agents-feed {
    background: #0a0a0a;
    padding: 4rem 5%;
    min-height: 100vh;
}

.feed-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Agent Profile Cards - Social Media Style */
.agent-profile-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s, transform 0.6s;
    max-width: 720px;
    margin: 0 auto 2.5rem auto;
}

.agent-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

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

/* Profile Header - Centered layout with left avatar */
.profile-header {
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

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

.avatar-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    border: 3px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.scout-avatar {
    background: linear-gradient(135deg, #4187C1 0%, #2563eb 100%);
    border-color: #4187C1;
}

.kont-avatar {
    background: linear-gradient(135deg, #fa3e05 0%, #dc2626 100%);
    border-color: #fa3e05;
}

.ticket-avatar {
    background: linear-gradient(135deg, #51cf66 0%, #10b981 100%);
    border-color: #51cf66;
}

.custom-avatar {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e42 100%);
    border-color: #fbbf24;
}

.avatar-icon:hover {
    transform: scale(1.05);
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #1a1a1a;
}

.status-indicator.online {
    background: #51cf66;
    box-shadow: 0 0 8px rgba(81, 207, 102, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.profile-info {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-info h2 {
    font-family: 'Archive', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.profile-tagline {
    color: #4187C1;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-family: 'Archive', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 0.2rem;
    letter-spacing: 0.05em;
}

.stat-number.animated {
    transition: color 0.4s, transform 0.4s;
    will-change: color, transform;
}
.stat-number.animated:hover {
    color: #fbbf24;
    transform: scale(1.08);
}

/* Post Content */
.profile-content {
    padding: 0;
}

.post {
    padding: 2rem 2.5rem 2.5rem 2.5rem;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

.post-time {
    color: #888;
}

.post-status {
    color: #51cf66;
    font-weight: 600;
}

.post-content h3 {
    font-family: 'Archive', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.post-content p {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Capabilities Grid - 2 per row */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.capability {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.capability:hover {
    transform: scale(1.04);
    background: rgba(255, 255, 255, 0.12);
    border-color: #fbbf24;
}

.capability-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.capability span:last-child {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Recent Activity */
.recent-activity {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.recent-activity h4 {
    font-family: 'Archive', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.recent-activity ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-activity li {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    padding-left: 0;
    line-height: 1.4;
}

.recent-activity li:last-child {
    margin-bottom: 0;
}

/* Post Actions */
.post-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.05em;
}

.action-btn.primary {
    background: linear-gradient(135deg, #4187C1 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(65, 135, 193, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(65, 135, 193, 0.4);
}

.action-btn.secondary {
    background: transparent;
    color: #4187C1;
    border: 2px solid #4187C1;
}

.action-btn.secondary:hover {
    background: rgba(65, 135, 193, 0.1);
}

.engagement {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Agent-specific styling */
#scout-profile {
    border-top: 3px solid #4187C1;
}

#kont-profile {
    border-top: 3px solid #fa3e05;
}

#ticket-profile {
    border-top: 3px solid #51cf66;
}

/* CTA Section */
#agents-cta {
    background: linear-gradient(135deg, 
        rgba(65, 135, 193, 0.15) 0%, 
        rgba(38, 50, 106, 0.25) 50%, 
        rgba(65, 135, 193, 0.15) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    margin: 4rem 5% 2rem 5%;
    padding: 4rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#agents-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        transparent 50%, 
        rgba(65, 135, 193, 0.05) 100%
    );
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: 'Archive', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Gold-themed CTA Button for Custom Agent */
.cta-button-primary.gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e42 100%);
    color: #222;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.15);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.cta-button-primary.gold:hover {
    background: linear-gradient(135deg, #f59e42 0%, #fbbf24 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .agents-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .agents-hero-content p {
        font-size: 1.1rem;
    }
    
    #agents-feed {
        padding: 2rem 3%;
    }
    
    .feed-container {
        gap: 2rem;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .post {
        padding: 1.5rem;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    /* Override to keep button centered and not stretched */
    .post-actions {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .action-btn {
        width: auto !important;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .agents-hero-content h1 {
        font-size: 2rem;
    }
    
    .profile-info h2 {
        font-size: 1.6rem;
    }
    
    .avatar-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .profile-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
}


/* --- HEADER IMPROVEMENTS --- */

/* Increase header height for better vertical centering */
.main-nav {
    height: 100px; /* You can adjust this as needed */
    align-items: center; /* Vertically center children */
}

/* Vertically center items inside nav container */
.nav-container {
    align-items: center !important;
    padding: 0.5rem 4vw; /* Adjust padding to visually center */
    height: 100%; /* Match header height */
}

/* Make logo larger and align it better */
.logo img {
    height: 140px !important;  /* Bigger logo */
    margin-top: 5px; /* Nudge down slightly if needed */
}

/* Align nav links vertically center */
.nav-links {
    align-items: center !important;
}

/* Slightly reduce vertical space around links */
.nav-link {
    padding: 0.2rem 0;
    line-height: 1;
}

/* CTA button in header: match height with links */
.cta-button-header {
    padding: 0.6rem 1.6rem;
    margin-top: 0;
    margin-bottom: 0;
    align-self: center;
}