:root {
        --font-cursive: 'Great Vibes', cursive;
        --font-body: 'Montserrat', sans-serif;
		--font-cursive-2: 'Lacheyard Script', cursive;
		--font-cursive-1: 'Chopin Script', cursive;
		--font-cursive-3: 'Sparkling Valentine', cursive;
        --color-text: #333;
        --color-bg: #fff;
        --color-accent: #a88765;
    }

@font-face {
    font-family: 'Lacheyard Script';
    src: url('resurse/fonts/lacheyard_script.woff2') format('woff2'),
         url('resurse/fonts/lacheyard_script.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Chopin Script';
    src: url('resurse/fonts/chopin_script.woff2') format('woff2'),
         url('resurse/fonts/chopin_script.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sparkling Valentine';
    src: url('resurse/fonts/sparkling_valentine.woff2') format('woff2'),
         url('resurse/fonts/sparkling_valentine.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-body);
	color: var(--color-text);
	line-height: 1.6;
	overflow-x: hidden;
}

h1, h2, h3, .cursive-text {
	font-family: var(--font-cursive-2);
	font-weight: normal;
}

.cursive-2-text {
	font-family: var(--font-cursive-2);
	font-weight: normal;
}

/* Sectiunea 1: Hero */
/*#hero {
	height: 100vh;
	background-image: url('https://images.unsplash.com/photo-1511285560929-80b456fea0bc?q=80&w=2069&auto=format&fit=crop');
	background-size: cover;
	background-position: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: white;
	position: relative;
}
*/
#hero::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

#hero h1, #hero p {
	position: relative;
	z-index: 2;
}

#hero h1 { font-size: 5rem; margin-bottom: 10px; }
#hero p { font-size: 1.5rem; letter-spacing: 2px; }


#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Important: păstrează aspectul imaginii fără a o deforma */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Ajustează opacitatea pentru a vedea textul clar */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Sectiunea 2: Split */
#poveste {
	display: flex;
	flex-wrap: wrap;
	min-height: 50vh;
	background-color: white !important;
}

.poveste-img {
	width: 80%;
}

.poveste-img-div {
	margin-top: auto;
	margin-bottom: auto;
	text-align: center;
}

.poveste-text {
	padding: 5%;
	justify-content: center;
	text-align: center;
}

.poveste-text p { margin-bottom: 20px; font-size: 1.1rem; }
.poveste-text .cursive-text { font-size: 2.5rem; margin: 10px 0; color: var(--color-accent); }

/* Sectiunea 3: Countdown Parallax */
#countdown-section {
	background-image: url('https://images.unsplash.com/photo-1606800052052-a08af7148866?w=1200&q=80');
	background-attachment: fixed;
	background-position: center;
	background-size: cover;
	padding: 100px 20px;
	color: white;
	text-align: center;
	position: relative;
}

#countdown-section::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1;
}


#ramasText {
  color: white;
  z-index: 100;
  position: relative;
  font-size: 5rem;
  margin-bottom: 20px;
}

#timer {
	display: flex;
	justify-content: center;
	gap: 30px;
	position: relative;
	z-index: 2;
}

.time-box {
	background: rgba(255, 255, 255, 0.2);
	padding: 20px;
	border-radius: 10px;
	min-width: 100px;
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255,255,255,0.2);
}

.time-box span { display: block; font-size: 3rem; font-weight: 600; }
.time-box label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* Sectiunea 4: Locatii */
#evenimente {
	padding: 80px 20px;
	background: #fdfbf9;
	text-align: center;
}

.cards-container {
	display: flex;
	justify-content: center;
	gap: 40px;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 40px auto 0;
}

.card:hover {
  transform: translateY(-8px);
}

.card {
	background: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
	flex: 1 1 400px;
	max-width: 500px;
	text-align: left;
	transition: transform 0.3s ease;
	border: 0;
}

.card-img {
	width: 100%;
	height: 250px;
	object-fit: cover;
}

