/* ============ PERFECT MOBILE-FRIENDLY HOVER EFFECTS ============ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: #0f172a;
    color: #f1f5f9;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  /* ============ ENHANCED NAVIGATION WITH PERFECT MOBILE HOVER ============ */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
  }
  
  .navbar.scrolled {
    background: rgba(30, 41, 59, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
  }
  
  /* Perfect Mobile-Friendly Logo */
  .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f1f5f9;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 0.5rem;
  }
  
  .logo:hover,
  .logo:focus,
  .logo:active {
    transform: scale(1.05);
    filter: brightness(1.2);
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
  }
  
  .nav-item {
    position: relative;
  }
  
  /* Enhanced Mobile-Friendly Nav Links */
  .nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-height: 44px; /* iOS touch target minimum */
    min-width: 44px;
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
  }
  
  .nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 12px;
  }
  
  .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  /* Desktop and Mobile Hover Effects */
  .nav-link:hover::before,
  .nav-link:focus::before,
  .nav-link:active::before {
    left: 0;
  }
  
  .nav-link:hover::after,
  .nav-link:focus::after,
  .nav-link:active::after {
    width: 80%;
  }
  
  .nav-link:hover,
  .nav-link:focus,
  .nav-link:active {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  }
  
  .nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
  }
  
  /* Hamburger Menu */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.8rem;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    border-radius: 8px;
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
  }
  
  .hamburger:hover,
  .hamburger:focus,
  .hamburger:active {
    transform: scale(1.1);
    background: rgba(102, 126, 234, 0.1);
  }
  
  .bar {
    width: 25px;
    height: 3px;
    background: #f1f5f9;
    margin: 3px 0;
    transition: 0.3s ease;
    border-radius: 2px;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  /* ============ HERO SECTION ============ */
  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    overflow: hidden;
  }
  
  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23667eea" stop-opacity="0.3"/><stop offset="100%" stop-color="%23764ba2" stop-opacity="0.1"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23a)"/><circle cx="800" cy="300" r="100" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>')
      no-repeat center center;
    background-size: cover;
    animation: float 20s ease-in-out infinite;
  }
  
  @keyframes float {
    0%,
    100% {
      transform: translateY(0px) rotate(0deg) scale(1);
    }
    50% {
      transform: translateY(-20px) rotate(180deg) scale(1.05);
    }
  }
  
  .hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
  }
  
  .hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease-out, titleGlow 3s ease-in-out infinite alternate;
  }
  
  @keyframes titleGlow {
    0% {
      filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.3));
    }
    100% {
      filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    }
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 1s ease-out 0.2s both;
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.4s both;
  }
  
  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* ============ PERFECT MOBILE-FRIENDLY BUTTON STYLES ============ */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    min-height: 44px; /* iOS touch target */
    min-width: 120px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }
  
  .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
  }
  
  .btn:hover::before,
  .btn:focus::before,
  .btn:active::before {
    transform: translateX(100%);
  }
  
  .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }
  
  .btn-primary:hover,
  .btn-primary:focus,
  .btn-primary:active {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    filter: brightness(1.1);
  }
  
  .btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    position: relative;
  }
  
  .btn-secondary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #667eea;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 50px;
  }
  
  .btn-secondary:hover::after,
  .btn-secondary:focus::after,
  .btn-secondary:active::after {
    transform: scaleX(1);
  }
  
  .btn-secondary:hover,
  .btn-secondary:focus,
  .btn-secondary:active {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }
  
  /* ============ SECTION STYLES ============ */
  .section {
    padding: 5rem 0;
    position: relative;
  }
  
  .section-dark {
    background: #1e293b;
  }
  
  .section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
  }
  
  .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-50%);
    border-radius: 2px;
  }
  
  /* ============ PERFECT MOBILE-FRIENDLY FEATURE CARDS ============ */
  .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }
  
  .feature {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
  }
  
  .feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.1) 0%,
      rgba(118, 75, 162, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
  }
  
  .feature::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
  }
  
  .feature:hover::before,
  .feature:focus::before,
  .feature:active::before {
    opacity: 1;
  }
  
  .feature:hover::after,
  .feature:focus::after,
  .feature:active::after {
    opacity: 1;
  }
  
  .feature:hover,
  .feature:focus,
  .feature:active {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  }
  
  .feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  }
  
  .feature:hover .feature-icon,
  .feature:focus .feature-icon,
  .feature:active .feature-icon {
    transform: scale(1.15) rotate(10deg);
    filter: drop-shadow(0 8px 16px rgba(102, 126, 234, 0.4));
  }
  
  .feature h3 {
    color: #f1f5f9;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    transition: color 0.3s ease;
  }
  
  .feature:hover h3,
  .feature:focus h3,
  .feature:active h3 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .feature p {
    color: #cbd5e1;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    transition: color 0.3s ease;
  }
  
  .feature:hover p,
  .feature:focus p,
  .feature:active p {
    color: #e2e8f0;
  }
  
  /* ============ ENHANCED CONTACT SECTION ============ */
  .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  
  .contact-info h3 {
    color: #f1f5f9;
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }
  
  .contact-info p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.7;
  }
  
  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #cbd5e1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 44px;
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.1);
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
  }
  
  .contact-item:hover,
  .contact-item:focus,
  .contact-item:active {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(10px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.3);
    color: #f1f5f9;
  }
  
  .contact-icon {
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20px;
    text-align: center;
  }
  
  .contact-item:hover .contact-icon,
  .contact-item:focus .contact-icon,
  .contact-item:active .contact-icon {
    transform: scale(1.3) rotate(5deg);
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.4));
  }
  
  /* ============ ENHANCED FORM STYLES ============ */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    background: rgba(51, 65, 85, 0.5);
    color: #f1f5f9;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus,
  .contact-form input:active,
  .contact-form textarea:active {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    background: rgba(51, 65, 85, 0.8);
  }
  
  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    color: #94a3b8;
    transition: color 0.3s ease;
  }
  
  .contact-form input:focus::placeholder,
  .contact-form textarea:focus::placeholder {
    color: #cbd5e1;
  }
  
  .contact-form textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  /* ============ FOOTER ============ */
  .footer {
    background: #0f172a;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
  }
  
  .footer p {
    color: #64748b;
    transition: color 0.3s ease;
  }
  
  .footer:hover p {
    color: #94a3b8;
  }
  
  /* ============ MOBILE-SPECIFIC ENHANCEMENTS ============ */
  @media (max-width: 768px) {
    .hamburger {
      display: flex;
    }
  
    .nav-menu {
      position: fixed;
      left: -100%;
      top: 70px;
      flex-direction: column;
      background: rgba(15, 23, 42, 0.98);
      width: 100%;
      text-align: center;
      transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
      backdrop-filter: blur(15px);
      padding: 2rem 0;
      border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    }
  
    .nav-menu.active {
      left: 0;
    }
  
    .nav-menu li {
      margin: 1rem 0;
    }
  
    .nav-link {
      padding: 1rem 2rem;
      margin: 0.5rem 1rem;
      border-radius: 12px;
      font-size: 1.1rem;
    }
  
    .hero-title {
      font-size: 2.5rem;
      line-height: 1.2;
    }
  
    .hero-subtitle {
      font-size: 1.1rem;
      padding: 0 1rem;
    }
  
    .hero-buttons {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      padding: 0 2rem;
    }
  
    .btn {
      width: 100%;
      max-width: 300px;
      padding: 1.2rem 2rem;
      font-size: 1.1rem;
    }
  
    .contact-content {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  
    .container {
      padding: 0 1rem;
    }
  
    .nav-container {
      padding: 0 1rem;
    }
  
    .features {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    .feature {
      padding: 2rem 1.5rem;
      margin: 0 0.5rem;
    }
  
    .section {
      padding: 3rem 0;
    }
  
    .contact-item {
      padding: 1.2rem;
      font-size: 1rem;
    }
  
    .contact-form input,
    .contact-form textarea {
      padding: 1.2rem;
      font-size: 1rem;
    }
  }
  
  @media (max-width: 480px) {
    .hero-title {
      font-size: 2rem;
    }
  
    .section-title {
      font-size: 2rem;
    }
  
    .hero-buttons {
      padding: 0 1rem;
    }
  
    .btn {
      font-size: 1rem;
      padding: 1rem 1.5rem;
    }
  
    .feature {
      padding: 1.5rem 1rem;
      margin: 0;
    }
  
    .feature-icon {
      font-size: 3rem;
    }
  
    .container {
      padding: 0 0.5rem;
    }
  }
  
  /* ============ ACCESSIBILITY & PERFORMANCE OPTIMIZATIONS ============ */
  
  /* High contrast mode support */
  @media (prefers-contrast: high) {
    .feature {
      border: 2px solid #667eea;
    }
  
    .btn-primary {
      border: 2px solid #ffffff;
    }
  }
  
  /* Reduced motion for accessibility */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  
    .hero-background {
      animation: none;
    }
  }
  
  /* Dark mode support (if user has dark mode preference) */
  @media (prefers-color-scheme: dark) {
    body {
      background: #0a0f1c;
    }
  
    .navbar {
      background: rgba(10, 15, 28, 0.95);
    }
  
    .section-dark {
      background: #1a202c;
    }
  }
  
  /* Focus visible for keyboard navigation */
  .nav-link:focus-visible,
  .btn:focus-visible,
  .feature:focus-visible,
  .contact-item:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
  }
  
  /* Smooth scrolling for all browsers */
  html {
    scroll-behavior: smooth;
  }
  
  /* Optimize font rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  
  /* GPU acceleration for animations */
  .feature,
  .btn,
  .nav-link,
  .hero-background {
    will-change: transform;
    transform: translateZ(0);
  }
  
  /* ============ SPECIAL MOBILE TOUCH EFFECTS ============ */
  
  /* iOS specific optimizations */
  @supports (-webkit-touch-callout: none) {
    .btn,
    .nav-link,
    .feature,
    .contact-item {
      -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
      -webkit-touch-callout: none;
      -webkit-user-select: none;
      user-select: none;
    }
  
    /* Prevent zoom on form inputs */
    .contact-form input,
    .contact-form textarea {
      font-size: 16px;
    }
  }
  
  /* Android specific optimizations */
  @media screen and (-webkit-min-device-pixel-ratio: 1) and (max-width: 768px) {
    .feature:active,
    .btn:active,
    .nav-link:active,
    .contact-item:active {
      background-color: rgba(102, 126, 234, 0.15);
    }
  }
  
  /* ============ PROGRESSIVE ENHANCEMENT ============ */
  
  /* Base styles work without hover, enhanced with hover */
  .feature {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Only apply hover effects on devices that support hover */
  @media (hover: hover) and (pointer: fine) {
    .feature:hover {
      transform: translateY(-15px) scale(1.02);
    }
  
    .btn:hover {
      transform: translateY(-3px) scale(1.02);
    }
  
    .nav-link:hover {
      transform: translateY(-2px);
    }
  }
  
  /* Touch-friendly alternatives for non-hover devices */
  @media (hover: none) and (pointer: coarse) {
    .feature:active {
      transform: scale(0.98);
      transition: transform 0.1s ease;
    }
  
    .btn:active {
      transform: scale(0.95);
      transition: transform 0.1s ease;
    }
  
    .nav-link:active {
      background: rgba(102, 126, 234, 0.2);
    }
  }
