/* GLOBAL STYLES */
:root {
	--background-color: #121212;
	--text-color: #e0e0e0;
	--primary-color: #c0ff00;
	--secondary-color: #2a2a2a;
	--font-heading: 'Space Grotesk', sans-serif;
	--font-body: 'Manrope', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--background-color);
	color: var(--text-color);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

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

a:hover {
	opacity: 0.8;
}

ul {
	list-style: none;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	color: #ffffff;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* LOGO */
.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: #ffffff;
}

.logo:hover {
	opacity: 1;
}

.logo__text {
	color: #ffffff;
}

/* HEADER */
.header {
	background-color: rgba(18, 18, 18, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--secondary-color);
	padding: 20px 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1030;
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header__nav {
	display: none; /* Hidden on mobile */
}

.header__nav-list {
	display: flex;
	align-items: center;
	gap: 30px;
}

.header__nav-link {
	font-size: 1rem;
	color: var(--text-color);
	padding-bottom: 5px;
	position: relative;
}

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	transition: width 0.3s ease;
}

.header__nav-link:hover::after {
	width: 100%;
}

.header__nav-link--cta {
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 8px 20px;
	border-radius: 5px;
	font-weight: 700;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header__nav-link--cta:hover {
	opacity: 1;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(192, 255, 0, 0.3);
}
.header__nav-link--cta::after {
	display: none;
}

.header__burger-btn {
	position: fixed;
	top: 30px;
	right: 20px;
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
	display: block; /* Shown on mobile */
	z-index: 1050;
}

/* MAIN */
.main {
	padding-top: 81px; /* Header height + padding */
}

/* FOOTER */
.footer {
	background-color: #0a0a0a;
	border-top: 1px solid var(--secondary-color);
	padding: 60px 0 20px;
	font-size: 0.9rem;
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 40px;
	margin-bottom: 40px;
}

.footer__column .logo {
	margin-bottom: 15px;
}

.footer__tagline {
	color: #a0a0a0;
	max-width: 250px;
}

.footer__title {
	font-size: 1.2rem;
	margin-bottom: 20px;
	color: #ffffff;
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer__list--contacts li {
	display: flex;
	align-items: flex-start;
}

.footer__link {
	color: #a0a0a0;
}

.footer__link:hover {
	color: var(--primary-color);
	opacity: 1;
}

.footer__bottom {
	border-top: 1px solid var(--secondary-color);
	padding-top: 20px;
	text-align: center;
	font-size: 0.8rem;
	color: #a0a0a0;
}

/* MEDIA QUERIES (Mobile-first approach) */

/* Tablet */
@media (min-width: 768px) {
	.header__burger-btn {
		display: none !important;
	}

	.header__nav {
		display: block;
	}

	.header__nav--mobile {
		display: none !important;
	}

	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Desktop */
@media (min-width: 1024px) {
	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 60px;
	}
}

/* Mobile Nav Styles */
.header__nav--mobile {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: var(--background-color);
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
	z-index: 1005;
}

.header__nav--mobile.is-active {
	transform: translateX(0);
}

.header__nav--mobile .header__nav-list {
	flex-direction: column;
	gap: 35px;
	text-align: center;
}

.header__nav--mobile .header__nav-link {
	font-size: 2rem;
	font-family: var(--font-heading);
}

body.no-scroll {
	overflow: hidden;
}

/* SHARED COMPONENTS */
.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 12px 30px;
	border-radius: 5px;
	font-weight: 700;
	font-family: var(--font-heading);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 2px solid var(--primary-color);
}

.button:hover {
	opacity: 1;
	transform: translateY(-3px);
	box-shadow: 0 5px 20px rgba(192, 255, 0, 0.3);
}

.button--outline {
	background-color: transparent;
	color: var(--primary-color);
}

/* HERO SECTION */
.hero {
	min-height: 90vh;
	display: flex;
	align-items: center;
	padding: 60px 0;
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
}

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: 2.5rem;
	line-height: 1.2;
	margin-bottom: 20px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero__description {
	font-size: 1.1rem;
	color: #a0a0a0;
	margin-bottom: 30px;
	max-width: 550px;
	margin-left: auto;
	margin-right: auto;
}

.hero__animation {
	width: 100%;
	height: 300px; /* Height for mobile canvas */
	display: flex;
	justify-content: center;
	align-items: center;
}

#tech-canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* MEDIA QUERIES for Hero */

/* Tablet */
@media (min-width: 768px) {
	.hero__title {
		font-size: 3.5rem;
	}

	.hero__animation {
		height: 400px;
	}
}

/* Desktop */
@media (min-width: 1024px) {
	.hero {
		min-height: 100vh;
	}
	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 60px;
	}
	.hero__content {
		text-align: left;
	}
	.hero__title,
	.hero__description {
		margin-left: 0;
		margin-right: 0;
	}
	.hero__animation {
		height: 100%;
		min-height: 500px;
	}
}

