* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary: #667eea;
	--primary-dark: #5568d3;
	--secondary: #764ba2;
	--gold: #ffd700;
	--text-dark: #2d3748;
	--text-light: #718096;
	--border: #e2e8f0;
	--bg-light: #f7fafc;
	--white: #ffffff;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

body {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: var(--white);
	min-height: 100vh;
	color: var(--text-dark);
	display: flex;
	flex-direction: column;
	position: relative;
	overflow-x: hidden;
	line-height: 1.6;
}

.main-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 60px 20px;
	max-width: 1400px;
	margin: 0 auto;
	width: 100%;
}

.hero-section {
	text-align: center;
	margin-bottom: 100px;
	padding: 60px 0;
	position: relative;
}

.hero-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 200px;
	height: 200px;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
	border-radius: 50%;
	filter: blur(60px);
	z-index: -1;
}

.hero-title {
	font-family: "Dancing Script", cursive;
	font-size: 6rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 24px;
	animation: fadeInDown 1s ease;
	letter-spacing: 2px;
	line-height: 1.1;
}

.hero-subtitle {
	font-family: "Playfair Display", serif;
	font-size: 1.75rem;
	color: var(--text-light);
	font-weight: 400;
	animation: fadeInUp 1s ease 0.3s both;
	font-style: italic;
	letter-spacing: 1px;
}

.gary-section {
	margin-bottom: 120px;
	width: 100%;
	display: flex;
	justify-content: center;
	position: relative;
	background: var(--bg-light);
	padding: 80px 40px;
	border-radius: 30px;
}

.gary-wrapper {
	text-align: center;
	position: relative;
	width: 100%;
}

.thank-message {
	position: absolute;
	top: -80px;
	left: 50%;
	transform: translateX(-50%);
	font-family: "Dancing Script", cursive;
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--gold);
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	opacity: 0;
	pointer-events: none;
	white-space: nowrap;
	z-index: 10;
	transition: opacity 0.3s ease;
}

.thank-message.show {
	opacity: 1;
	animation: thankBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gary-image-container {
	display: inline-block;
	position: relative;
}

.gary-image {
	max-width: 500px;
	width: 100%;
	height: auto;
	cursor: pointer;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
	-webkit-user-drag: none;
	filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
	animation: float 4s ease-in-out infinite;
	display: block;
}

.gary-image:hover {
	transform: scale(1.08);
	filter: drop-shadow(0 25px 80px rgba(0, 0, 0, 0.2));
}

.gary-image:active {
	transform: scale(0.95);
}

.counter-display {
	margin-top: 50px;
	font-size: 1.75rem;
	color: var(--text-dark);
	font-weight: 500;
	letter-spacing: 0.5px;
}

.counter-label {
	margin-right: 12px;
	font-family: "Playfair Display", serif;
	font-style: italic;
	color: var(--text-light);
}

.counter-value {
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 700;
	font-size: 2.5rem;
	font-family: "Inter", sans-serif;
}

.section-title {
	font-family: "Dancing Script", cursive;
	font-size: 3.5rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-align: center;
	margin-bottom: 50px;
	letter-spacing: 1px;
}

.contract-section {
	width: 100%;
	margin-bottom: 120px;
}

.contract-wrapper {
	max-width: 750px;
	margin: 0 auto;
}

.contract-label {
	display: block;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 20px;
	font-family: "Playfair Display", serif;
}

.contract-container {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--bg-light);
	border-radius: 16px;
	padding: 6px;
	border: 2px solid var(--border);
	transition: all 0.3s ease;
}

.contract-container:focus-within {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
	background: var(--white);
}

.contract-input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 18px 24px;
	font-size: 1rem;
	color: var(--text-dark);
	font-family: "Courier New", monospace;
	outline: none;
	letter-spacing: 0.5px;
	word-break: break-all;
}

.copy-button {
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
	border: none;
	border-radius: 12px;
	padding: 16px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	height: 56px;
	box-shadow: var(--shadow-md);
}

