:root {
	--primary: #2563eb;
	--secondary: #1e40af;
	--dark: #1f2937;
	--light: #f3f4f6;
	--text: #374151;
	--gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', system-ui, sans-serif;
	line-height: 1.6;
	color: var(--text);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* Hero Section Background */
.hero {
	position: relative;
	min-height: 100vh;
	background: linear-gradient(rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.9)), url('images/banner.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	overflow: hidden;
}

.hero-pattern {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.1;
	background-image: 
		radial-gradient(rgba(255,255,255,0.1) 2px, transparent 2px),
		radial-gradient(rgba(255,255,255,0.1) 2px, transparent 2px);
	background-size: 30px 50px;
	background-position: 0 0, 25px 25px;
	animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
	0% { background-position: 0 0, 25px 25px; }
	100% { background-position: 50px 50px, 75px 75px; }
}

.hero-content {
	position: relative;
	z-index: 2;
	color: white;
	text-align: center;
	padding: 2rem;
	backdrop-filter: blur(5px);
	border-radius: 20px;
	margin-top: 4rem;
}

.profile-img {
	width: 180px;
	height: 180px;
	margin: 0 auto 2rem;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid white;
	box-shadow: 0 0 25px rgba(0,0,0,0.2);
	transition: transform 0.3s ease;
}

.profile-img:hover {
	transform: scale(1.05);
}

.profile-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero h1 {
	font-size: 4rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero h2 {
	font-size: 2.5rem;
	color: rgba(255,255,255,0.9);
	margin-bottom: 2rem;
}

.cta-btn {
	background: white;
	color: var(--primary);
	padding: 1rem 3rem;
	border-radius: 30px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s;
}

.cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.3);
	background: var(--light);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}

.cta-btn {
    min-width: 160px;
    text-align: center;
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-btn.secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Navigation Enhancement */
nav {
	background: rgba(255,255,255,0.95);
	backdrop-filter: blur(10px);
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 100;
}

nav .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 70px;
}

nav h1 {
	color: var(--primary);
	font-size: 1.8rem;
}

nav ul {
	display: flex;
	gap: 2rem;
	list-style: none;
}

nav a {
	position: relative;
	padding: 0.5rem 0;
	text-decoration: none;
	color: var(--text);
	font-weight: 500;
	transition: color 0.3s;
}

nav a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary);
	transition: width 0.3s;
}

nav a:hover::after {
	width: 100%;
}

/* Sections */
section {
	padding: 5rem 0;
}

section h2 {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
	color: var(--dark);
}

/* Project Cards Enhancement */
.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.project-card {
	background: white;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-img {
	width: 100%;
	height: 250px;
	overflow: hidden;
}

.project-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.project-card:hover .project-img img {
	transform: scale(1.1);
}

.project-card h3 {
	font-size: 1.5rem;
	margin: 1.5rem 0 1rem;
	color: var(--primary);
	padding: 0 2rem;
}

.project-card p {
	padding: 0 2rem;
}

.project-tech {
	display: flex;
	gap: 0.5rem;
	margin: 1rem 2rem;
	flex-wrap: wrap;
}

.project-tech span {
	background: var(--gradient);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
}

/* Skills Section Enhancement */
.skill-categories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.skill-category {
	background: white;
	border-radius: 15px;
	padding: 2rem;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	border: 1px solid rgba(0,0,0,0.1);
}

.skill-category h3 {
	color: var(--primary);
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--light);
}

.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 1rem;
}

.skills-grid span {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	background: var(--gradient);
	color: white;
	padding: 0.8rem 1.2rem;
	border-radius: 25px;
	font-weight: 500;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
}

.skills-grid span i {
	font-size: 1.2rem;
	transition: transform 0.3s ease;
}

.skills-grid span:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.skills-grid span:hover i {
	transform: scale(1.2);
}

/* Experience Section */
.timeline {
	max-width: 800px;
	margin: 0 auto;
}

.timeline-item {
	background: white;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	margin-bottom: 2rem;
}

.timeline-item h3 {
	color: var(--primary);
	margin-bottom: 0.5rem;
}

