/* Using Roboto font from Google Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: #0a0a0a;
  --foreground: #f2f2f2;
  --card: #1a1a1a;
  --card-foreground: #f2f2f2;
  --accent: #a78bfa;
  --accent-foreground: #0a0a0a;
  --muted-foreground: #a6a6a6;
  --border: #333333;
  --input: #262626;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-logo a:hover {
  transform: scale(1.05);
}

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

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--foreground);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 2rem;
  background: linear-gradient(to bottom, var(--background), rgba(167, 139, 250, 0.05));
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

/* COBOL Code Background */
.cobol-code-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.15;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--accent);
  line-height: 1.8;
  pointer-events: none;
  z-index: 1;
}

.cobol-line {
  white-space: nowrap;
  position: absolute;
  animation: scrollCode linear infinite;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.5),
               0 0 20px rgba(167, 139, 250, 0.3);
  filter: brightness(1.2);
  width: max-content;
}

@keyframes scrollCode {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.floating-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.float-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
}

.float-1 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 80px;
  left: 40px;
  animation: float 6s ease-in-out infinite;
}

.float-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: 80px;
  right: 40px;
  animation: float-delayed 6s ease-in-out infinite;
}

.float-3 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: 0;
  right: 0;
}

.float-4 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: 0;
  left: 0;
}

.float-5 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: 50%;
  right: 0;
}

.float-6 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: 0;
  left: 25%;
  animation: float 6s ease-in-out infinite;
}

.float-7 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: 0;
  right: 25%;
  animation: float-delayed 6s ease-in-out infinite;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.word-slide {
  display: inline-block;
  margin-right: 0.5rem;
  animation: slideInDown 0.8s ease-out forwards;
}

.word-slide:nth-child(2) {
  animation-delay: 0.1s;
}

.word-slide:nth-child(3) {
  animation-delay: 0.2s;
}

.word-slide.accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Scroll Indicator */
.scroll-indicator {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  animation: pulse 2s ease-in-out infinite;
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  position: relative;
  width: 24px;
  height: 40px;
}

.scroll-arrow span {
  display: block;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: arrowBounce 2s ease-in-out infinite;
  position: absolute;
  left: 50%;
  margin-left: -6px;
}

.scroll-arrow span:nth-child(1) {
  top: 0;
  animation-delay: 0s;
}

.scroll-arrow span:nth-child(2) {
  top: 8px;
  animation-delay: 0.15s;
}

.scroll-arrow span:nth-child(3) {
  top: 16px;
  animation-delay: 0.3s;
}

@keyframes arrowBounce {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.scroll-indicator:hover .scroll-text {
  color: var(--accent);
}

.scroll-indicator:hover .scroll-arrow span {
  background: var(--accent);
  opacity: 1;
}

/* Buttons */
.btn {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Roboto", sans-serif;
}

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

.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

.btn-primary:active {
  transform: scale(0.95);
}

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

.btn-secondary:hover {
  background: rgba(167, 139, 250, 0.1);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.btn-secondary:active {
  transform: scale(0.95);
}

.btn-submit {
  width: 100%;
}

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

/* Sections */
section {
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
}

.section-title.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
}

.section-title.fade-in-up.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* About Section */
.about {
  background: var(--background);
}

/* Profile Picture */
.profile-image-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(32px);
}

.profile-image-wrapper.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.profile-image {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent);
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.4),
              0 0 60px rgba(167, 139, 250, 0.2);
  transition: all 0.4s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.6),
              0 0 80px rgba(167, 139, 250, 0.3);
}

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

.profile-image:hover img {
  transform: scale(1.1);
}

.profile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.profile-image:hover .profile-overlay {
  opacity: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  justify-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-content {
  opacity: 0;
  transform: translateX(-32px);
  text-align: center;
}

.about-content.animate-in {
  animation: slideInLeft 1s ease-out forwards;
}

.about-text {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(32px);
}

.stat-card.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.stat-card:nth-child(2).animate-in {
  animation-delay: 0.1s;
}

.stat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
  transform: scale(1.05);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-value {
  transform: scale(1.1);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.about-image {
  position: relative;
  animation: slideInRight 1s ease-out forwards;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  transition: transform 0.7s ease;
}

.about-image:hover img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.4), transparent);
  border-radius: 0.5rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.about-image:hover .image-overlay {
  opacity: 1;
}

.shimmer-effect {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.2), transparent);
  border-radius: 0.5rem;
  opacity: 0;
  animation: shimmer 3s ease-in-out infinite;
}