.copy-button:hover {
	transform: scale(1.1) translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.copy-button:active {
	transform: scale(0.95);
}

.copy-button .icon {
	width: 24px;
	height: 24px;
}

.copy-feedback {
	text-align: center;
	margin-top: 20px;
	font-size: 1rem;
	color: var(--primary);
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.3s ease;
	height: 28px;
	font-family: "Playfair Display", serif;
	font-style: italic;
}

.copy-feedback.show {
	opacity: 1;
}

.socials-section {
	width: 100%;
	margin-bottom: 120px;
}

.socials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 30px;
	max-width: 900px;
	margin: 0 auto;
}

.social-card {
	background: transparent;
	border-radius: 20px;
	padding: 30px 20px;
	text-decoration: none;
	color: var(--text-dark);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	border: 2px solid var(--border);
}

.social-card:hover {
	transform: translateY(-8px);
	border-color: var(--primary);
	box-shadow: var(--shadow-md);
	background: var(--bg-light);
}

.social-card-icon-wrapper {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-light);
	border-radius: 16px;
	padding: 16px;
	transition: all 0.3s ease;
	border: 1px solid var(--border);
}

.social-card:hover .social-card-icon-wrapper {
	transform: scale(1.15);
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
	border-color: transparent;
}

.social-card:hover .social-card-icon {
	filter: brightness(0) invert(1);
}

.social-card-icon {
	width: 32px;
	height: 32px;
	transition: filter 0.3s ease;
	filter: brightness(0);
}

.social-card-text {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--text-dark);
	font-family: "Playfair Display", serif;
}

.gallery-section {
	width: 100%;
	margin-bottom: 100px;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.gallery-item {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	aspect-ratio: 1;
	background: var(--bg-light);
	border: 2px solid var(--border);
	transition: all 0.3s ease;
}

.gallery-item:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
	border-color: var(--primary);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

.image-viewer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	backdrop-filter: blur(10px);
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.image-viewer.active {
	display: flex;
	opacity: 1;
}

.viewer-close {
	position: absolute;
	top: 30px;
	right: 30px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.2);
	color: var(--white);
	font-size: 2.5rem;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-weight: 300;
}

.viewer-close:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.4);
	transform: rotate(90deg);
}


.viewer-content {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.viewer-content img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.site-footer {
	width: 100%;
	padding: 50px;
	text-align: center;
	color: var(--text-light);
	font-size: 1.2rem;
	background: var(--bg-light);
	font-family: "Dancing Script", cursive;
	font-size: 1.5rem;
}

#confetti-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1000;
}

.confetti {
	position: absolute;
	width: 12px;
	height: 12px;
	background: var(--gold);
	border-radius: 50%;
	animation: confettiFall 3s ease-out forwards;
	box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

@keyframes float {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-25px);
	}
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

@keyframes thankBounce {
	0% {
		transform: translateX(-50%) translateY(0) scale(0.3);
		opacity: 0;
	}
	50% {
		transform: translateX(-50%) translateY(-30px) scale(1.3);
		opacity: 1;
	}
	100% {
		transform: translateX(-50%) translateY(-60px) scale(1);
		opacity: 0;
	}
}

@keyframes confettiFall {
	0% {
		transform: translateY(0) rotate(0deg);
		opacity: 1;
	}
	100% {
		transform: translateY(100vh) rotate(720deg);
		opacity: 0;
	}
}

/* Tablet and below */
@media (max-width: 1024px) {
	.hero-title {
		font-size: 4.5rem;
	}

	.hero-subtitle {
		font-size: 1.5rem;
	}

	.gary-section {
		padding: 60px 30px;
	}

	.gary-image {
		max-width: 400px;
	}

	.section-title {
		font-size: 3rem;
	}

	.contract-wrapper {
		padding: 35px;
	}

	.socials-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 24px;
	}

	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 18px;
	}
}

