/* Modern CSS Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

a {
  color: black;
}

body {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
  min-height: 100vh;
  position: relative;
  padding: 60px;
}

body.invite-page {
  padding: 0;
  overflow: hidden;
}

/* Background Effects */
.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.05;
  animation: gradientShift 15s ease infinite;
  background-size: 400% 400%;
}

.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Container Wrapper */
.container-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  margin-left: 50px;
}

/* Invite Page Specific Styles */
.invite-page .hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.invite-page .hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 20px;
}

.invite-page .contact-form-container {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 80vh;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 10;
  max-width: 100%;
  margin: 20px;
}

.invite-page .contact-form-content {
  width: 100%;
  max-width: 600px;
}

.invite-page .hero-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.hero-content {
  padding: 40px 0;
}

.social-links {
  display: flex;
  gap: 25px;
  margin-bottom: 40px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: #1B1A58;
  font-size: 22px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: black

}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

/* Unique gradients for social media icons */
.social-icon[href*="telegram"]:hover {
  background: linear-gradient(135deg, #0088cc, #00aced);
}

.social-icon[href*="instagram"]:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.social-icon[href*="github"]:hover {
  background: linear-gradient(135deg, #24292e, #04070d);
  color: white;

}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 25px;
  color: #1a1a2e;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.highlight {
  color: #667eea;
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(102, 126, 234, 0.3);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #4a4a68;
  font-weight: 400;
}

.hero-description {
  font-size: 1.1rem;
  color: #6c6c8c;
  margin-bottom: 40px;
  font-weight: 300;
}

.text-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.text-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

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

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 250px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #1B1A58;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: perspective(1000px) rotateY(-5deg) scale(1.05);
  transition: transform 0.5s ease;
}

.image-container:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

/* Contact Form Styles */
.contact-form-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.contact-form-content {
  width: 100%;
  max-width: 500px;
}

.contact-form-content h3 {
  text-align: center;
  margin-bottom: 30px;
  color: #1a1a2e;
  font-weight: 700;
}

.form-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.form-buttons .btn {
  flex: 1;
}

/* Success Message Styles */
.success-message-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.success-content {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.success-content h3 {
  margin: 20px 0 15px;
  color: #1a1a2e;
  font-weight: 700;
  font-size: 2rem;
}

.success-content p {
  margin-bottom: 30px;
  color: #4a4a68;
  font-size: 1.1rem;
  line-height: 1.6;
}

.thank-you-message {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.thank-you-message .success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: white;
}

.thank-you-message h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 20px 0 15px;
  color: white;
}

.thank-you-message p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.thank-you-message .btn {
  background: white;
  color: #667eea;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.thank-you-message .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}



/* Navigation Tabs */
.navigation-tabs {
  padding: 40px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  margin: 40px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.tab-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: #495057;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tab-link:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tab-link.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  border: none;
}

.tab-link i {
  font-size: 1.2rem;
}

/* Content Section */
#content-section {
  padding: 40px 0 80px;
}

/* Main Content Area */
.main {
  padding: 40px 0;
}

/* Work Section */
.work-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #1a1a2e;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-image-container {
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.card-img-top {
  width: 100%;
  transition: transform 0.5s ease;
  display: block;
}

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

.card-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 15px;
  color: #1a1a2e;
}

.card-text {
  font-size: 1.1rem;
  color: #4a4a68;
  line-height: 1.7;
  flex-grow: 1;
}

.cards-row {
  padding-bottom: 30px;
  min-height: 500px;
}

/* Stack Section */
.main_scroll {
  width: 100%;
  overflow-x: hidden;
  padding: 20px 0;
}

.main_box_scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 20px 0;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  padding: 20px 0;
}

.stack-item {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stack-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(20%);
  opacity: 0.9;
  cursor: pointer;
}

.stack-image:hover {
  transform: scale(1.2) rotate(5deg);
  filter: grayscale(0%);
  opacity: 1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Feedback Section */
#scrapped-title {
  text-align: center;
  padding: 30px 0;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
}

