:root {
    /* Primary colors */
    --primary: #4a6cf7;
    --primary-dark: #3a5af0;
    --secondary: #09f1b8;
    --accent: #ff00d2;

    /* Backgrounds */
    --bg-light: #f8f9ff;
    --bg-dark: #1a1d2e;
    --card-bg: #ffffff;

    /* Text */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Borders */
    --border-radius: 12px;
    --border-color: #e2e8f0;

    /* Animation defaults */
    --anim-duration: 0.5s;
    --anim-timing: ease;
    --anim-delay: 0s;
    --anim-repeat: 1;
}

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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

::selection {
    background: #8fe9a5d5;
    color: #fff;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 50px 0;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Header */
header {
    background: var(--bg-dark);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1d2e 0%, #2d325a 100%);
    width: 100%;
    height: 100%;
    --color: rgba(49, 48, 48, 0.3);
    background-color: #1a1d2e;
    background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent);
    background-size: 55px 55px;
    color: white;
    padding: 50px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.hero-demo {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(74, 108, 247, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-icon i {
    font-size: 30px;
    color: var(--primary);
}

/* Animation Showcase */
.showcase {
    background: linear-gradient(to bottom, var(--bg-light) 0%, #f0f4ff 100%);
}

.category-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.animations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.animation-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.animation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.animation-preview {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #e748ec, #f2d75e);
    position: relative;
    overflow: hidden;
}

.animation-demo {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.animation-info {
    padding: 20px;
}

.animation-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.animation-usage {
    background: #f8f9ff;
    padding: 10px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    margin: 10px 0;
    overflow-x: auto;
    color: var(--primary);
    border: 1px dashed var(--border-color);
}

/* Installation */
.install {
    background: var(--bg-dark);
    color: white;
}

.install h2,
.install p {
    color: white;
}

.install h2:after {
    background: var(--secondary);
}

.code-block {
    background: #2d325a;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    overflow-x: auto;
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: #e2e8f0;
    box-shadow: var(--shadow-md);
}

.code-block code {
    display: block;
}

.code-comment {
    color: #64748b;
}

.code-tag {
    color: #ff79c6;
}

.code-attr {
    color: #50fa7b;
}

.code-value {
    color: #f1fa8c;
}

/* Usage Examples */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.example-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.example-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
}

.example-preview {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.example-demo {
    width: 120px;
    height: 120px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.example-code {
    padding: 20px;
    background: #f8f9ff;
    border-top: 1px solid var(--border-color);
    font-family: monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 900px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        text-align: center;
        padding: 80px 0;
    }

    .hero-demo {
        display: none;
    }

    .hero-btns {
        justify-content: center;
    }
}

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

    h1 {
        font-size: 2.3rem;
    }

    section {
        padding: 60px 0;
    }
}


.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* Toggle Button */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

/* Responsive Nav */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--bg-dark);
        position: absolute;
        top: 100%;
        right: 20px;
        width: 200px;
        padding: 20px;
        box-shadow: var(--shadow-md);
        border-radius: var(--border-radius);
        z-index: 999;
    }

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

    .menu-toggle {
        display: block;
    }
}

.heading {
    color: transparent;
    /* background: linear-gradient(90deg,#14b8a6 , #fcac23 50%, #347e85 98%); */
    background: linear-gradient(to right, #97fde3, #71c2f2, #ff00d0ea, #f5d93e, #7df7e9, #f0c780 50%, #95e0e6 98%);
    ;
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 300% 100%;
    animation: animat 6s ease infinite;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 900;
    -webkit-text-stroke-color: transparent;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

.topb {
    height: 3px;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: #f5d93e;
    width: 100%;
    transform-origin: left;
    scale: 0 1;
    animation: scroll-watch linear;
    animation-timeline: scroll();
}

@keyframes scroll-watch {
    to {
        scale: 1 1;
    }
}

.animation-icon {
    font-size: 40px;
}

.animation-item{
    background-color: rgb(250, 251, 239);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 5px;
    margin: 5px 0;
    border: 1px solid rgb(224, 223, 223);
}

.border-animation-grid {
  display: grid;
  gap: 1rem; /* gap between grid items */
  grid-template-columns: repeat(1, 1fr); /* Default: 1 column */

  /* Medium screen (≥768px) */
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Large screen (≥1024px) */
  @media (min-width: 1024px) {
    grid-template-columns: repeat(3, 1fr);
  }
}


.example-section {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  background: #f9f9f9;
}

.example-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-icon {
  font-size: 2.5rem;
  color: #09f1b8;
  margin-bottom: 1rem;
}

.example-heading {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.example-text {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.example-button {
  background-color: #09f1b8;
  color: #fff;
  font-size: 16px;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.github{
font-size: 34px;
}

.footicon{
    font-size: 28px;
    margin-right: 12px;
    color: #fff;
}