.about-image:hover .shimmer-effect {
  opacity: 1;
}

/* Experience Section */
.experience {
  background: rgba(26, 26, 26, 0.3);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(32px);
}

.experience-card.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.experience-card:nth-child(2) {
  animation-delay: 0.15s;
}

.experience-card:nth-child(3) {
  animation-delay: 0.3s;
}

.experience-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.1);
  transform: scale(1.02);
}

.card-accent {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.experience-card:hover .card-accent {
  opacity: 1;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.experience-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.experience-card:hover .experience-title {
  color: var(--accent);
}

.experience-company {
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.25rem;
}

.experience-period {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.experience-card:hover .experience-period {
  color: rgba(167, 139, 250, 0.7);
}

.experience-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.4rem 0.8rem;
  background: rgba(167, 139, 250, 0.1);
  color: var(--accent);
  font-size: 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
  transition: all 0.3s ease;
}

.skill-tag:nth-child(1) {
  animation-delay: 0.3s;
}

.skill-tag:nth-child(2) {
  animation-delay: 0.35s;
}

.skill-tag:nth-child(3) {
  animation-delay: 0.4s;
}

.skill-tag:nth-child(4) {
  animation-delay: 0.45s;
}

.skill-tag:nth-child(5) {
  animation-delay: 0.5s;
}

.skill-tag:hover {
  background: rgba(167, 139, 250, 0.2);
  transform: scale(1.1);
}

/* Projects Section */
.projects {
  background: var(--background);
}

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

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(32px);
}

.project-card.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.project-card:nth-child(2).animate-in {
  animation-delay: 0.15s;
}

.project-card:nth-child(3).animate-in {
  animation-delay: 0.3s;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.2);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

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

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

.project-image .image-overlay {
  opacity: 0;
}

.project-card:hover .project-image .image-overlay {
  opacity: 1;
}

.project-image .shimmer-effect {
  opacity: 0;
}

.project-card:hover .project-image .shimmer-effect {
  opacity: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1.5rem 1.5rem 0.5rem;
  transition: all 0.3s ease;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: var(--accent);
  transform: translateX(5px);
}

.project-description {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  padding: 0.5rem 1.5rem;
  transition: color 0.3s ease;
}

.project-card:hover .project-description {
  color: var(--foreground);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
}

.tag {
  padding: 0.3rem 0.7rem;
  background: rgba(167, 139, 250, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
  transition: all 0.3s ease;
}

.tag:nth-child(1) {
  animation-delay: 0.3s;
}

.tag:nth-child(2) {
  animation-delay: 0.35s;
}

.tag:nth-child(3) {
  animation-delay: 0.4s;
}

.tag:nth-child(4) {
  animation-delay: 0.45s;
}

.tag:hover {
  background: rgba(167, 139, 250, 0.2);
  transform: scale(1.1);
}

/* Contact Section */
.contact {
  background: linear-gradient(to bottom, var(--background), rgba(167, 139, 250, 0.05));
}

.contact-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out forwards;
}

.form-group:nth-child(2) {
  animation-delay: 0.1s;
}

.form-group:nth-child(3) {
  animation-delay: 0.2s;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(167, 139, 250, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
}

.form-group textarea {
  resize: none;
}

.contact-footer {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.contact-footer p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

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

.social-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.social-link:nth-child(1) {
  animation-delay: 0.7s;
}

.social-link:nth-child(2) {
  animation-delay: 0.8s;
}

.social-link:nth-child(3) {
  animation-delay: 0.9s;
}

.social-link:hover {
  transform: scale(1.1);
  text-decoration: underline;
}

/* Scroll Animation Triggers */
.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
}

.fade-in-up.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
}

.fade-in-left.animate-in {
  animation: slideInLeft 1s ease-out forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
}

.fade-in-right.animate-in {
  animation: slideInRight 1s ease-out forwards;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-delayed {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

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

  .nav-menu li {
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    display: block;
    padding: 1rem 1.5rem;
  }

  .hamburger {
    display: flex;
  }

  .profile-image {
    width: 150px;
    height: 150px;
    border-width: 3px;
  }

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

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

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .experience-header {
    flex-direction: column;
  }

  .experience-period {
    margin-top: 0.5rem;
  }

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

  .social-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3rem 1rem;
  }

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

  .hero {
    padding: 4rem 1rem 2rem;
  }

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

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

  .about-text {
    font-size: 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .experience-title {
    font-size: 1.1rem;
  }

  .project-title {
    font-size: 1.1rem;
  }

  .contact-form {
    padding: 0 1rem;
  }
}
