/* ==========================
   GOOGLE FONT
========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================
   VARIABLES
========================== */
:root {
	--primary: #ff8c42;
	--secondary: #ffb347;
	--accent: #ff5f1f;
	--bg: #fff8ef;
	--card: #ffffff;
	--text: #222222;
	--text-light: #666666;
	--shadow: 0 10px 30px rgba(0, 0, 0, .08);
	--radius: 20px;
}

/* Dark Mode */
.dark-mode {
	--bg: #121212;
	--card: #1f1f1f;
	--text: #ffffff;
	--text-light: #bdbdbd;
}

/* ==========================
   RESET
========================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--bg);
	color: var(--text);
	overflow-x: hidden;
	min-height: 100vh;
	position: relative;
}

/* ==========================
   GLOW EFFECTS
========================== */
.glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(120px);
	z-index: -1;
}

.glow1 {
	width: 350px;
	height: 350px;
	background: rgba(255, 140, 66, .35);
	top: -100px;
	left: -120px;
}

.glow2 {
	width: 300px;
	height: 300px;
	background: rgba(255, 179, 71, .25);
	right: -80px;
	top: 120px;
}

.glow3 {
	width: 350px;
	height: 350px;
	background: rgba(255, 95, 31, .18);
	bottom: -100px;
	left: 40%;
}

/* ==========================
   NAVBAR
========================== */
.navbar {
	width: 100%;
	padding: 14px 8%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	backdrop-filter: blur(20px);
	z-index: 100;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.2rem;
	font-weight: 700;
}

.logo i {
	color: var(--primary);
	font-size: 1.5rem;
}

.nav-links {
	list-style: none;
	display: flex;
	gap: 35px;
}

.nav-links a {
	text-decoration: none;
	color: var(--text);
	font-weight: 500;
	transition: .3s;
}

.nav-links a:hover {
	color: var(--primary);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 15px;
}

.theme-btn, .icon-btn {
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: var(--card);
	cursor: pointer;
	box-shadow: var(--shadow);
	font-size: 1rem;
	color: var(--text);
	transition: .3s;
}

.theme-btn:hover {
	background: var(--primary);
	color: white;
}

.cart-btn {
	border: none;
	background: linear-gradient(135deg, #ffb347, #ff8c42, #ff5f1f);
	color: white;
	padding: 9px 18px;
	border-radius: 50px;
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-weight: 600;
	box-shadow: 0 15px 30px rgba(255, 140, 66, .3);
	border: none;
	font-size: 0.9rem;
}

.cart-count {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: white;
	color: black;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .8rem;
}

/* ==========================
   HERO SECTION
========================== */
.hero {
	position: relative;
	height: 90vh;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	text-align: center;
}

.hero-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .45);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 900px;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: auto;
	color: #FFF8E7;
}

.hero h1 {
	color: #FFF8E7;
	font-size: 4rem;
	text-align: center;
	margin-bottom: 20px;
	text-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}

.hero p {
	color: #F8F1E5;
	max-width: 650px;
	margin: 20px auto 35px;
	text-align: center;
	font-size: 1.2rem;
}

.hero-stats {
	display: flex;
	justify-content: center;
	gap: 70px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.stat {
	text-align: center;
}

.stat h2 {
	color: white;
	font-size: 2rem;
	margin-bottom: 6px;
}

.stat p {
	color: rgba(255, 255, 255, .9);
	font-size: .95rem;
}

/* ==========================
   SCROLL INDICATOR
========================== */
.scroll-indicator {
	position: absolute;
	bottom: 35px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
}

.scroll-indicator a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: #FFF8E7;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	gap: 10px;
	transition: .3s;
}

.scroll-indicator a:hover {
	color: #ffb347;
}

.scroll-indicator i {
	font-size: 1.4rem;
	animation: bounceArrow 1.6s infinite;
}

@keyframes bounceArrow {
	0%   { transform: translateY(0); }
	50%  { transform: translateY(10px); }
	100% { transform: translateY(0); }
}

/* ==========================
   STREAK SECTION
========================== */
.streak-section {
	padding: 0 8%;
	margin-top: 40px;
	margin-bottom: 10px;
	position: relative;
	z-index: 10;
	scroll-margin-top: 100px;
}

.streak-card {
	background: linear-gradient(135deg,
		rgba(255, 140, 66, 0.12) 0%,
		rgba(255, 179, 71, 0.08) 50%,
		rgba(255, 95, 31, 0.12) 100%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 140, 66, 0.25);
	border-radius: 24px;
	padding: 40px;
	box-shadow:
		0 20px 60px rgba(255, 140, 66, 0.15),
		0 0 40px rgba(255, 140, 66, 0.05),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
}

.streak-card::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle, rgba(255, 140, 66, 0.08) 0%, transparent 70%);
	pointer-events: none;
}

