:root {
      --primary-color: #667eea;
      --secondary-color: #764ba2;
      --accent-color: #f093fb;
      --dark-color: #2d3436;
      --light-color: #ddd6fe;
      --white: #ffffff;
      --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
      --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
      --shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Arial', sans-serif;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
      color: #333;
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* Header - matching main site */
    header {
      position: fixed;
      top: 0;
      width: 100%;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      z-index: 1000;
      transition: all 0.3s ease;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 5%;
      max-width: 1200px;
      margin: 0 auto;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: inherit;
    }

    .logo-icon {
      width: 40px;
      height: 40px;
      background: var(--gradient-1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: bold;
      font-size: 18px;
      position: relative;
      overflow: hidden;
    }

    .logo-icon::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
      animation: shimmer 3s infinite;
    }

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

    .logo h1 {
      font-size: 1.8rem;
      background: var(--gradient-1);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

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

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

    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--gradient-1);
      transition: width 0.3s ease;
    }

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

    .nav-links a:hover {
      color: var(--primary-color);
    }

    /* Tool Section */
    .tool-section {
      padding: 8rem 5% 4rem;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .tool-container {
      max-width: 900px;
      width: 100%;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: 30px;
      padding: 4rem 3rem;
      box-shadow: 0 30px 60px rgba(0,0,0,0.2);
      position: relative;
      overflow: hidden;
    }

    .tool-container::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: var(--gradient-1);
    }

    .breadcrumb {
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 1rem;
    }

    .breadcrumb a {
      color: var(--primary-color);
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .breadcrumb a:hover {
      color: var(--secondary-color);
    }

    h1 {
      text-align: center;
      font-size: 3rem;
      margin-bottom: 1rem;
      background: var(--gradient-1);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: fadeInUp 1s ease-out;
    }

    p.description {
      text-align: center;
      color: #666;
      margin-bottom: 3rem;
      font-size: 1.1rem;
      animation: fadeInUp 1s ease-out 0.2s both;
    }

    .input-section {
      margin-bottom: 2rem;
      animation: fadeInUp 1s ease-out 0.4s both;
    }

    .input-label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 600;
      color: var(--dark-color);
    }

    textarea {
      width: 100%;
      padding: 1.5rem;
      border-radius: 15px;
      border: 2px solid #e0e0e0;
      font-size: 1rem;
      margin-bottom: 2rem;
      resize: vertical;
      transition: all 0.3s ease;
      background: rgba(255, 255, 255, 0.8);
    }

    textarea:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
      transform: translateY(-2px);
    }

    .buttons {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      margin-bottom: 2rem;
      animation: fadeInUp 1s ease-out 0.6s both;
    }

    .btn {
      padding: 1rem 1.5rem;
      border: none;
      border-radius: 25px;
      color: white;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      font-size: 1rem;
    }

    .btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
      transition: left 0.5s ease;
    }

    .btn:hover::before {
      left: 100%;
    }

    .btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    }

    .btn:active {
      transform: translateY(-1px);
    }

    .btn-title { background: var(--gradient-1); }
    .btn-sentence { background: var(--gradient-3); }
    .btn-upper { background: var(--gradient-2); }
    .btn-lower { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); color: #333; }

    .output-section {
      animation: fadeInUp 1s ease-out 0.8s both;
    }

    .copy-btn {
      display: block;
      margin: 1rem auto 0;
      background: var(--dark-color);
      color: white;
      padding: 1rem 2.5rem;
      border: none;
      border-radius: 30px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 1rem;
    }

    .copy-btn:hover {
      background: var(--primary-color);
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

    .copy-feedback {
      text-align: center;
      color: var(--primary-color);
      font-weight: 600;
      margin-top: 0.5rem;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .copy-feedback.show {
      opacity: 1;
    }

    /* SEO Content Section - improved styling */
    .seo-content {
      max-width: 1000px;
      margin: 2rem auto;
      background: rgba(255, 255, 255, 0.95);
      padding: 3rem;
      border-radius: 30px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.1);
      color: #333;
      backdrop-filter: blur(10px);
    }

    .seo-content h2 {
      font-size: 2.2rem;
      margin-bottom: 1.5rem;
      background: var(--gradient-1);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .seo-content h3 {
      font-size: 1.5rem;
      margin-top: 2.5rem;
      margin-bottom: 1rem;
      color: var(--primary-color);
    }

    .seo-content p {
      margin-bottom: 1.5rem;
      font-size: 1.1rem;
      line-height: 1.7;
    }

    .seo-content ul {
      list-style: none;
      padding-left: 0;
    }

    .seo-content ul li {
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 1rem;
      font-size: 1.1rem;
    }

    .seo-content ul li::before {
      content: '✓';
      background: var(--gradient-1);
      color: white;
      width: 25px;
      height: 25px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      flex-shrink: 0;
    }

    /* Footer - matching main site */
    footer {
      background: #1a1a1a;
      color: white;
      padding: 4rem 5% 2rem;
      margin-top: 4rem;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 3rem;
      margin-bottom: 2rem;
    }

    .footer-section h3 {
      margin-bottom: 1.5rem;
      color: var(--accent-color);
      font-size: 1.3rem;
    }

    .footer-section p {
      margin-bottom: 1rem;
      color: #ccc;
      line-height: 1.6;
    }

    .footer-section ul {
      list-style: none;
    }

    .footer-section ul li {
      margin-bottom: 0.8rem;
    }

    .footer-section ul li a {
      color: #ccc;
      text-decoration: none;
      transition: color 0.3s ease;
      position: relative;
    }

    .footer-section ul li a:hover {
      color: var(--accent-color);
    }

    .footer-section ul li a::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 1px;
      background: var(--accent-color);
      transition: width 0.3s ease;
    }

    .footer-section ul li a:hover::after {
      width: 100%;
    }

    .footer-bottom {
      border-top: 1px solid #333;
      padding-top: 2rem;
      text-align: center;
      color: #999;
    }

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

    @keyframes float {
      0% { transform: translateY(0px) rotate(0deg); }
      50% { transform: translateY(-20px) rotate(180deg); }
      100% { transform: translateY(0px) rotate(360deg); }
    }

    /* Background animation */
    body::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:0" /></radialGradient></defs><circle cx="200" cy="200" r="3" fill="rgba(255,255,255,0.4)"/><circle cx="800" cy="300" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="400" cy="600" r="4" fill="rgba(255,255,255,0.2)"/><circle cx="600" cy="800" r="2" fill="rgba(255,255,255,0.4)"/><circle cx="100" cy="500" r="3" fill="rgba(255,255,255,0.3)"/></svg>');
      animation: float 20s infinite linear;
      pointer-events: none;
      z-index: -1;
    }

    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      h1 { font-size: 2.2rem; }
      .tool-container { padding: 2rem 1.5rem; }
      .buttons { grid-template-columns: 1fr; }
      .btn { font-size: 0.9rem; padding: 0.8rem 1.2rem; }
      .seo-content { padding: 2rem 1.5rem; }
      .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    }