/* TDS Ventures - Main Stylesheet */

/* CSS Variables */
:root {
    --storm-deep: #023047;
    --storm-blue: #0077b6;
    --storm-sky: #4a9fc7;
    --mist-light: #e8f1f5;
    --mist-medium: #d4e4eb;
    --cloud-gray: #8b9da8;
    --rain-gray: #596973;
    --shelter-white: #fafbfc;
}

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

body { font-family: 'Source Sans 3', sans-serif; line-height: 1.7; color: var(--rain-gray); background: linear-gradient(135deg, var(--mist-light) 0%, var(--shelter-white) 50%, var(--mist-medium) 100%); min-height: 100vh; position: relative; overflow-x: hidden; }

/* Rain Animation */
.rain-drop { position: fixed; top: -10%; width: 0.125rem; height: 3rem; background: linear-gradient(to bottom, transparent, rgba(77, 159, 199, 0.15), transparent); pointer-events: none; z-index: 1; animation: dropFall linear infinite; }

@keyframes dropFall { to { transform: translateY(110vh); } }

/* Header */
header { background: linear-gradient(165deg, var(--storm-deep) 0%, #034561 50%, var(--storm-blue) 100%); color: var(--shelter-white); padding: 1.5rem 2rem 3.5rem; position: relative; overflow: hidden; border-bottom-left-radius: 3rem; border-bottom-right-radius: 3rem; box-shadow: 0 1rem 3rem rgba(2, 48, 71, 0.15); }

header::before { content: ''; position: absolute; top: -50%; left: -10%; width: 40%; height: 200%; background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 60%); transform: rotate(-15deg); }

header .header-content { display: flex; align-items: center; justify-content: center; gap: 1.5rem; max-width: 75rem; margin: 0 auto; position: relative; animation: fadeSlideDown 0.8s ease-out; }

header .logo { width: 4rem; height: 4rem; flex-shrink: 0; }

header .logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0.25rem 0.5rem rgba(0, 0, 0, 0.2)); }

header .header-text { text-align: left; }

header h1 { font-family: 'Crimson Pro', serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 0.25rem; letter-spacing: -0.02em; line-height: 1.1; }

header h1 a { color: inherit; text-decoration: none; }

header p { font-size: 1.125rem; font-weight: 300; opacity: 0.95; letter-spacing: 0.02em; }

@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-1.5rem); } to { opacity: 1; transform: translateY(0); } }

/* Navigation */
nav { max-width: 75rem; margin: -2rem auto 0; padding: 0 2rem; position: relative; z-index: 10; display: flex; justify-content: center; gap: 1rem; animation: fadeSlideUp 0.8s ease-out 0.4s backwards; }

@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: translateY(0); } }

nav a { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(0.625rem); color: var(--storm-deep); text-decoration: none; padding: 1rem 2rem; border-radius: 3rem; font-weight: 600; font-size: 1rem; box-shadow: 0 0.5rem 1.5rem rgba(2, 48, 71, 0.08); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }

nav a::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: var(--mist-light); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.5s ease, height 0.5s ease; }

nav a:hover { transform: translateY(-0.25rem); box-shadow: 0 0.75rem 2rem rgba(0, 119, 182, 0.15); color: var(--storm-blue); }

nav a:hover::before { width: 200%; height: 200%; }

nav a span { position: relative; z-index: 1; }

/* Main Content */
main { max-width: 75rem; margin: 4rem auto; padding: 0 2rem 4rem; position: relative; z-index: 2; }

/* Sections */
.section { margin-bottom: 5rem; animation: fadeIn 0.8s ease-out backwards; }

.section:nth-child(1) { animation-delay: 0.6s; }
.section:nth-child(2) { animation-delay: 0.8s; }
.section:nth-child(3) { animation-delay: 1s; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(2rem); } to { opacity: 1; transform: translateY(0); } }

.section h2 { font-family: 'Crimson Pro', serif; color: var(--storm-deep); font-size: 2.75rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: -0.01em; }

.section-intro { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(1.25rem); padding: 2.5rem 3rem; border-radius: 2rem; box-shadow: 0 0.5rem 2rem rgba(2, 48, 71, 0.06); border: 0.0625rem solid rgba(255, 255, 255, 0.8); }

.section-intro p { font-size: 1.25rem; line-height: 1.8; color: var(--rain-gray); font-weight: 300; }