.streak-header {
	text-align: center;
	margin-bottom: 30px;
}

.streak-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 8px;
}

.streak-fire {
	font-size: 2rem;
	animation: fireGlow 1.5s ease-in-out infinite alternate;
}

@keyframes fireGlow {
	0%   { filter: brightness(1); transform: scale(1); }
	100% { filter: brightness(1.3); transform: scale(1.15); }
}

.streak-title h2 {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--text);
	margin: 0;
}

.streak-subtitle {
	color: var(--text-light);
	font-size: 0.95rem;
	margin: 0;
}

/* Stats Row */
.streak-stats {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 30px;
	margin-bottom: 25px;
	flex-wrap: wrap;
}

.streak-stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.streak-stat-value {
	font-size: 2rem;
	font-weight: 800;
	background: linear-gradient(135deg, #ff8c42, #ff5f1f);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.streak-stat-label {
	font-size: 0.8rem;
	color: var(--text-light);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.streak-stat-divider {
	width: 1px;
	height: 40px;
	background: rgba(255, 140, 66, 0.3);
}

/* Dates */
.streak-dates {
	display: flex;
	justify-content: center;
	gap: 35px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.streak-date-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--text-light);
}

.streak-date-item i {
	color: var(--primary);
	font-size: 0.9rem;
}

.streak-date-item strong {
	color: var(--text);
}

/* Progress */
.streak-progress {
	margin-bottom: 10px;
}

.streak-progress-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-light);
	text-transform: uppercase;
	letter-spacing: 1px;
	text-align: center;
	margin-bottom: 20px;
}

.streak-circles {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	flex-wrap: wrap;
	row-gap: 20px;
}

.streak-circle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.circle-day {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--text-light);
	white-space: nowrap;
}