#upwork-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

#upwork-link:hover {
  text-decoration: underline;
}

.feedback {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.feedback:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.feedback-title {
  color: #108a00;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feedback-stats {
  margin-bottom: 15px;
  align-items: center;
}

.feedback-stars {
  color: #108a00;
  font-size: 1.2rem;
  margin-right: 10px;
}

.feedback-stars-counter {
  font-weight: 700;
  color: #108a00;
  font-size: 1.1rem;
  margin-right: 15px;
}

.feedback-date {
  color: #5e6d55;
  font-size: 1rem;
}

.feedback-text {
  padding-top: 15px;
  font-size: 1.1rem;
  color: #4a4a68;
  line-height: 1.7;
  font-style: italic;
}

/* Footer */
.main-footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#copyright {
  font-weight: 500;
  color: #4a4a68;
}

#cat {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

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

/* Loading Animation */
.loading_box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-size: 1.5rem;
  color: #667eea;
}

.loading_box::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 15px;
}

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

/* Responsive Design */
@media only screen and (max-width: 1200px) {

  body {
    padding: 0px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    margin-left:0px;
  }
  
  .hero-section {
    margin-left:0px;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media only screen and (max-width: 768px) {
  .container-wrapper {
    padding: 0 15px;
  }
  
  .hero-section {
    margin-left:0px;
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .highlight::after {
    bottom: 4px;
    height: 6px;
  }
  
  .navigation-tabs {
    margin: 20px 0;
    border-radius: 20px;
    padding: 10px;
  }
  
  .desktop-nav {
    flex-wrap: wrap;
  }
  
  .tab-link {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .tab-link i {
    font-size: 1rem;
  }
  
  .card-title {
    font-size: 1.5rem;
  }
  
  .card-text {
    font-size: 1rem;
  }
  
  #scrapped-title {
    font-size: 1.5rem;
  }
  
  .feedback {
    padding: 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}

@media only screen and (max-width: 480px) {
  .social-links {
    gap: 15px;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 14px 20px;
    font-size: 1rem;
  }
  
  .tab-link {
    padding: 10px 15px;
    font-size: 0.8rem;
  }
  
  .card-title {
    font-size: 1.3rem;
  }
  
  .main_box_scroll {
    gap: 20px;
  }
  
  .stack-image {
    width: 60px;
    height: 60px;
  }
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Apple-like Modal Styles */
.apple-modal {
  border: none;
  border-radius: 18px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  z-index: 2147483647;
  pointer-events: auto;
}

.modal-backdrop {
  z-index: 2147483646;
  background-color: rgba(0, 0, 0, 0.3);
}

.modal-content {
  z-index: 2147483647;
  pointer-events: auto;
}

.modal {
  z-index: 2147483647;
  pointer-events: auto;
}

.modal-dialog {
  z-index: 2147483647;
  pointer-events: auto;
}

.apple-modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.95);
  pointer-events: auto;
}

.apple-modal-body {
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  pointer-events: auto;
}

.apple-modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.95);
  pointer-events: auto;
}

/* Ensure modal content is interactive */
.apple-modal *,
.apple-modal-header *,
.apple-modal-body *,
.apple-modal-footer * {
  pointer-events: auto;
}

/* Override Bootstrap modal styles to ensure interactivity */
.modal.fade:not(.show) {
  opacity: 1;
}

.modal.show .modal-dialog {
  transform: none;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.apple-input, .apple-textarea {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
}

.apple-input:focus, .apple-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.apple-input::placeholder, .apple-textarea::placeholder {
  color: #aaa;
}

.form-label {
  font-weight: 500;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.apple-btn {
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.apple-btn-primary {
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.apple-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.apple-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-close {
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.modal-title {
  font-weight: 600;
  color: #1a1a2e;
}

.form-control {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-label {
  font-weight: 500;
  color: #1a1a2e;
  margin-bottom: 8px;
}