.timeline-item .company {
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.timeline-item .date {
	color: #666;
	margin-bottom: 1rem;
}

.timeline-item ul {
	padding-left: 1.5rem;
}

/* Contact Section Enhancement */
.contact {
	background: var(--gradient);
	color: white;
}

.contact h2 {
	color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icons a {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	transition: all 0.3s;
}

.social-icons a i {
	transition: transform 0.3s ease;
}

.social-icons a:hover i {
	animation: bounce 0.5s ease infinite;
}

@keyframes bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}

/* Fiverr Icon Styling */
.social-icons a .fa-dollar-sign {
	color: #fff;
	transition: all 0.3s ease;
}

.social-icons a:hover .fa-dollar-sign {
	color: #1dbf73;
	transform: scale(1.2);
}

.contact-details a .fa-dollar-sign {
	color: #fff;
	transition: all 0.3s ease;
}

.contact-details a:hover .fa-dollar-sign {
	color: #1dbf73;
}


.social-icons a:hover {
	background: rgba(255,255,255,0.2);
	transform: translateY(-5px);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info {
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
}

.contact-info a {
	background: rgba(255,255,255,0.1);
	padding: 1rem 2rem;
	border-radius: 30px;
	color: white;
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255,255,255,0.2);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s;
}

.contact-info a:hover {
	background: rgba(255,255,255,0.2);
	color: white;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.form-group {
	margin-bottom: 1.5rem;
	position: relative;
	overflow: hidden;
}

.form-group::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: white;
	transition: all 0.3s ease;
}

.form-group.focused::after {
	width: 100%;
	left: 0;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 1rem;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 8px;
	color: white;
	font-size: 1rem;
	transition: all 0.3s ease;
}

.form-group.focused input,
.form-group.focused textarea {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}

.submit-btn {
	width: 100%;
	padding: 1rem;
	background: white;
	color: var(--primary);
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	position: relative;
	overflow: hidden;
}

.submit-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: rgba(255,255,255,0.2);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::before {
	width: 300px;
	height: 300px;
}

.submit-btn:hover {
    background: var(--light);
    transform: translateY(-2px);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 101;
}

.mobile-menu-btn span {
	display: block;
	width: 25px;
	height: 3px;
	background: var(--primary);
	margin: 5px 0;
	transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* Animation Classes */
.animate-hidden {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in {
	opacity: 1;
	transform: translateY(0);
}

/* Active Link Style */
nav a.active {
	color: var(--primary);
}

nav a.active::after {
	width: 100%;
}

/* Base responsive container */
.container {
	max-width: 1400px;
	width: 90%;
	margin: 0 auto;
	padding: 0 1rem;
}

/* Responsive Typography */
@media (max-width: 1200px) {
	html {
		font-size: 95%;
	}
}

@media (max-width: 992px) {
	html {
		font-size: 90%;
	}

	.skill-categories {
		grid-template-columns: repeat(2, 1fr);
	}

	.project-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.mobile-menu-btn {
		display: block;
	}

	.nav-menu {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		height: 100vh;
		background: white;
		padding: 80px 2rem 2rem;
		transition: right 0.3s ease;
		box-shadow: -5px 0 15px rgba(0,0,0,0.1);
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}

	.nav-menu.active {
		right: 0;
	}

	nav a {
		font-size: 1.2rem;
	}

	.nav-menu li {
		width: 100%;
		text-align: center;
	}

	.hero h1 {
		font-size: 2.5rem;
	}
	
	.hero h2 {
		font-size: 1.8rem;
	}

	.hero-buttons {
		flex-direction: column;
		gap: 1rem;
		padding: 0 2rem;
	}

	.hero p {
		font-size: 1.1rem;
		padding: 0 1rem;
	}
	
	.profile-img {
		width: 120px;
		height: 120px;
	}
	
	.project-card {
		margin: 0 1rem;
	}
	
	.contact-wrapper {
		grid-template-columns: 1fr;
	}
	
	.contact-info {
		text-align: center;
	}
	
	.social-icons {
		justify-content: center;
	}

	.contact-info a {
		width: 100%;
		justify-content: center;
	}
	
	section {
		padding: 3rem 0;
	}
}

/* Tablet Specific */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-content {
        padding: 1.5rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .skill-category,
    .project-card {
        margin: 0.5rem;
    }
}

/* Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }

    .project-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }

    .skill-categories {
        gap: 3rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .project-card:hover,
    .skill-category:hover,
    .social-icons a:hover {
        transform: none;
    }

    .cta-btn:active,
    .project-card:active,
    .social-icons a:active {
        transform: scale(0.98);
    }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 0;
    }

    .profile-img {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .hero {
        height: auto;
        min-height: auto;
    }

    .nav-menu,
    .mobile-menu-btn,
    .contact-form {
        display: none;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
}
