 
@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&family=Smooch+Sans:wght@100..900&display=swap');
 
/* Reset and base */
* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #121212;
  color: #eee;
  line-height: 1.6;
  min-height: 100vh;
  scroll-behavior: smooth;
}

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

/* Header */
header {
  background: #1f1f1f;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.logo {
  color: #00ffff;
  font-size: 1.8rem;
  font-weight: 700;
  user-select: none;
  letter-spacing: 2px;
  float: left;
  text-transform: uppercase;
  
}

nav {
  float: right;
}

nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover,
nav a:focus {
  color: #00ffff;
  outline: none;
}

/* Clear floats */
header .container::after {
  content: '';
  display: block;
  clear: both;
}

/* Menu toggle - hidden on desktop */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: #00ffff;
  user-select: none;
}

.menu-toggle .close-icon {
  display: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #00ffff;
  padding: 80px 0;
  perspective: 1200px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
   font-family: "Roboto Flex", sans-serif;
}

.hero-text h2 span {
  color: #ff4081;
}

.hero-text p {
  font-size: 1.5rem;
  min-height: 40px;
  margin-bottom: 25px;
  color: #d0f0ff;
  letter-spacing: 1.2px;
}

.cursor {
  display: inline-block;
  background-color: #ff4081;
  width: 3px;
  animation: blink 0.7s steps(1) infinite;
  vertical-align: bottom;
  margin-left: 3px;
  border-radius: 1px;
  height: 1.5em;
}

@keyframes blink {
  50% { background-color: transparent; }
}

/* Button */
.btn {
  background-color: #ff4081;
  color: #fff;
  padding: 12px 28px;
  font-size: 1.1rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 64, 129, 0.6);
  transition: background-color 0.3s ease;
  user-select: none;
  text-decoration: none;
}

.btn:hover,
.btn:focus {
  background-color: #e63270;
  outline: none;
}

/* Hero image with 3D floating animation */
.hero-image {
  flex: 1 1 400px;
  max-width: 400px;
  perspective: 1200px;
}

.animated-img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.7);
  transform-style: preserve-3d;
  animation: float3d 6s ease-in-out infinite;
}

@keyframes float3d {
  0%, 100% {
    transform: rotateX(0deg) rotateY(0deg) translateY(0);
    box-shadow: 0 15px 30px rgba(0,0,0,0.7);
  }
  25% {
    transform: rotateX(5deg) rotateY(10deg) translateY(-15px);
    box-shadow: 0 25px 40px rgba(0,0,0,0.8);
  }
  50% {
    transform: rotateX(-5deg) rotateY(-10deg) translateY(0);
    box-shadow: 0 15px 30px rgba(0,0,0,0.7);
  }
  75% {
    transform: rotateX(5deg) rotateY(-10deg) translateY(-15px);
    box-shadow: 0 25px 40px rgba(0,0,0,0.8);
  }
}

/* Sections */
section {
  padding: 60px 0;
  color: #eee;
}

/* About */
.about-container {
  display: flex;
  justify-content: center;
}

.about-card {
  max-width: 700px;
  background: #1f1f1f;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.2);
}

.about-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 25px;
  border: 3px solid #00ffff;
  box-shadow: 0 0 15px #00ffff;
}

/* Skills */
.skills-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.skills-list li {
  background: #00ffff;
  color: #121212;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.5);
  user-select: none;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.project-card {
  background: #1f1f1f;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(255, 64, 129, 0.3);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 64, 129, 0.6);
}

.project-card img {
  width: 100%;
  display: block;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.project-card h3 {
  padding: 15px 20px 5px 20px;
  color: #ff4081;
}

.project-card p {
  padding: 0 20px 20px 20px;
  color: #ccc;
  font-size: 0.9rem;
}

/* Contact form */
form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 15px 20px;
  border-radius: 10px;
  border: none;
  background: #1f1f1f;
  color: #eee;
  font-size: 1rem;
  resize: vertical;
  box-shadow: inset 0 0 10px #00ffff;
  transition: box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 15px #ff4081;
}

textarea {
  min-height: 140px;
}

button[type="submit"] {
  background: #ff4081;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 64, 129, 0.6);
  user-select: none;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background: #e63270;
  outline: none;
}

/* Popup message */
.popup-message {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #00c851;
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 200, 81, 0.7);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 2000;
}

.popup-message.show {
  opacity: 1;
  pointer-events: auto;
}

/* Footer */
.footer {
  background: #1f1f1f;
  padding: 25px 0;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 25px;
  justify-content: center;
}

.social-icons a {
  color: #00ffff;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.social-icons a:hover,
.social-icons a:focus {
  color: #ff4081;
  outline: none;
}

/* Responsive Nav and Menu Toggle */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 60px;
    right: 0;
    background: #121212;
    height: calc(100vh - 60px);
    width: 250px;
    padding-top: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
  }

  nav.open {
    transform: translateX(0);
  }

  nav a {
    margin: 20px 0;
    font-size: 1.2rem;
    padding-left: 20px;
  }

  .menu-toggle {
    display: block;
    float: right;
  }

  .menu-toggle .open-icon {
    display: inline-block;
  }

  .menu-toggle .close-icon {
    display: none;
  }

  .menu-toggle.open .open-icon {
    display: none;
  }

  .menu-toggle.open .close-icon {
    display: inline-block;
  }

  /* Clear floats */
  header .container {
    overflow: hidden;
  }
  
.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.hero-text h2 span {
  color: #ff4081;
}

  
  /* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.project-card {
  background: #1f1f1f;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(255, 64, 129, 0.3);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 64, 129, 0.6);
}

.project-card img {
  width: 100%;
  display: block;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.project-card h3 {
  padding: 15px 20px 5px 20px;
  color: #ff4081;
}

.project-card p {
  padding: 0 20px 20px 20px;
  color: #ccc;
  font-size: 0.9rem;
}

}

/* Accessibility focus outline */
a:focus,
button:focus,
.menu-toggle:focus {
  outline: 3px solid #ff4081;
  outline-offset: 2px;
}