/* Product Blocks */
.product-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 2rem; margin-top: 3rem; }

.product-block { position: relative; height: 26rem; border-radius: 2rem; overflow: hidden; box-shadow: 0 1rem 2.5rem rgba(2, 48, 71, 0.12); transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); background: linear-gradient(135deg, var(--mist-light) 0%, var(--shelter-white) 100%); }

.product-block .fader { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(250, 251, 252, 0.92) 0%, rgba(232, 241, 245, 0.88) 100%); backdrop-filter: blur(0.25rem); transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

.product-block:hover { transform: translateY(-0.75rem); box-shadow: 0 1.5rem 3.5rem rgba(0, 119, 182, 0.2); }

.product-block:hover .fader { background: linear-gradient(135deg, rgba(250, 251, 252, 0.85) 0%, rgba(212, 228, 235, 0.75) 100%); }

.product-block .content { position: relative; z-index: 10; padding: 2.5rem; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }

.product-block h3 { font-family: 'Crimson Pro', serif; font-size: 2rem; font-weight: 600; color: var(--storm-deep); margin-bottom: 1rem; letter-spacing: -0.01em; }

.product-block p { font-size: 1.05rem; line-height: 1.7; color: var(--rain-gray); font-weight: 300; }

.product-block a { text-decoration: none; color: inherit; }

.product-block p a, .product-block .cta-link { color: var(--storm-blue); font-weight: 600; text-decoration: none; position: relative; transition: color 0.3s ease; }

.product-block p a::after, .product-block .cta-link::after { content: ''; position: absolute; bottom: -0.125rem; left: 0; width: 100%; height: 0.125rem; background: var(--storm-blue); transform: scaleX(1); transform-origin: left; transition: transform 0.3s ease; }

.product-block p a:hover, .product-block .cta-link:hover { color: var(--storm-deep); }

.product-block p a:hover::after, .product-block .cta-link:hover::after { transform: scaleX(0); transform-origin: right; }

/* Contact Card */
.contact-card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(232, 241, 245, 0.6) 100%); backdrop-filter: blur(1.25rem); padding: 3rem; border-radius: 2rem; box-shadow: 0 1rem 2.5rem rgba(2, 48, 71, 0.08); border: 0.0625rem solid rgba(255, 255, 255, 0.9); margin-top: 2rem; }

.contact-card p { font-size: 1.125rem; margin-bottom: 1.25rem; color: var(--rain-gray); }

.contact-card strong { color: var(--storm-deep); font-weight: 600; }

.contact-card a { color: var(--storm-blue); text-decoration: none; font-weight: 600; position: relative; transition: color 0.3s ease; }

.contact-card a::after { content: ''; position: absolute; bottom: -0.125rem; left: 0; width: 100%; height: 0.125rem; background: var(--storm-blue); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }

.contact-card a:hover { color: var(--storm-deep); }

.contact-card a:hover::after { transform: scaleX(1); }

/* Footer */
footer { background: linear-gradient(to right, var(--storm-deep) 0%, #034561 50%, var(--storm-deep) 100%); color: var(--mist-light); text-align: center; padding: 2.5rem 2rem; margin-top: 6rem; border-top-left-radius: 3rem; border-top-right-radius: 3rem; box-shadow: 0 -1rem 3rem rgba(2, 48, 71, 0.1); position: relative; z-index: 2; }

footer p { font-size: 1rem; opacity: 0.9; font-weight: 300; }

footer a { color: var(--mist-light); text-decoration: none; transition: opacity 0.3s ease; }

footer a:hover { opacity: 0.7; }

/* Cookie Banner */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: linear-gradient(to right, rgba(2, 48, 71, 0.97) 0%, rgba(3, 69, 97, 0.97) 100%); backdrop-filter: blur(1rem); color: var(--shelter-white); padding: 1.5rem 2rem; display: flex; justify-content: center; align-items: center; gap: 1.5rem; z-index: 1000; box-shadow: 0 -0.5rem 2rem rgba(2, 48, 71, 0.3); border-top-left-radius: 2rem; border-top-right-radius: 2rem; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease; }

#cookie-banner.hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }

#cookie-banner p { font-size: 1rem; font-weight: 300; }

#cookie-banner button { background: var(--storm-blue); color: var(--shelter-white); border: none; padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; cursor: pointer; border-radius: 2rem; font-family: 'Source Sans 3', sans-serif; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 0.25rem 1rem rgba(0, 119, 182, 0.3); }

#cookie-banner button:hover { background: var(--storm-sky); transform: translateY(-0.125rem); box-shadow: 0 0.5rem 1.5rem rgba(0, 119, 182, 0.4); }

/* Legal Pages */
.legal-page { max-width: 60rem; margin: 3rem auto 4rem; padding: 0 2rem; }

.legal-content { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(1.25rem); padding: 3rem; border-radius: 2rem; box-shadow: 0 0.5rem 2rem rgba(2, 48, 71, 0.06); border: 0.0625rem solid rgba(255, 255, 255, 0.8); animation: fadeIn 0.8s ease-out 0.3s backwards; }

.legal-content h1 { font-family: 'Crimson Pro', serif; color: var(--storm-deep); font-size: 2.5rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.01em; }

.effective-date { color: var(--cloud-gray); font-size: 1rem; margin-bottom: 2.5rem; }

.legal-section { margin-bottom: 2.5rem; }

.legal-section:last-child { margin-bottom: 0; }

.legal-section h2 { font-family: 'Crimson Pro', serif; color: var(--storm-deep); font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 0.125rem solid var(--mist-medium); }

.legal-section h3 { font-family: 'Source Sans 3', sans-serif; color: var(--storm-blue); font-size: 1.125rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }

.legal-section p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.8; }