/* SHARED SECTION STYLES */
.section {
	padding: 80px 0;
}

.section__header {
	text-align: center;
	margin-bottom: 60px;
}

.section__title {
	font-size: 2.2rem;
	margin-bottom: 15px;
}

.section__subtitle {
	font-size: 1.1rem;
	color: #a0a0a0;
	max-width: 600px;
	margin: 0 auto;
}

/* TECH REVIEWS SECTION */
.tech-reviews {
	background-color: #1a1a1a;
}

.tech-reviews__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

/* CARD COMPONENT */
.card {
	background-color: var(--secondary-color);
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #3a3a3a;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px rgba(192, 255, 0, 0.1);
}

.card__image-container {
	height: 200px;
	background-color: #333;
}

.card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__content {
	padding: 25px;
}

.card__tag {
	display: inline-block;
	background-color: rgba(192, 255, 0, 0.1);
	color: var(--primary-color);
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 700;
	margin-bottom: 15px;
}

.card__title {
	font-size: 1.4rem;
	margin-bottom: 10px;
}

.card__description {
	color: #a0a0a0;
	margin-bottom: 20px;
}

.card__link {
	font-weight: 700;
	color: var(--primary-color);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.card__link .card__link-icon {
	transition: transform 0.3s ease;
	width: 20px;
	height: 20px;
}

.card__link:hover .card__link-icon {
	transform: translateX(5px);
}

/* MEDIA QUERIES for Section and Cards */

@media (min-width: 768px) {
	.section__title {
		font-size: 2.8rem;
	}

	.tech-reviews__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.tech-reviews__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* AI PRACTICE SECTION */
.ai-practice__layout {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* TABS COMPONENT */
.tabs__nav {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.tabs__button {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 20px;
	font-size: 1.1rem;
	font-family: var(--font-heading);
	color: var(--text-color);
	background-color: var(--secondary-color);
	border: 1px solid #3a3a3a;
	border-radius: 6px;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.tabs__button:hover {
	background-color: #3f3f3f;
}

.tabs__button.is-active {
	background-color: var(--primary-color);
	color: var(--background-color);
	font-weight: 700;
}

.tabs__icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.tabs__content {
	position: relative;
	width: 100%;
}

.tabs__panel {
	display: none; /* Hidden by default */
	flex-direction: column;
	gap: 30px;
	animation: fadeIn 0.5s ease;
}

.tabs__panel.is-active {
	display: flex; /* Shown when active */
}

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

.tabs__panel-image {
	width: 100%;
	height: 250px;
	background-color: #333;
	border-radius: 8px;
	overflow: hidden;
}

.tabs__panel-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tabs__panel-title {
	font-size: 1.8rem;
	margin-bottom: 15px;
}

.tabs__panel-text p {
	color: #a0a0a0;
	font-size: 1rem;
}

/* MEDIA QUERIES for AI Practice */

@media (min-width: 768px) {
	.tabs__nav {
		flex-direction: row;
	}
}

@media (min-width: 1024px) {
	.ai-practice__layout {
		flex-direction: row;
		gap: 60px;
	}
	.tabs__nav {
		flex-direction: column;
		width: 300px;
		flex-shrink: 0;
	}
	.tabs__panel {
		flex-direction: row;
		align-items: center;
	}
	.tabs__panel-image {
		width: 300px;
		height: 300px;
		flex-shrink: 0;
	}
}

/* FAQ SECTION */
.faq__list {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.faq__item {
	background-color: var(--secondary-color);
	border-radius: 6px;
	border: 1px solid #3a3a3a;
}

.faq__question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	background: none;
	border: none;
	color: #ffffff;
	font-family: var(--font-heading);
	font-size: 1.2rem;
	text-align: left;
	cursor: pointer;
}

.faq__icon {
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 20px;
}

.faq__question.is-active .faq__icon {
	transform: rotate(180deg);
}

.faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__answer p {
	padding: 0 20px 20px 20px;
	color: #a0a0a0;
	line-height: 1.7;
}

/* CONTACT SECTION */
.contact {
	background-color: #0a0a0a;
}

.contact__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 50px;
	align-items: center;
}

.contact__info .section__header {
	text-align: left;
	margin-bottom: 0;
}

.contact__subtitle {
	margin: 0;
	max-width: none;
}

/* FORM STYLES */
.form-group {
	margin-bottom: 20px;
}

.form-group__label {
	display: block;
	font-size: 0.9rem;
	margin-bottom: 8px;
	color: #a0a0a0;
}

.form-group__input {
	width: 100%;
	padding: 12px 15px;
	background-color: var(--secondary-color);
	border: 1px solid #3a3a3a;
	border-radius: 5px;
	color: var(--text-color);
	font-size: 1rem;
	font-family: var(--font-body);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group__input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(192, 255, 0, 0.2);
}

.form-group__input::placeholder {
	color: #666;
}

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.9rem;
	color: #a0a0a0;
}

.form-group--checkbox input[type='checkbox'] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	background-color: var(--secondary-color);
	border: 1px solid #3a3a3a;
	border-radius: 3px;
	cursor: pointer;
	position: relative;
	top: 2px;
	flex-shrink: 0;
}

.form-group--checkbox input[type='checkbox']:checked {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.form-group--checkbox input[type='checkbox']:checked::after {
	content: '✔';
	color: var(--background-color);
	position: absolute;
	top: -2px;
	left: 2px;
	font-size: 14px;
}

.contact__form-button {
	width: 100%;
	padding: 15px;
	font-size: 1.1rem;
	margin-top: 10px;
}

.form-success-message {
	display: none; /* Hidden by default */
	align-items: center;
	gap: 15px;
	padding: 20px;
	background-color: rgba(192, 255, 0, 0.1);
	border: 1px solid var(--primary-color);
	border-radius: 6px;
	margin-top: 20px;
}

.form-success-message.is-visible {
	display: flex;
}

.form-success-message__icon {
	color: var(--primary-color);
	width: 30px;
	height: 30px;
	flex-shrink: 0;
}

/* MEDIA QUERIES for Contact */
@media (min-width: 1024px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
	}
}

/* COOKIE POPUP */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background-color: var(--secondary-color);
	border: 1px solid #3a3a3a;
	border-radius: 8px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 15px;
	z-index: 2000;
	transform: translateY(200%);
	transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.cookie-popup.is-visible {
	transform: translateY(0);
}

.cookie-popup__text {
	color: #a0a0a0;
	font-size: 0.9rem;
	line-height: 1.5;
}

.cookie-popup__text a {
	color: var(--primary-color);
	text-decoration: underline;
}

.cookie-popup__button {
	background-color: var(--primary-color);
	color: var(--background-color);
	border: none;
	padding: 8px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.9rem;
	transition: opacity 0.3s;
}

.cookie-popup__button:hover {
	opacity: 0.8;
}

/* MEDIA QUERIES for Cookie Popup */
@media (min-width: 768px) {
	.cookie-popup {
		flex-direction: row;
		align-items: center;
		max-width: 600px;
		left: 50%;
		transform: translate(-50%, 200%);
	}

	.cookie-popup.is-visible {
		transform: translate(-50%, 0);
	}
}

/* LEGAL & STATIC PAGES STYLES (.pages) */
.pages {
	padding: 120px 0;
}

.pages .container {
	max-width: 800px;
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
	line-height: 1.2;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 40px;
	margin-bottom: 20px;
}

.pages p {
	margin-bottom: 20px;
	color: #a0a0a0;
	line-height: 1.7;
}

.pages a {
	color: var(--primary-color);
	text-decoration: underline;
}

.pages a:hover {
	text-decoration: none;
}

.pages ul {
	list-style: disc;
	padding-left: 25px;
	margin-bottom: 20px;
}

.pages li {
	margin-bottom: 10px;
	color: #a0a0a0;
}

.pages strong {
	color: var(--text-color);
	font-weight: 700;
}
