/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: #33210f;
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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



/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(51, 33, 15, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a1a10;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 80px;
    width: 100% !important;
}

.logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 500;
    font-style: italic;
    color: #ffffff;
    letter-spacing: 0.5px;
    font-family: 'Playfair Display', serif;
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
    width: auto !important;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 120px;
}

.hero-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8rem;
    height: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}





.typing-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5rem;
    position: relative;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-family: 'Playfair Display', serif;
    margin: 0;
    white-space: nowrap;
    text-align: center;
}

/* Title 2 should be smaller than title 1 but larger than title 3 */
#second-text {
    font-size: 2.8rem !important;
}

/* Title 3 should be the smallest */
#third-text {
    font-size: 2.1rem !important;
}


/* Hero Cards */
.hero-cards {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    justify-content: center;
    align-items: center;
}

.hero-cards.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-cards .business-card {
    background: #4a2a1a;
    border: 2px solid #5d3a2a;
    border-radius: 8px;
    padding: 1.6rem 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    width: 300px;
    max-width: 300px;
    min-height: 120px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.hero-cards .business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1a1a1a;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.hero-cards .business-card:hover::before {
    transform: scaleX(1);
}

.hero-cards .business-card:hover {
    border-color: #1a1a1a;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Hero Cards Specific Styles */
.hero-cards .business-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.hero-cards .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 120px;
    align-self: center;
}



.btn-tertiary {
    background: #5d3a2a;
    color: #ffffff;
    border: 1px solid #6d4a3a;
}

.btn-tertiary:hover {
    background: #6d4a3a;
    border-color: #ffffff;
}

.cursor {
    font-size: 3.5rem;
    color: #ffffff;
    font-weight: 400;
    margin-left: 4px;
    animation: blink 1s infinite;
    font-family: 'Playfair Display', serif;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.subtitle-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.subtitle {
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    line-height: 1.4;
    transition: opacity 0.5s ease;
}

/* Business Sections */
.business-sections {
    padding: 120px 0;
    background: #ffffff;
}

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

.business-card {
    background: #4a2a1a;
    border: 1px solid #5d3a2a;
    border-radius: 0;
    padding: 3rem 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #1a1a1a;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.business-card:hover::before {
    transform: scaleX(1);
}

.business-card:hover {
    border-color: #1a1a1a;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-content {
    text-align: center;
}

.business-card h3 {
    font-size: 2rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.5px;
}

.card-headline {
    font-size: 1.1rem;
    font-weight: 400;
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.card-features {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-features .feature {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.card-features .feature:hover {
    transform: translateX(10px);
}

.card-features .feature span {
    color: #ffffff;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 140px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: #ffffff;
    color: #33210f;
    transform: translateY(-2px);
}

.btn-primary {
    background: #ffffff;
    color: #33210f;
}

.btn-primary:hover {
    background: #f0f0f0;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #33210f;
}

/* Footer */
.footer {
    background: #2a1a10;
    color: #ffffff;
    padding: 60px 0 20px;
    border-top: 1px solid #5d3a2a;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 500;
}

.footer-section p {
    color: #e0e0e0;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.footer-section ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #5d3a2a;
    padding-top: 1rem;
    text-align: center;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-cards {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .hero-cards .business-card {
        max-width: 300px;
        min-height: 200px;
        width: 100%;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .business-card {
        padding: 2rem 1.5rem;
    }
    
    .business-card h3 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .business-card {
        padding: 1.5rem 1rem;
    }
    
    .business-card h3 {
        font-size: 1.6rem;
    }
}

/* Animation Styles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.business-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.business-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #33210f;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.loaded)::after {
    content: 'Nerva Antonina';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 500;
    color: #ffffff;
    z-index: 10000;
    font-family: 'Playfair Display', serif;
}

/* News Ticker */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(51, 33, 15, 0.95);
    border-top: 1px solid #5d3a2a;
    overflow: hidden;
    z-index: 999;
    height: 45px;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
    padding: 0 20px;
}

.ticker-content span {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 60px;
    letter-spacing: 0.5px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Form Styles */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
    width: 100%;
    background: #33210f;
    margin-top: 80px;
}

.form-card {
    background: #4a2a1a;
    border: 1px solid #5d3a2a;
    border-radius: 0;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.form-title {
    font-size: 2rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.buyer-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #5d3a2a;
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: #5d3a2a;
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.form-group input.error {
    border-color: #dc3545;
}

.form-group input.valid {
    border-color: #28a745;
}

.password-requirements {
    margin-top: 0.5rem;
    padding: 1rem;
    background: #5d3a2a;
    border-radius: 0;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.password-requirements p {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
}

.password-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.password-requirements li {
    margin-bottom: 0.25rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-requirements li::before {
    content: '○';
    color: #ccc;
    font-size: 0.8rem;
}

.password-requirements li.valid::before {
    content: '●';
    color: #28a745;
}

.form-submit {
    margin-top: 1rem;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 500;
    min-width: 100%;
}

.form-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #5d3a2a;
}

.form-footer p {
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.form-footer .link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-footer .link:hover {
    color: #e0e0e0;
}

/* Responsive Form */
@media (max-width: 768px) {
    .form-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 1.5rem 1rem;
    }
    
    .form-title {
        font-size: 1.6rem;
    }
}

/* Hero Layout Responsive */
@media (max-width: 1200px) {
    .hero-layout {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text {
        align-items: center;
        max-width: 100%;
    }
    
    .typing-container {
        justify-content: center;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-title {
        text-align: center;
    }
    
    .hero-cards {
        max-width: 100%;
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-cards .business-card {
        max-width: 400px;
        min-height: 120px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .header-content {
        padding: 0 15px;
        height: 70px;
    }
    
    .logo h1 {
        font-size: 1.5rem !important;
    }
    
    /* Hero Mobile */
    .main-content {
        padding-top: 17px !important;
    }
    
    .hero-section {
        padding: 0 15px !important;
    }
    
    .hero-layout {
        flex-direction: column;
        gap: 0 !important;
        padding: 0 !important;
        margin-top: 0 !important;
    }
    
    .hero-text {
        gap: 0 !important;
        margin: 0 !important;
        padding-top: 0 !important;
    }
    
    .typing-container {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    
    .main-title {
        font-size: 2rem !important;
        line-height: 1.1 !important;
        text-align: center !important;
        margin-bottom: 0.75rem !important;
        padding: 0 !important;
    }
    
    #first-text {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    #second-text {
        font-size: 1.5rem !important;
        text-align: center !important;
        margin-bottom: 0.75rem !important;
    }
    
    #third-text {
        font-size: 1.2rem !important;
        text-align: center !important;
        margin-bottom: 5rem !important;
    }
    
    .subtitle {
        font-size: 1.3rem;
        text-align: center;
    }
    
    /* Business Cards Mobile - Compact */
    .hero-cards {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.6rem !important;
        margin-top: 0 !important;
    }
    
    .hero-cards .business-card {
        max-width: 100% !important;
        min-height: 60px !important;
        width: 100% !important;
        padding: 0.6rem 0.84rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: #000000 !important;
        border: 1px solid #333333 !important;
    }
    
    .business-card h3 {
        font-size: 1.02rem !important;
        margin-bottom: 0.24rem !important;
        text-align: center !important;
        color: #ffffff !important;
    }
    
    .card-headline {
        font-size: 0.78rem !important;
        margin-bottom: 0.3rem !important;
        text-align: center !important;
        color: #ffffff !important;
    }
    
    .hero-cards .business-card .btn {
        padding: 6px 14px !important;
        font-size: 0.84rem !important;
        min-width: 120px !important;
        width: auto !important;
        margin: 0.24rem 0 !important;
        background: #33210f !important;
        color: #ffffff !important;
        border: 1px solid #33210f !important;
    }
    
    /* News Ticker Mobile */
    .news-ticker {
        font-size: 0.8rem;
        padding: 0.5rem 15px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section {
        width: 100%;
    }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
    .header-content {
        padding: 0 10px;
        height: 60px;
    }
    
    .logo h1 {
        font-size: 1.3rem !important;
    }
    
    .main-content {
        padding-top: 17px !important;
    }
    
    .hero-section {
        padding: 0 10px !important;
    }
    
    .hero-layout {
        padding: 0 !important;
        gap: 0 !important;
        margin-top: 0 !important;
    }
    
    .hero-text {
        gap: 0 !important;
        margin: 0 !important;
        padding-top: 0 !important;
    }
    
    .typing-container {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    
    .main-title {
        font-size: 1.6rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.75rem !important;
        padding: 0 !important;
    }
    
    #first-text {
        font-size: 1.6rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    #second-text {
        font-size: 1.3rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    #third-text {
        font-size: 1.1rem !important;
        margin-bottom: 5rem !important;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cards {
        gap: 0.48rem !important;
        margin-top: 0 !important;
    }
    
    .hero-cards .business-card {
        padding: 0.48rem 0.72rem !important;
        min-height: 54px !important;
        max-width: 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: #000000 !important;
        border: 1px solid #333333 !important;
    }
    
    .business-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.18rem !important;
        text-align: center !important;
        color: #ffffff !important;
    }
    
    .card-headline {
        font-size: 0.72rem !important;
        margin-bottom: 0.24rem !important;
        text-align: center !important;
        color: #ffffff !important;
    }
    
    .hero-cards .business-card .btn {
        padding: 5px 12px !important;
        font-size: 0.78rem !important;
        min-width: 108px !important;
        width: auto !important;
        background: #33210f !important;
        color: #ffffff !important;
        border: 1px solid #33210f !important;
    }
    
    .news-ticker {
        font-size: 0.7rem;
        padding: 0.4rem 10px;
    }
    
    .footer {
        padding: 1.5rem 10px;
    }
}

/* Floating Language Switcher */
.floating-language-switcher {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 2000;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    background: rgba(51, 33, 15, 0.9);
    color: #f8f4ef;
    font-size: 0.7rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(6px);
}

.floating-language-switcher:hover,
.floating-language-switcher:focus-visible {
    background: rgba(51, 33, 15, 1);
    border-color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.floating-language-switcher:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .floating-language-switcher {
        left: 16px;
        bottom: 16px;
        padding: 0.4rem 0.75rem;
        font-size: 0.6rem;
        letter-spacing: 0.1rem;
    }
}