/* Mobile landscape and below */
@media (max-width: 768px) {
	.main-content {
		padding: 40px 20px;
	}

	.hero-section {
		margin-bottom: 60px;
		padding: 40px 0;
	}

	.hero-title {
		font-size: 3.5rem;
		margin-bottom: 16px;
	}

	.hero-subtitle {
		font-size: 1.2rem;
	}

	.gary-section {
		margin-bottom: 80px;
		padding: 50px 20px;
		border-radius: 20px;
	}

	.gary-image {
		max-width: 280px;
	}

	.counter-display {
		font-size: 1.3rem;
		margin-top: 30px;
	}

	.counter-label {
		display: block;
		margin-bottom: 8px;
		margin-right: 0;
	}

	.counter-value {
		font-size: 1.8rem;
		display: block;
	}

	.contract-section {
		margin-bottom: 80px;
	}

	.contract-wrapper {
		padding: 25px 20px;
	}

	.contract-label {
		font-size: 1rem;
		margin-bottom: 16px;
	}

	.contract-container {
		flex-direction: column;
		gap: 10px;
		padding: 4px;
	}

	.contract-input {
		padding: 14px 18px;
		font-size: 0.9rem;
		width: 100%;
		text-align: center;
	}

	.copy-button {
		width: 100%;
		min-width: auto;
		padding: 14px;
	}

	.section-title {
		font-size: 2.5rem;
		margin-bottom: 40px;
	}

	.socials-section {
		margin-bottom: 80px;
	}

	.socials-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.social-card {
		padding: 25px 20px;
	}

	.gallery-section {
		margin-bottom: 80px;
	}

	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}

	.thank-message {
		font-size: 1.8rem;
		top: -50px;
	}

	.viewer-content {
		padding: 20px;
	}

	.viewer-close {
		top: 15px;
		right: 15px;
		width: 40px;
		height: 40px;
		font-size: 2rem;
	}

	.site-footer {
		padding: 30px 20px;
		font-size: 1.3rem;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.main-content {
		padding: 30px 15px;
	}

	.hero-section {
		margin-bottom: 50px;
		padding: 30px 0;
	}

	.hero-title {
		font-size: 2.5rem;
		line-height: 1.2;
	}

	.hero-subtitle {
		font-size: 1rem;
	}

	.hero-section::before {
		width: 150px;
		height: 150px;
	}

	.gary-section {
		margin-bottom: 60px;
		padding: 40px 15px;
		border-radius: 16px;
	}

	.gary-image {
		max-width: 240px;
	}

	.counter-display {
		font-size: 1.1rem;
		margin-top: 25px;
	}

	.counter-value {
		font-size: 1.5rem;
	}

	.contract-section {
		margin-bottom: 60px;
	}

	.contract-wrapper {
		padding: 20px 15px;
	}

	.contract-label {
		font-size: 0.95rem;
		margin-bottom: 12px;
	}

	.contract-input {
		padding: 12px 16px;
		font-size: 0.85rem;
	}

	.copy-button {
		padding: 12px;
		height: 48px;
	}

	.copy-button .icon {
		width: 20px;
		height: 20px;
	}

	.section-title {
		font-size: 2rem;
		margin-bottom: 30px;
	}

	.socials-section {
		margin-bottom: 60px;
	}

	.social-card {
		padding: 20px 15px;
		gap: 16px;
	}

	.social-card-icon-wrapper {
		width: 56px;
		height: 56px;
		padding: 14px;
	}

	.social-card-icon {
		width: 28px;
		height: 28px;
	}

	.social-card-text {
		font-size: 1rem;
	}

	.gallery-section {
		margin-bottom: 60px;
	}

	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 10px;
	}

	.thank-message {
		font-size: 1.5rem;
		top: -40px;
	}

	.viewer-content {
		padding: 15px;
	}

	.viewer-close {
		top: 10px;
		right: 10px;
		width: 36px;
		height: 36px;
		font-size: 1.8rem;
	}

	.site-footer {
		padding: 25px 15px;
		font-size: 1.2rem;
	}
}

/* Extra small mobile */
@media (max-width: 360px) {
	.hero-title {
		font-size: 2rem;
	}

	.gary-image {
		max-width: 200px;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}
