:root {
	--primary-color: #1a1a1a;
	--secondary-color: #2ecc71;
	--accent-color: #27ae60;
	--text-color: #ffffff;
	--background-light: rgba(255, 255, 255, 0.1);
	--section-padding: 8rem 0;
	--border-radius: 12px;
	--transition: all 0.3s ease;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	max-width: 100%;
}

html, body {
	overflow-x: hidden;
}

body {
	font-family: 'Inter', sans-serif;
	background-color: var(--primary-color);
	color: var(--text-color);
	line-height: 1.6;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.navbar {
	background: rgba(26, 26, 26, 0.95);
	padding: 1.5rem 0;
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(10px);
	transition: transform 0.3s ease-in-out;
}

.navbar.hidden {
	transform: translateY(-100%);
}

.navbar .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo a {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--secondary-color);
	text-decoration: none;
}

.nav-links {
	display: flex;
	gap: 2.5rem;
	list-style: none;
}

.nav-links a {
	color: var(--text-color);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
	position: relative;
}

.nav-links a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--secondary-color);
	transition: var(--transition);
}

.nav-links a:hover::after {
	width: 100%;
}

.menu-toggle {
	display: none;
	color: var(--text-color);
	font-size: 1.5rem;
	cursor: pointer;
}

.hero {
	padding: 12rem 0 6rem;
	position: relative;
}

.hero .container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.hero-content {
	position: relative;
	z-index: 1;
}

.hero-title {
	font-size: 3.5rem;
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.hero-subtitle {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	color: rgba(255, 255, 255, 0.9);
}

.android-icon {
	color: var(--secondary-color);
  vertical-align: middle;
  animation: verticalfloating 2s infinite;
  margin: auto 10px;
}

@keyframes verticalfloating {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.cta-container {
	display: flex;
	gap: 1.5rem;
	margin-top: 2rem;
}

.btn {
	padding: 1rem 2rem;
	border-radius: var(--border-radius);
	font-weight: 600;
	transition: var(--transition);
	text-decoration: none;
	display: inline-block;
}

.btn.primary {
	background: var(--secondary-color);
	color: var(--primary-color);
}

.btn.secondary {
	background: transparent;
	border: 2px solid var(--secondary-color);
	color: var(--secondary-color);
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.hero-image {
	position: relative;
	width: 300px;
	height: 300px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0,0,0,0.3);
	background: linear-gradient(45deg, var(--secondary-color), #1a1a1a);
	transform: rotate(3deg);
}

.hero-image::before {
	content: '';
	position: absolute;
	inset: -2px;
	background: linear-gradient(45deg, 
			var(--secondary-color) 0%, 
			rgba(46, 204, 113, 0.3) 30%,
			transparent 100%);
	z-index: 1;
	mix-blend-mode: soft-light;
}

.hero-image img {
	margin-top: 2.5%;
	margin-left: 2.5%;
	width: 95%;
	height: 95%;
	object-fit: cover;
	border-radius: 18px;
	position: relative;
	z-index: 2;
	transform: rotate(-3deg);
}

.projects {
	padding: var(--section-padding);
}

.section-title {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 4rem;
	position: relative;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -1rem;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: var(--secondary-color);
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 3rem;
}

.project-card {
	display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
	background: var(--background-light);
	border-radius: var(--border-radius);
	overflow: hidden;
	transition: var(--transition);
	position: relative;
}

.project-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* .project-card::before {
	content: '';
	position: absolute;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--secondary-color);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.4s ease;
}

.project-card::before {
	bottom: 0;
}

.project-card:hover::before {
	transform: scaleX(1);
}  */

.project-image {
	width: 180px;
  height: 180px;
  margin: 0 auto;
	border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.project-image img {
	width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-content {
	width: 100%;
	padding: 1rem 0;
}

.tech-stack {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}

.tech-stack span {
	/* background: rgba(46, 204, 113, 0.1); */
	/* color: var(--secondary-color); */
	background: var(--background-light);
	padding: 0.3rem 1rem;
	border-radius: 20px;
	font-size: 0.9rem;
}

.project-link {
	color: var(--secondary-color);
	text-decoration: none;
	font-weight: 600;
	display: inline-block;
	margin-top: 1rem;
	transition: transform 0.3s ease;
}

.project-link:hover {
	transform: scale(1.1);
}

.articles {
	padding: var(--section-padding);
}

.article-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 3rem;
}

.article-card {
	background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
	border-radius: var(--border-radius);
	padding: 2rem;
	transition: var(--transition);
	position: relative;
	overflow: hidden;
}

.article-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--secondary-color);
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.article-card:hover::after {
	transform: scaleX(1);
}

.article-meta {
	display: flex;
	justify-content: space-between;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.category {
	color: var(--secondary-color);
	font-weight: 600;
	text-transform: uppercase;
}

.date {
	color: rgba(255,255,255,0.7);
}

.read-more {
	display: inline-block;
	color: var(--secondary-color);
	text-decoration: none;
	font-weight: 600;
	margin-top: 1.5rem;
	position: relative;
}

.read-more::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--secondary-color);
	transition: var(--transition);
}

.read-more:hover::after {
	width: 100%;
}

.contact {
	padding: var(--section-padding);
	background: rgba(0, 0, 0, 0.2);
}

.contact-form {
	max-width: 800px;
	margin: 0 auto;
}

.form-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

input,
textarea {
	width: 100%;
	padding: 1rem;
	background: var(--background-light);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--border-radius);
	color: var(--text-color);
	font-family: inherit;
	transition: var(--transition);
	resize: none;
}