.circle-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 700;
	background: rgba(200, 200, 200, 0.2);
	border: 2.5px solid rgba(200, 200, 200, 0.4);
	color: var(--text-light);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.streak-circle.completed .circle-icon {
	background: linear-gradient(135deg, #22c55e, #16a34a);
	border-color: #22c55e;
	color: white;
	box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
	animation: circlePopIn 0.5s ease-out;
}

.streak-circle.completed .circle-day {
	color: #22c55e;
}

@keyframes circlePopIn {
	0%   { transform: scale(0.5); opacity: 0; }
	70%  { transform: scale(1.15); }
	100% { transform: scale(1); opacity: 1; }
}

.streak-connector {
	width: 30px;
	height: 3px;
	background: rgba(200, 200, 200, 0.3);
	border-radius: 2px;
	margin: 20px 4px 0;
	transition: all 0.4s ease;
}

.streak-connector.active {
	background: linear-gradient(90deg, #22c55e, #16a34a);
	box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

/* Reward Circle */
.reward-circle .circle-icon {
	background: rgba(255, 140, 66, 0.15);
	border-color: rgba(255, 140, 66, 0.4);
	color: var(--primary);
}

.reward-circle.unlocked .circle-icon {
	background: linear-gradient(135deg, #ff8c42, #ff5f1f);
	border-color: #ff8c42;
	color: white;
	animation: rewardGlow 1.5s ease-in-out infinite alternate;
}

.reward-circle.unlocked .circle-day {
	color: #ff8c42;
	font-weight: 700;
}

@keyframes rewardGlow {
	0% {
		box-shadow: 0 0 10px rgba(255, 140, 66, 0.4), 0 0 20px rgba(255, 140, 66, 0.2);
		transform: scale(1);
	}
	100% {
		box-shadow: 0 0 20px rgba(255, 140, 66, 0.6), 0 0 40px rgba(255, 140, 66, 0.3), 0 0 60px rgba(255, 140, 66, 0.1);
		transform: scale(1.1);
	}
}

.streak-preview-container {
	text-align: center;
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 140, 66, 0.15);
}

.preview-rewards-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 24px;
	background: transparent;
	color: var(--primary);
	border: 2px solid var(--primary);
	text-decoration: none;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.88rem;
	transition: all 0.3s ease;
	cursor: pointer;
}

.preview-rewards-btn:hover {
	background: linear-gradient(135deg, #ffb347, #ff8c42);
	color: white;
	box-shadow: 0 8px 20px rgba(255, 140, 66, 0.25);
	transform: translateY(-2px);
}

/* ==========================
   RESTAURANTS SECTION
========================== */
.restaurants {
	padding: 70px 8%;
	scroll-margin-top: 120px;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
}

.section-header h2 {
	font-size: 1.8rem;
	font-weight: 700;
}

.restaurant-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 35px;
}

.restaurant-card {
	background: var(--card);
	border-radius: 25px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
	transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
	            box-shadow 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
	            border-color 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
	perspective: 1000px;
	transform-style: preserve-3d;
	will-change: transform, box-shadow;
	border: 1px solid rgba(0, 0, 0, 0.03);
	text-decoration: none;
	color: inherit;
	display: block;
}

.restaurant-card > a,
.restaurant-card .restaurant-image,
.restaurant-card .restaurant-info {
	transform-style: preserve-3d;
}

.restaurant-card .restaurant-info h3,
.restaurant-card .restaurant-meta,
.restaurant-card .restaurant-info p {
	transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
	transform: translateZ(0);
}

.restaurant-card:hover {
	transform: translateY(-14px) scale(1.03) rotateX(4deg) rotateY(-2deg);
	box-shadow: 0 20px 45px rgba(255, 140, 66, 0.16),
	            0 0 25px rgba(255, 140, 66, 0.08),
	            0 1px 3px rgba(0, 0, 0, 0.02);
	border-color: rgba(255, 140, 66, 0.35);
}

.restaurant-card:hover .restaurant-image img {
	transform: scale(1.08) translateZ(60px);
}

.restaurant-card:hover .restaurant-info h3 {
	transform: translateZ(45px);
}

.restaurant-card:hover .restaurant-meta {
	transform: translateZ(70px);
}

.restaurant-card:hover .restaurant-info p {
	transform: translateZ(35px);
}

.restaurant-image {
	position: relative;
}

.restaurant-image img {
	width: 100%;
	height: 230px;
	object-fit: cover;
	transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.offer-tag {
	position: absolute;
	top: 15px;
	left: 15px;
	background: linear-gradient(135deg, #ffb347, #ff8c42);
	color: white;
	padding: 8px 15px;
	border-radius: 50px;
	font-size: .8rem;
	font-weight: 600;
}

.restaurant-info {
	padding: 20px;
}

.restaurant-info h3 {
	margin-bottom: 10px;
	color: #222;
	font-size: 1.1rem;
	font-weight: 700;
}

.restaurant-meta {
	display: flex;
	gap: 20px;
	margin-bottom: 10px;
	align-items: center;
}

.restaurant-meta span {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--primary);
}

.restaurant-meta p {
	font-size: 0.85rem;
	color: var(--text-light);
	margin: 0;
}

.restaurant-info p {
	color: var(--text-light);
	font-size: 0.85rem;
	margin-top: 4px;
}

/* ==========================
   FOOTER
========================== */
footer {
	text-align: center;
	padding: 50px 20px;
	margin-top: 60px;
	background: var(--card);
}

footer h3 {
	color: var(--primary);
	margin-bottom: 10px;
	font-size: 1.4rem;
}

footer p {
	color: var(--text-light);
}

/* ==========================
   ANIMATIONS
========================== */
@keyframes float {
	0%   { transform: translateY(0px); }
	50%  { transform: translateY(-20px); }
	100% { transform: translateY(0px); }
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 992px) {
	.hero {
		flex-direction: column;
		text-align: center;
		padding-top: 50px;
	}
	.hero h1 {
		font-size: 3rem;
	}
	.hero-stats {
		justify-content: center;
	}
}

@media (max-width: 768px) {
	.navbar {
		flex-direction: column;
		gap: 20px;
		padding: 14px 5%;
	}
	.nav-links {
		flex-wrap: wrap;
		justify-content: center;
		gap: 20px;
	}
	.hero h1 {
		font-size: 2.5rem;
	}
	.restaurant-card:hover {
		transform: translateY(-10px) scale(1.03) !important;
	}
	.restaurant-card .restaurant-info h3,
	.restaurant-card .restaurant-meta,
	.restaurant-card .restaurant-info p,
	.restaurant-card .restaurant-image img {
		transform: none !important;
	}
	.restaurant-card:hover .restaurant-image img {
		transform: scale(1.08) !important;
	}
	.streak-section {
		padding: 0 4%;
		margin-top: 30px;
	}
	.streak-card {
		padding: 25px 18px;
		border-radius: 18px;
	}
	.streak-title h2 {
		font-size: 1.3rem;
	}
	.streak-stats {
		gap: 15px;
	}
	.streak-stat-value {
		font-size: 1.5rem;
	}
	.streak-stat-divider {
		height: 30px;
	}
	.streak-dates {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}
	.circle-icon {
		width: 40px;
		height: 40px;
		font-size: 0.85rem;
	}
	.streak-connector {
		width: 18px;
	}
	.circle-day {
		font-size: 0.6rem;
	}
}

@media (max-width: 480px) {
	.hero h1 {
		font-size: 2rem;
	}
	.hero-stats {
		gap: 30px;
	}
	.streak-card {
		padding: 20px 14px;
	}
	.streak-stats {
		gap: 12px;
	}
	.streak-stat-value {
		font-size: 1.3rem;
	}
	.circle-icon {
		width: 34px;
		height: 34px;
		font-size: 0.75rem;
	}
	.streak-connector {
		width: 12px;
		margin: 16px 2px 0;
	}
}
