.main-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    padding-top: 40px; /* Reduced space since fixed navbar is hidden */
    padding-bottom: 60px;
    gap: 40px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px; /* Premium spacing between title, subtitle, and search bar */
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.15;
    background: linear-gradient(135deg, #0f172a 40%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: #475569;
    margin: 0 auto;
    max-width: 60ch;
    line-height: 1.6;
    font-weight: 400;
}

/* Search Bar & Input */
.search-bar-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    border-radius: 50px;
}

.main-search-bar {
    width: 100%;
    padding: 18px 58px 18px 52px;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 50px;
    box-sizing: border-box;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.main-search-bar::placeholder {
    color: #94a3b8;
}

.main-search-bar:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background: #ffffff;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s;
}

.main-search-bar:focus ~ .search-icon {
    color: #4f46e5;
}

/* Add Pill Button inside search */
.add-pill-button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.add-pill-button:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.35);
}

.add-pill-button:active {
    transform: translateY(-50%) scale(0.95);
}

/* Search Pills */
.search-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px auto 16px auto;
    max-width: 600px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.search-pills-container:empty {
    margin: 0 auto;
}

.search-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.06);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: default;
    animation: fadeInScale 0.2s ease-out;
    font-family: 'Outfit', sans-serif;
}

.search-pill:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.search-pill .remove-pill {
    margin-left: 8px;
    cursor: pointer;
    color: #6366f1;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-block;
    transition: color 0.2s;
}

.search-pill .remove-pill:hover {
    color: #dc3545;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Features Grid Section */
.features-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 20px;
    margin-top: 30px; /* Distinct gap between search bar and cards */
    background: transparent;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    padding: 40px 30px; /* Generous card padding */
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 220px;
    width: 440px;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.1);
}

.feature-icon {
    font-size: 2.8rem;
    color: #4f46e5;
    margin-bottom: 24px; /* Distinct gap below icon */
    background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(79, 70, 229, 0.1));
}

.feature-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    width: 100%;
}

.feature-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0; /* Balanced margin below heading */
}

.feature-content p {
    font-size: 0.95rem;
    color: #475569;
    margin: 0 0 28px 0; /* Distinct margin pushing button down */
    line-height: 1.5;
}

.feature-button {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    font-size: 0.95rem;
}

.feature-button:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

/* Auth page minimal footer */
.auth-footer {
    text-align: center;
    padding: 10px 20px;
    font-size: 0.74rem;
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    background: transparent;
}

.auth-footer p {
    margin: 0;
}

.auth-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-footer a:hover {
    color: #4f46e5;
}

/* Footer styling overhaul */
.footer {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 24px 20px 16px 20px;
    color: #475569;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.footer-logo {
    width: 24px;
    height: 24px;
}

.footer-brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.footer-tagline {
    font-size: 0.8rem;
    color: #475569;
    max-width: 45ch;
    margin: 0;
    line-height: 1.5;
    font-family: 'Outfit', sans-serif;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    justify-content: center;
}

