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

/* Custom Trovill Font */
@font-face {
    font-family: 'TrovillCustom';
    src: url('./assets/SVG/Untitled1.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color Palette */
    --primary-color: #1a1a1a;
    --secondary-color: #f8f8f8;
    --accent-gold: #d4af37;
    --accent-rose: #e8b4b8;
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-dark: #333333;
    --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --gradient-accent: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-brand: 'Playfair Display', serif;
    
    /* Spacing */
    --section-padding: 4rem 2rem;
    --container-max-width: 1200px;
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--primary-color);
}

/* Background Container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('assets/background.png') center/cover no-repeat, var(--gradient-primary);
}

.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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="20" cy="20" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="80" cy="40" r="0.3" fill="%23ffffff" opacity="0.03"/><circle cx="40" cy="80" r="0.4" fill="%23ffffff" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: grain 20s linear infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

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

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    padding: 2rem;
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

.logo {
    display: inline-block;
}

.brand-name {
    text-align: center;
    margin-bottom: -4rem;
}

.trovill-logo {
    height: 550px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3))
            sepia(1) 
            saturate(2) 
            hue-rotate(15deg) 
            brightness(1.3)
            contrast(1.2);
    transition: var(--transition-smooth);
    margin-bottom: -3rem;
}

.trovill-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4))
            sepia(1) 
            saturate(2.5) 
            hue-rotate(15deg) 
            brightness(1.4)
            contrast(1.3);
}

.brand-logo {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.brand-logo svg {
    width: 100%;
    height: 100%;
}

.brand-tagline {
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding);
    text-align: center;
}

.hero-content {
    max-width: var(--container-max-width);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.2;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.2) 100%);
    backdrop-filter: blur(15px);
    padding: 1rem 2rem;
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: inline-block;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #ffffff;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.8;
}

/* Countdown Timer */
.countdown-container {
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.countdown-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
    font-weight: 500;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.countdown-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-body);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Subscription Form */
.subscription-container {
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.subscription-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.subscription-subtitle {
    color: #ffffff;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 300;
}

.input-group {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 3px solid rgba(212, 175, 55, 0.4);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.input-group:focus-within {
    background: rgba(255, 255, 255, 1);
    border-color: var(--accent-gold);
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3), 0 12px 40px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.email-input {
    flex: 1;
    padding: 1.2rem 2rem;
    border: none;
    background: transparent;
    color: #2d2d2d;
    font-size: 1.1rem;
    outline: none;
    font-family: var(--font-body);
    font-weight: 500;
}

.email-input::placeholder {
    color: #666666;
    opacity: 1;
    font-weight: 400;
}

.submit-btn {
    padding: 1.2rem 2.5rem;
    background: var(--gradient-accent);
    border: none;
    color: var(--text-dark);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.submit-btn:hover {
    transform: translateX(-3px);
    box-shadow: -3px 0 12px rgba(212, 175, 55, 0.3);
}

.btn-icon {
    transition: var(--transition-smooth);
}

.submit-btn:hover .btn-icon {
    transform: translateX(3px);
}

.form-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.5rem;
}

.form-message.success {
    color: #4CAF50;
}

.form-message.error {
    color: #f44336;
}

/* GDPR Consent Styling */
.consent-container {
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ffffff;
}

.consent-checkbox {
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-gold);
}

.consent-text {
    color: #ffffff;
    font-weight: 400;
}

.privacy-link {
    color: var(--accent-gold);
    text-decoration: underline;
    transition: var(--transition-smooth);
}

.privacy-link:hover {
    color: #f4d03f;
}

/* Features Preview */
.features-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.features-preview .feature-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.features-preview .feature-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.features-preview .feature-item:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2;
    max-width: 400px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-item:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--accent-gold);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.25);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d2d2d;
    font-weight: 600;
    text-shadow: none;
}

.feature-description {
    color: #4a4a4a;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem 0;
    text-align: center;
    color: #ffffff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition-bounce);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--gradient-accent);
    color: var(--text-dark);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.footer-text {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    font-weight: 300;
}

.footer-link:hover {
    color: var(--accent-gold);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loading-logo {
    margin-bottom: 2rem;
    text-align: center;
}

.loading-logo-svg {
    height: 90px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-logo-icon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Logo Animations */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.brand-logo {
    animation: logoFloat 3s ease-in-out infinite;
}

.loading-logo-icon {
    animation: logoFloat 2s ease-in-out infinite;
}

/* Logo hover effect */
.logo:hover .brand-logo {
    animation-play-state: paused;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 2rem 1rem;
    }
    
    .trovill-logo {
        display: none;
    }
    
    .brand-logo {
        width: 50px;
        height: 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 1rem 0.8rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .submit-btn {
        border-radius: 0;
        justify-content: center;
    }
    
    .features-preview {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1.5rem;
    }
    
    .features-preview .feature-item:nth-child(1),
    .features-preview .feature-item:nth-child(2),
    .features-preview .feature-item:nth-child(3) {
        grid-column: 1;
        max-width: none;
    }
    
    .features-preview .feature-item:nth-child(1) {
        grid-row: 1;
    }
    
    .features-preview .feature-item:nth-child(2) {
        grid-row: 2;
    }
    
    .features-preview .feature-item:nth-child(3) {
        grid-row: 3;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .loading-logo-svg {
        height: 65px;
    }
    
    .loading-logo-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.8rem 0.6rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
}

/* Print Styles */
@media print {
    .loading-screen,
    .background-container {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}