.card-content { padding: 30px; }
.card-content h3 { font-size: 2.5rem; color: var(--color-accent); margin-bottom: 20px; text-align: center; }
.card-content p { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.card-content i { color: var(--color-accent); width: 20px; text-align: center; }

.btn-group {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.btn {
	flex: 1;
	padding: 12px;
	text-align: center;
	text-decoration: none;
	color: white;
	border-radius: 5px;
	font-weight: 600;
	font-size: 0.9rem;
	transition: opacity 0.3s;
}

.btn:hover { opacity: 0.9; color: var(--color-accent); }
.btn:hover i { color: var(--color-accent); }

.btn i { color: white; }

.btn-maps, .btn-waze { background: var(--color-accent); }

/* Sectiunea 5: RSVP Parallax */
#rsvp-section {
	background-image: url('https://images.unsplash.com/photo-1520854221256-17451cc331bf?q=80&w=2070&auto=format&fit=crop');
	background-attachment: fixed;
	background-position: center;
	background-size: cover;
	padding: 120px 20px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.rsvp-box {
	background: white;
	padding: 50px;
	border-radius: 10px;
	text-align: center;
	max-width: 600px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.rsvp-box h2 { font-size: 3.5rem; color: var(--color-accent); margin-bottom: 20px; }
.rsvp-box p { margin-bottom: 10px; font-size: 1.1rem; }

.btn-primary {
	display: inline-block;
	margin-top: 25px;
	padding: 15px 40px;
	background: var(--color-accent);
	color: white;
	border: none;
	border-radius: 5px;
	font-size: 1.1rem;
	cursor: pointer;
	font-family: var(--font-body);
}

/* Modal & Form */
.modal {
	display: none;
	position: fixed;
	z-index: 100;
	left: 0; top: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.6);
	backdrop-filter: blur(3px);
	overflow-y: auto;
}

.modal-content {
	background: white;
	margin: 5% auto;
	padding: 40px;
	width: 90%;
	max-width: 500px;
	border-radius: 10px;
	position: relative;
}

.close { position: absolute; right: 25px; top: 15px; font-size: 30px; cursor: pointer; color: #aaa; }

.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; }
.subtext { font-size: 0.8rem; color: #888; display: block; margin-bottom: 8px; }

input[type="text"], input[type="number"], select, textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-family: var(--font-body);
}

/* Switch Toggle */
.switch-container {
	display: flex;
	align-items: center;
	gap: 15px;
}

.switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
	position: absolute; cursor: pointer;
	top: 0; left: 0; right: 0; bottom: 0;
	background-color: #ccc; transition: .4s;
	border-radius: 34px;
}

.slider:before {
	position: absolute; content: "";
	height: 26px; width: 26px;
	left: 4px; bottom: 4px;
	background-color: white; transition: .4s;
	border-radius: 50%;
}

input:checked + .slider { background-color: var(--color-accent); }
input:checked + .slider:before { transform: translateX(26px); }

#sectiune-participare, #sectiune-partener { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }

/* LOADING SCREEN*/

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /*height: 100%;*/
    background-color: #fff; /* Sau culoarea de fundal a plicului */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out, visibility 1s;
    cursor: pointer;
}

.loading-content {
    text-align: center;
    width: 100%;
}

#video-invitatie {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.instructiune-click {
    margin-top: 20px;
    font-family: var(--font-body);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #888;
    animation: pulse 2s infinite;
}

#toggleMusicBtn{
    position: fixed;
    z-index: 1000;
    bottom: 15px;
    right: 15px;
    border-radius: 25px;
    padding: 10px;
    background-color: black;
    color: white;
    border: none;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Clasa care va fi adăugată prin JS pentru a ascunde ecranul */
.hidden-loading {
    opacity: 0 !important;
    visibility: hidden !important;
}

footer {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  padding: 0.6rem;
}

footer p {
    margin-bottom: 0px;
}

@media (max-width: 800px) {
	#hero h1 { font-size: 4rem; }
	#hero-video { left: 150%; }
	.poveste-img { min-height: 300px; }
	#timer { gap: 15px; }
	.time-box { min-width: 70px; padding: 15px; }
	.time-box span { font-size: 2rem; }
	.rsvp-box { padding: 30px 20px; }
	.poveste-text .cursive-text { font-size: 2.3rem; }
	.poveste-text p { font-size: 1rem; }
	.time-box label { font-size: 0.5rem; text-transform: uppercase; letter-spacing: 0;}
	.card-content p { font-size: 0.9rem; }
	.rsvp-box p { font-size: 1rem; }
	.rsvp-box h2 { font-size: 2.5rem; }
	#loading-screen, .loading-content, #video-invitatie { height: 100vh; }
	#ramasText { font-size: 3rem; margin-bottom: 10px;}
	#video-invitatie
	{
	    width: auto;
	    height: 100vh;
        transform: translateX(-50%);
        left: 50%;
        position: relative;
	}
}