@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap");

:root {
  --primary: #1a1d1e;
  --secondary: #0070c9;
  --accent: #00a8a3;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
}

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

html {
  scroll-behavior: smooth; /* Enable smooth scrolling */
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, #111827 100%);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: auto;
}

/* Navigation Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  z-index: 100;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: width 0.3s ease;
}

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

.nav-links a:hover:after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main Content Styles */
main {
  position: relative;
  z-index: 2;
  padding-top: 5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0rem 2rem 2rem;
  min-height: 90vh;
}

.container {
  max-width: 800px;
  padding: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: fadeIn 1s ease-out;
}

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

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 400;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.cta {
  margin-top: 3rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 168, 163, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 168, 163, 0.4);
}

.social-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.social-links i {
  font-size: 1.2rem;
}

/* Projects Section Styles */
.projects-section {
  padding: 6rem 2rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  font-size: 1.2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.project-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 168, 163, 0.2);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
}

.project-badge.coming-soon-badge {
  background: linear-gradient(135deg, #e03131, #f08c00);
}

.project-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-image:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  z-index: 1;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  max-width: 100%;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-stack span {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.project-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-features li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.project-features i {
  color: var(--accent);
  font-size: 0.8rem;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  background: rgba(0, 168, 163, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.project-link:hover {
  background: rgba(0, 168, 163, 0.2);
}

.project-link i {
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(5px);
}

.project-link-soon {
  background: rgba(240, 140, 0, 0.1);
  color: #f08c00;
}

.project-link-soon:hover {
  background: rgba(240, 140, 0, 0.2);
}

/* Blog Section Styles */
.blog-section {
  padding: 6rem 2rem;
  background: linear-gradient(0deg, transparent, rgba(0, 0, 0, 0.3));
  position: relative;
}

.coming-soon-badge {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin: 0 auto 2rem;
  position: relative;
  text-align: center;
}

.blog-section .section-container {
  text-align: center;
}

.blog-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3rem;
}

.blog-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 168, 163, 0.2);
}

.category-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 168, 163, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.category-icon i {
  font-size: 1.8rem;
  color: var(--accent);
}

.category-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-signup {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  width: 600px;
}

.blog-signup h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.blog-signup p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  gap: 1rem;
}

.signup-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 1rem;
  font-family: "Inter", sans-serif;
}

.signup-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.signup-form .cta-button {
  padding: 0.8rem 1.5rem;
}

.signup-form .cta-button .fa-spinner {
  font-size: 1rem;
  margin: 0 0.5rem;
}

.form-message {
  font-size: 0.9rem;
  margin-top: 1rem;
  min-height: 20px;
}

/* Hide form message when empty */
.form-message:empty {
  display: none;
}

/* About Section Styles */
.about-section {
  padding: 6rem 2rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), transparent);
}

.about-content {
  display: flex;
  gap: 4rem;
  margin-top: 3rem;
  align-items: center;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 112, 201, 0.1),
    rgba(0, 168, 163, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.image-container:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(0, 168, 163, 0.1),
    transparent,
    transparent
  );
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.image-container i {
  font-size: 6rem;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.about-text {
  flex: 2;
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer Styles */
.footer {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-logo i {
  font-size: 1.5rem;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-section h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.footer-section h4:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-section i {
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 4px 20px rgba(0, 168, 163, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 168, 163, 0.4);
}

.scroll-top i {
  font-size: 1.2rem;
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 101;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 102;
  }

  .container {
    padding: 1.5rem;
  }

  .hero-section {
    padding: 0rem 1rem 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .social-links {
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .projects-section {
    padding: 4rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

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

  .project-card {
    flex-grow: 1;
    max-width: 100% !important;
  }

  .project-content h3 {
    font-size: 1.3rem;
  }

  .blog-section {
    padding: 4rem 1rem;
  }

  .blog-categories {
    grid-template-columns: 1fr;
  }

  .blog-signup {
    width: 100%;
    max-width: 600px;
  }

  .form-group {
    flex-direction: column;
    gap: 1rem;
  }

  .signup-form .cta-button {
    width: 100%;
  }

  .about-section {
    padding: 4rem 1rem;
  }

  .about-content {
    flex-direction: column;
    gap: 2rem;
  }

  .about-image {
    order: -1;
  }

  .image-container {
    width: 200px;
    height: 200px;
  }

  .image-container i {
    font-size: 4rem;
  }

  .about-stats {
    gap: 1.5rem;
    justify-content: center;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer {
    padding: 3rem 1rem 1.5rem;
  }

  .footer-content {
    text-align: center;
  }

  .footer-section h4:after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-section a:hover {
    transform: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-content {
    gap: 2rem;
  }

  .image-container {
    width: 200px;
    height: 200px;
  }

  .image-container i {
    font-size: 4rem;
  }
}
