/* ===== TECHOP.ID CUSTOM STYLES - NO NAVBAR ===== */

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

/* Base Styles */
* {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  /* Remove any top padding/margin that might be for navbar */
  margin: 0;
  padding: 0;
}

/* ===== NAVBAR STYLES ===== */

/* Desktop Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #667eea;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-link:hover {
  color: #667eea;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1001;
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #374151;
  margin: 2px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: #667eea;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  background: #667eea;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.mobile-nav {
  padding: 20px;
}

.mobile-nav-link {
  display: block;
  padding: 15px 0;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: #667eea;
  padding-left: 10px;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Ensure main content has proper spacing for fixed navbar */
main,
.main-content,
.content {
  margin-top: 70px;
  padding-top: 0;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}

/* ===== ANIMATIONS ===== */

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

.floating-animation {
  animation: float 6s ease-in-out infinite;
}

.floating-animation:nth-child(2) {
  animation-delay: -1s;
}

.floating-animation:nth-child(3) {
  animation-delay: -2s;
}

.hero-phone {
  animation: float 3s ease-in-out infinite;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Slide Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out forwards;
}

/* Pulse Animation */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

.pulse-dot {
  animation: pulse 2s infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Typing Animation */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #10b981;
  }
}

.typing-animation {
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid #10b981;
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

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

/* Particles Animation */
@keyframes particles {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50px);
  }
}

/* ===== CARD STYLES ===== */

.card-hover {
  transition: all 0.3s ease;
}

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

.card-hover-scale {
  transition: all 0.3s ease;
}

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

.center-card {
  transform: scale(1.05);
  z-index: 20;
}

.side-cards {
  margin-top: 15px;
}

/* Service Cards */
.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-card.blue-card {
  background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.service-card.blue-card:hover {
  background: linear-gradient(135deg, #2563eb, #4f46e5, #7c3aed);
  box-shadow: 0 30px 60px rgba(59, 130, 246, 0.4);
}

.service-card.white-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-card.white-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

/* Team Cards */
.team-card {
  transition: all 0.4s ease;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-image {
  transition: all 0.4s ease;
}

.team-card:hover .team-image {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.team-member {
  text-align: center;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  transition: all 0.3s ease;
}

.team-member:hover img {
  transform: scale(1.05);
}

/* ===== BACKGROUND STYLES ===== */

.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-bg-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.code-editor {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  font-family: "Courier New", monospace;
}

.dashboard-bg {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.mobile-app-bg {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* ===== TEXT STYLES ===== */

.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== COMPONENT STYLES ===== */

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-border {
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899);
  padding: 3px;
  border-radius: 50%;
}

.gradient-border-inner {
  background: white;
  border-radius: 50%;
  padding: 3px;
}

.price-tag {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .price-tag {
  transform: scale(1.08);
}

.number-badge {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .number-badge {
  transform: rotate(10deg) scale(1.15);
}

.service-title {
  transition: all 0.4s ease;
}

.white-card:hover .service-title {
  color: #6366f1;
}

.phone-image {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.phone-image:hover {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* ===== PORTFOLIO STYLES ===== */

.portfolio-item {
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.filter-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn.active .filter-dot {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  transform: scale(1.2);
}

.filter-btn.active span {
  color: #3b82f6;
  font-weight: 600;
}

.filter-btn:hover .filter-dot {
  transform: scale(1.1);
  background: #6b7280;
}

.portfolio-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.portfolio-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1px);
}

.mockup-phone {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mockup-desktop {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.mockup-tablet {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-category {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.portfolio-filter button {
  padding: 12px 24px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-filter button.active {
  background: white;
  color: #111827;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-filter button:hover {
  color: #111827;
}

/* ===== BUTTON STYLES ===== */

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.btn-secondary {
  background: white;
  color: #374151;
  padding: 12px 24px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

/* ===== FORM STYLES ===== */

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

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

.form-input.error {
  border-color: #ef4444;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ===== UTILITY STYLES ===== */

.timeline-line {
  background: linear-gradient(to bottom, #6b7280, #374151, #6b7280);
}

.hidden-item {
  display: none;
}

.shadow-custom {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shadow-custom-lg {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Auto-scroll container styles */
#auto-scroll-container::-webkit-scrollbar {
  display: none;
}

#auto-scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Loading States */
.loading {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
  margin: 20px auto;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: #10b981;
}

.toast.error {
  background: #ef4444;
}

.toast.warning {
  background: #f59e0b;
}

.toast.info {
  background: #3b82f6;
}

/* Particle Background */
.particle-bg {
  position: relative;
  overflow: hidden;
}

.particle-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(102, 126, 234, 0.3) 1px, transparent 0);
  background-size: 50px 50px;
  animation: particles 20s linear infinite;
}

/* Section Spacing */
.section-padding {
  padding: 80px 0;
}

/* ===== MOBILE MENU FIXES ===== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1001;
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #374151;
  margin: 2px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  transform-origin: center;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: #667eea;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  background: #667eea;
}

/* Mobile Menu Container */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  
  /* Default hidden state */
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When mobile menu is active/visible */
.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Alternative class for compatibility */
.mobile-menu:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Mobile menu navigation */
.mobile-nav {
  padding: 20px;
}

.mobile-nav-link {
  display: block;
  padding: 15px 0;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: #667eea;
  padding-left: 10px;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex !important;
  }

  /* Hide desktop navigation */
  .navbar-nav {
    display: none !important;
  }
  
  /* Ensure navbar has proper structure */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 70px;
  }
}

/* Additional mobile fixes */
@media (max-width: 480px) {
  .mobile-menu {
    top: 60px;
    max-height: calc(100vh - 60px);
  }
  
  .navbar {
    height: 60px;
  }
  
  main,
  .main-content,
  .content {
    margin-top: 60px;
  }
}

/* ===== ACCESSIBILITY ===== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus-visible:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* ===== RESPONSIVE DESIGN ===== */

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

  /* Hide desktop navigation */
  .navbar-nav {
    display: none;
  }

  /* Ensure no blank space on mobile */
  body {
    min-height: 100vh;
    overflow-x: hidden;
  }

  .center-card {
    transform: scale(1);
    margin: 0;
  }

  .side-cards {
    margin-top: 0;
  }

  .hero-phone {
    animation: none;
  }

  .text-5xl {
    font-size: 2.5rem;
  }

  .text-6xl {
    font-size: 3rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  /* Fix any container issues */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Ensure content fills viewport with navbar */
  main,
  .main {
    min-height: calc(100vh - 70px);
  }

  /* Navbar adjustments for mobile */
  .navbar {
    padding: 10px 20px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* Additional mobile fixes */
@media (max-width: 480px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  * {
    max-width: 100%;
  }
}

/* ===== PRINT STYLES ===== */

@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .shadow-lg,
  .shadow-custom,
  .shadow-custom-lg {
    box-shadow: none !important;
  }
}