input:focus,
textarea:focus {
	outline: none;
	border-color: var(--secondary-color);
	box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.form-status {
	display: none;
	padding: 1rem;
	margin: 1rem 0;
	border-radius: var(--border-radius);
	text-align: center;
}

.form-status.success {
	display: block;
	background: rgba(46, 204, 113, 0.2);
	border: 1px solid var(--secondary-color);
	color: var(--secondary-color);
}

.form-status.error {
	display: block;
	background: rgba(255, 0, 0, 0.1);
	border: 1px solid #ff4444;
	color: #ff4444;
}

.footer {
	padding: 4rem 0 2rem;
	background: rgba(0, 0, 0, 0.3);
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 3rem;
	margin-bottom: 3rem;
}

.footer h4 {
	margin-bottom: 1.5rem;
	color: var(--secondary-color);
}

.footer-links ul {
	list-style: none;
}

.footer-links li {
	margin-bottom: 0.8rem;
}

.footer-links a {
	color: var(--text-color);
	text-decoration: none;
	transition: var(--transition);
}

.footer-links a:hover {
	color: var(--secondary-color);
}

.social-icons {
	display: flex;
	gap: 1.5rem;
	font-size: 1.5rem;
}

.social-icons a {
	color: var(--text-color);
	transition: var(--transition);
}

.social-icons a:hover {
	color: var(--secondary-color);
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
	.hero .container {
			grid-template-columns: 1fr;
			gap: 3rem;
			text-align: center;
	}

	.cta-container {
			justify-content: center;
	}

	.hero-image {
			width: 300px;
			height: 300px;
			margin: 0 auto;
	}

	.project-grid {
			grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
}

@media (max-width: 768px) {
	.menu-toggle {
			display: block;
	}

	.nav-links {
			position: fixed;
			top: 70px;
			right: -100%;
			background: var(--primary-color);
			flex-direction: column;
			width: 100%;
			padding: 2rem;
			transition: var(--transition);
	}

	.nav-links.active {
			right: 0;
	}

	.hero-title {
			font-size: 2.5rem;
	}

	.project-grid {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}

	.section-title {
			font-size: 2rem;
	}

	.form-group {
			grid-template-columns: 1fr;
	}

	.hero-image {
			width: 200px;
			height: 200px;
	}
}

@media (max-width: 480px) {
	.container {
			padding: 0 1rem;
	}

	.hero-title {
			font-size: 2rem;
	}

	.btn {
			width: 100%;
			text-align: center;
	}

	.cta-container {
			flex-direction: column;
	}

	.hero-image {
			width: 250px;
			height: 250px;
	}

	.project-image {
		width: 140px;
		height: 140px;
	}
}

@media (max-width: 360px) {
	.container {
			padding: 0 0.75rem;
	}

	.hero-title {
			font-size: 1.75rem;
	}

	.section-title {
			font-size: 1.8rem;
	}
}

/* Animation Fixes */
.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

.section-subtitle {
	text-align: center;
	margin-bottom: 2rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}