.footer-social a {
    color: #64748b;
    font-size: 0.95rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.footer-social a:hover {
    color: #4f46e5;
    transform: translateY(-2px);
}

.footer-cols {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
}

.footer-col h4 {
    margin: 0 0 10px 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4f46e5;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-links a {
    color: #475569;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.15s ease;
    font-family: 'Outfit', sans-serif;
}

.footer-links a:hover {
    color: #4f46e5;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.footer-bottom p {
    font-family: 'Outfit', sans-serif;
}

.footer-bottom .copyright {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 500;
    margin: 0;
}

.footer-bottom .data-notice {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    font-style: italic;
}

@media (min-width: 769px) {
    .footer {
        padding: 24px 20px 16px 20px;
    }
    .footer-container {
        display: grid;
        grid-template-columns: 1.2fr auto;
        grid-template-areas:
            "brand cols"
            "bottom bottom";
        align-items: center;
        gap: 16px 80px;
        max-width: 860px;
        margin: 0 auto;
    }
    .footer-brand {
        grid-area: brand;
        display: grid;
        grid-template-areas: 
            "logo name"
            "tagline tagline"
            "social social";
        grid-template-columns: auto 1fr;
        align-items: center;
        align-self: center;
        gap: 6px 12px;
        text-align: left;
    }
    .footer-logo {
        grid-area: logo;
        margin: 0;
        align-self: center;
    }
    .footer-brand-name {
        grid-area: name;
        font-size: 1.15rem;
        margin: 0;
        align-self: center;
    }
    .footer-tagline {
        grid-area: tagline;
        margin-top: 4px;
        align-self: center;
    }
    .footer-social {
        grid-area: social;
        margin-top: 6px;
        justify-content: flex-start;
    }
    .footer-cols {
        grid-area: cols;
        display: flex;
        gap: 80px;
        text-align: left;
        margin-top: 10px; /* Moves the "Navigasyon" and "Yasal" headers down */
    }
    .footer-col h4 {
        text-align: left;
    }
    .footer-links {
        align-items: flex-start;
    }
    .footer-bottom {
        grid-area: bottom;
        border-top: 1px solid rgba(148, 163, 184, 0.15);
        padding-top: 12px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 20px;
        margin-top: 12px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 30px 20px 20px 20px;
    }
    
    .features-section {
        padding: 20px 20px;
        gap: 20px;
    }

    /* Footer Mobile Overhaul */
    .footer {
        padding: 32px 24px 24px 24px !important;
        background: rgba(255, 255, 255, 0.85) !important;
    }

    .footer-container {
        gap: 20px !important;
    }

    /* Centers the brand name and logo perfectly side-by-side */
    .footer-brand {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px 10px !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer-logo {
        width: 26px !important;
        height: 26px !important;
        margin: 0 !important;
    }

    .footer-brand-name {
        font-size: 1.25rem !important;
        font-weight: 800 !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    /* Tagline wraps underneath brand/logo perfectly and centers */
    .footer-tagline {
        width: 100% !important;
        font-size: 0.82rem !important;
        color: #64748b !important;
        max-width: 38ch !important;
        line-height: 1.5 !important;
        text-align: center !important;
        margin: 4px auto 0 auto !important;
    }

    /* Completely remove/hide the crossed-out navigation columns on mobile */
    .footer-cols {
        display: none !important;
    }

    .footer-bottom {
        border-top: 1px solid rgba(148, 163, 184, 0.12) !important;
        padding-top: 18px !important;
        margin-top: 4px !important;
        gap: 8px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer-bottom .copyright {
        font-size: 0.8rem !important;
        color: #64748b !important;
    }

    .footer-bottom .data-notice {
        font-size: 0.74rem !important;
        color: #94a3b8 !important;
        line-height: 1.4 !important;
        max-width: 44ch !important;
    }
}

/* Dynamic height scaling to prevent overflow on small screens / zoom */
@media (max-height: 850px) {
    .hero-section {
        gap: 28px; /* Spacious gap for medium screen heights */
        padding: 0 20px;
    }
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .features-section {
        gap: 20px;
        padding: 0 20px;
    }
    .feature-card {
        padding: 20px 24px;
        min-height: 180px;
        width: 380px;
        gap: 12px;
    }
    .feature-icon {
        font-size: 2.1rem;
    }
    .feature-content h3 {
        font-size: 1.25rem;
    }
    .feature-content p {
        font-size: 0.95rem;
    }
    .footer {
        padding: 20px 10px;
    }
}

@media (max-height: 700px) {
    .hero-section {
        gap: 22px; /* Distinct, readable spacing on small heights */
        padding: 0 20px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .features-section {
        gap: 12px;
        padding: 0 20px;
    }
    .feature-card {
        padding: 15px 20px;
        min-height: 140px;
        width: 360px;
        gap: 8px;
    }
    .feature-icon {
        font-size: 1.6rem;
    }
    .feature-content h3 {
        font-size: 1.15rem;
    }
    .feature-content p {
        font-size: 0.9rem;
    }
    .footer {
        padding: 12px 10px;
    }
}
