/* CSS Variables for easy theming */
:root {
	--primary-color: #2563eb;
	--primary-dark: #1e40af;
	--secondary-color: #10b981;
	--text-dark: #1f2937;
	--text-light: #6b7280;
	--bg-light: #f9fafb;
	--border-color: #e5e7eb;
	--white: #ffffff;
	--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	color: var(--text-dark);
	background: var(--white);
}

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header & Navigation */
header {
	background: var(--white);
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	flex-wrap: wrap;
}

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
	text-decoration: none;
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 2rem;
	flex-wrap: wrap;
}

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

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

/* Hero Section */
.hero {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: var(--white);
	padding: 5rem 0;
	text-align: center;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
}

.hero-image {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	border: 5px solid var(--white);
	margin-bottom: 2rem;
	object-fit: cover;
}

.hero h1 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	font-weight: 700;
}

.hero-subtitle {
	font-size: 1.4rem;
	margin-bottom: 1rem;
	opacity: 0.98;
	font-weight: 600;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-description {
	font-size: 1.1rem;
	margin-bottom: 2rem;
	opacity: 0.9;
}

.cta-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.btn {
	padding: 0.75rem 2rem;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s;
	display: inline-block;
	border: 2px solid transparent;
}

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

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn-secondary {
	border: 2px solid var(--white);
	color: var(--white);
}

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

/* Stats Section */
.stats {
	background: var(--bg-light);
	padding: 3rem 0;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	text-align: center;
}

.stat-item h3 {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}

.stat-item p {
	color: var(--text-light);
	font-weight: 500;
}

/* Section Styles */
section {
	padding: 4rem 0;
}

.section-title {
	font-size: 2rem;
	margin-bottom: 1rem;
	text-align: center;
	color: var(--text-dark);
}

.section-subtitle {
	text-align: center;
	color: var(--text-light);
	margin-bottom: 3rem;
	font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.service-card {
	background: var(--white);
	padding: 2rem;
	border-radius: 8px;
	box-shadow: var(--shadow);
	transition: all 0.3s;
	border: 1px solid var(--border-color);
}

.service-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

.service-icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.service-card h3 {
	margin-bottom: 1rem;
	color: var(--primary-color);
}

.service-card ul {
	list-style: none;
	margin-top: 1rem;
}

.service-card li:before {
	content: "✓ ";
	color: var(--secondary-color);
	font-weight: bold;
}

/* About Section */
.about-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

.expertise-list {
	list-style: none;
}

.expertise-list li {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--border-color);
}

.expertise-list li:before {
	content: "▸ ";
	color: var(--primary-color);
	font-weight: bold;
	margin-right: 0.5rem;
}

/* Testimonials Carousel */
.testimonials-carousel {
	max-width: 900px;
	margin: 0 auto;
	position: relative;
	padding: 0 3rem;
}

.testimonial-container {
	position: relative;
	overflow: hidden;
}

.testimonial-slide {
	display: none;
	animation: fadeIn 0.5s;
}

.testimonial-slide.active {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.testimonial {
	background: var(--white);
	padding: 2rem;
	border-radius: 8px;
	box-shadow: var(--shadow);
	border-left: 4px solid var(--primary-color);
}

.testimonial-text {
	font-style: italic;
	color: var(--text-dark);
	margin-bottom: 1.5rem;
	line-height: 1.8;
	font-size: 1.05rem;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.testimonial-author img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--border-color);
}

.author-info {
	font-weight: 600;
	color: var(--text-dark);
	font-size: 1.1rem;
}

.author-role {
	font-size: 0.9rem;
	color: var(--text-light);
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: var(--white);
	border: 2px solid var(--border-color);
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 1.5rem;
	color: var(--primary-color);
	transition: all 0.3s;
	z-index: 10;
}

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

.carousel-btn.prev {
	left: 0;
}

.carousel-btn.next {
	right: 0;
}

.carousel-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
}

.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--border-color);
	cursor: pointer;
	transition: all 0.3s;
}

.dot.active {
	background: var(--primary-color);
	width: 32px;
	border-radius: 6px;
}

/* Publications */
.publications-list {
	max-width: 900px;
	margin: 0 auto;
}

.publication-item {
	background: var(--white);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	border-radius: 8px;
	box-shadow: var(--shadow);
	border-left: 4px solid var(--primary-color);
}

.publication-item h3 {
	color: var(--primary-color);
	margin-bottom: 0.5rem;
	font-size: 1.1rem;
}

.publication-item a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
}

.publication-item a:hover {
	text-decoration: underline;
}

.publication-venue {
	color: var(--text-light);
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

/* Contact Section */
.contact-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	max-width: 1000px;
	margin: 0 auto;
}

.contact-info {
	background: var(--white);
	padding: 2rem;
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.contact-info h3 {
	color: var(--primary-color);
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
}

.contact-method {
	display: flex;
	align-items: start;
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border-color);
}

.contact-method:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.contact-icon {
	font-size: 1.5rem;
	margin-right: 1rem;
	min-width: 2rem;
}

.contact-details h4 {
	margin-bottom: 0.25rem;
	color: var(--text-dark);
}