.legal-section ul { margin: 0.75rem 0 1.25rem 1.5rem; }

.legal-section li { margin-bottom: 0.5rem; line-height: 1.7; }

.legal-section ul ul { margin-top: 0.5rem; margin-bottom: 0.5rem; }

.legal-section a { color: var(--storm-blue); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }

.legal-section a:hover { color: var(--storm-deep); text-decoration: underline; }

.legal-section strong { color: var(--storm-deep); }

/* 404 Error Page */
.error-page { display: flex; justify-content: center; align-items: center; min-height: 50vh; }

.error-content { text-align: center; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(1.25rem); padding: 4rem; border-radius: 2rem; box-shadow: 0 0.5rem 2rem rgba(2, 48, 71, 0.06); border: 0.0625rem solid rgba(255, 255, 255, 0.8); animation: fadeIn 0.8s ease-out 0.3s backwards; }

.error-content h1 { font-family: 'Crimson Pro', serif; color: var(--storm-blue); font-size: 8rem; font-weight: 700; line-height: 1; margin-bottom: 0.5rem; }

.error-content h2 { font-family: 'Crimson Pro', serif; color: var(--storm-deep); font-size: 2rem; font-weight: 600; margin-bottom: 1rem; }

.error-content p { color: var(--rain-gray); font-size: 1.125rem; margin-bottom: 2rem; }

.error-content .back-home { display: inline-block; background: var(--storm-blue); color: var(--shelter-white); text-decoration: none; padding: 1rem 2rem; border-radius: 3rem; font-weight: 600; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.error-content .back-home:hover { background: var(--storm-deep); transform: translateY(-0.25rem); box-shadow: 0 0.5rem 1.5rem rgba(0, 119, 182, 0.3); }

/* Responsive Design */
@media only screen and (max-width: 900px) {
    header { padding: 1.25rem 1.5rem 3rem; border-radius: 0 0 2rem 2rem; }
    header .header-content { flex-direction: column; gap: 1rem; }
    header .header-text { text-align: center; }
    header .logo { width: 3.5rem; height: 3.5rem; }
    header h1 { font-size: 2rem; }
    nav { flex-direction: column; margin-top: -1.5rem; padding: 0 1.5rem; }
    nav a { text-align: center; }
    main { padding: 0 1.5rem 3rem; margin-top: 3rem; }
    .section h2 { font-size: 2rem; }
    .section-intro, .contact-card { padding: 2rem; }
    .product-blocks { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-block { height: 22rem; }
    #cookie-banner { flex-direction: column; text-align: center; gap: 1rem; padding: 1.5rem; border-radius: 1.5rem 1.5rem 0 0; }
    footer { border-radius: 2rem 2rem 0 0; }

    /* Legal page responsive */
    .legal-page { padding: 0 1.5rem; margin-top: 2rem; }
    .legal-content { padding: 2rem; }
    .legal-content h1 { font-size: 2rem; }

    /* Error page responsive */
    .error-content { padding: 2rem; }
    .error-content h1 { font-size: 5rem; }
}