.contact-details p {
	color: var(--text-light);
	font-size: 0.95rem;
	margin-bottom: 0.5rem;
}

.contact-details a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
}

.contact-details a:hover {
	text-decoration: underline;
}

.calendly-btn {
	display: inline-block;
	background: var(--secondary-color);
	color: var(--white) !important;
	padding: 0.5rem 1.25rem;
	border-radius: 6px;
	text-decoration: none !important;
	font-weight: 600;
	transition: all 0.3s;
	margin-top: 0.5rem;
}

.calendly-btn:hover {
	background: #059669;
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.response-time {
	background: var(--bg-light);
	padding: 1rem;
	border-radius: 6px;
	margin-top: 1.5rem;
	font-size: 0.9rem;
	color: var(--text-light);
}

/* Contact Form */
.contact-form {
	background: var(--white);
	padding: 2rem;
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.form-group select {
	width: 100%;
	padding: 0.75rem;
	border: 2px solid var(--border-color);
	border-radius: 6px;
	font-family: inherit;
	font-size: 1rem;
	transition: border-color 0.3s;
	background: var(--white);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--text-dark);
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 0.75rem;
	border: 2px solid var(--border-color);
	border-radius: 6px;
	font-family: inherit;
	font-size: 1rem;
	transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary-color);
}

.form-group textarea {
	min-height: 150px;
	resize: vertical;
}

.btn-submit {
	width: 100%;
	padding: 1rem;
	background: var(--primary-color);
	color: var(--white);
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s;
}

.btn-submit:hover {
	background: var(--primary-dark);
}

#result {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 6px;
	text-align: center;
	font-weight: 600;
}

/* Footer */
footer {
	background: var(--text-dark);
	color: var(--white);
	padding: 2rem 0;
	text-align: center;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.footer-links a {
	color: var(--white);
	text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: block;
	}

	.nav-links {
		display: none;
		flex-direction: column;
		width: 100%;
		gap: 0;
		margin-top: 1rem;
		background: var(--white);
		border-radius: 8px;
		box-shadow: var(--shadow);
		padding: 1rem;
	}

	.nav-links.active {
		display: flex;
	}

	.nav-links li {
		width: 100%;
		text-align: center;
		padding: 0.75rem 0;
		border-bottom: 1px solid var(--border-color);
	}

	.nav-links li:last-child {
		border-bottom: none;
	}

	nav {
		flex-wrap: wrap;
	}

	.testimonials-carousel {
		padding: 0 2rem;
	}

	.carousel-btn {
		width: 40px;
		height: 40px;
		font-size: 1.2rem;
	}

	.testimonial-author img {
		width: 50px;
		height: 50px;
	}

	.contact-wrapper {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.hero h1 {
		font-size: 2rem;
	}

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

	.about-content {
		grid-template-columns: 1fr;
	}

	.services-grid {
		grid-template-columns: 1fr;
	}

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

	.cta-buttons {
		flex-direction: column;
		width: 100%;
	}

	.btn {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.hero {
		padding: 3rem 0;
	}

	.hero h1 {
		font-size: 1.75rem;
	}

	section {
		padding: 3rem 0;
	}

	.stats-grid {
		grid-template-columns: 1fr;
	}
}

/* Utility Classes */
.text-center {
	text-align: center;
}

.mt-2 {
	margin-top: 2rem;
}

.mb-2 {
	margin-bottom: 2rem;
}

.mb-1 {
	margin-bottom: 1rem;
}

.ml-1-5 {
	margin-left: 1.5rem;
}

.mr-1 {
	margin-right: 1rem;
}

/* About section specific styles */
.about-text {
	margin-bottom: 1rem;
}

.company-list {
	margin-bottom: 1rem;
	margin-left: 1.5rem;
	color: var(--text-dark);
}

.company-list li {
	margin-bottom: 0.5rem;
}

.company-list a {
	color: var(--primary-color);
	font-weight: 600;
	text-decoration: none;
}

.company-list a:hover {
	text-decoration: underline;
}

.section-heading {
	margin-bottom: 1rem;
	color: var(--primary-color);
}

.tech-stack-heading {
	margin: 2rem 0 1rem;
	color: var(--primary-color);
}

.tech-stack-text {
	color: var(--text-light);
}

.bg-section {
	background: var(--bg-light);
}

.publication-description {
	margin-top: 0.5rem;
	color: var(--text-light);
	font-size: 0.95rem;
}

/* Skip to content link for accessibility */
.skip-to-content {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--primary-color);
	color: var(--white);
	padding: 0.5rem 1rem;
	text-decoration: none;
	border-radius: 0 0 4px 0;
	z-index: 100;
	transition: top 0.3s;
}

.skip-to-content:focus {
	top: 0;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	color: var(--text-dark);
	cursor: pointer;
	padding: 0.5rem;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* Form validation styles */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
	border-color: #dc2626;
}

.form-error {
	color: #dc2626;
	font-size: 0.875rem;
	margin-top: 0.25rem;
	display: none;
}

.form-error.visible {
	display: block;
}

.form-success {
	color: var(--secondary-color);
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

/* Loading spinner */
.loading-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: var(--white);
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}
