/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f6fa;
  color: #1e1e1e;
  line-height: 1.6;
}

/* Header */
.main-header {
  position: fixed;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 1rem 0.25rem 1em;
  background: #2c2c2c;
  color: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo h1 {
  font-size: 1.8rem;
}

.logo img {
  width: 48px;
  height: 48px;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 2rem 1rem;
  background: linear-gradient(140deg, #494949, #2c2c2c);
  color: #fff;
  flex-wrap: wrap;
}

.hero-content {
  max-width: 800px;
}

.hero-content h2 {
  
  font-size: 30px;
}

.gradientTxt{
  margin-bottom: 1rem;
  background: linear-gradient(287deg, #006aff, #00ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-family: Arial, sans-serif;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #ffd700;
  color: #1e1e1e;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #ffc107;
}

/* Languages Section */
.languages {
  padding: 4rem 2rem;
  background: #f5f6fa;
  display: flex;
  justify-content: center;
}

/* Grid layout for cards */
.languages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  max-width: 500px;
  width: 100%;
}

/* Card Style */
.languages .card {
  background: rgba(22,22,22,0.65);
  border: 3px solid rgba(250,250,250,0.85);
  border-radius: 12px;
  width: 300px;
  height: 200px;
  padding: 1rem 0;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

/* Icon */
.languages .card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Title */
.languages .card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
}

/* Hover Effect */
.languages .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 35px rgba(79, 70, 229, 0.25);
}

/* Active / Click effect */
.languages .card:active {
  transform: translateY(-3px) scale(0.98);
}

/* Features */
.features {
  padding: 4rem 2rem;
  text-align: center;
  background: #fff;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature {
  background: #2c2c2c;
  color: #fff;
  padding: 2rem 1rem;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 0.8rem;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* CTA Section */
.cta {
  padding: 4rem 2rem;
  background: #2c2c2c;
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: #1e1e1e;
  color: #fff;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .languages {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
  .languages {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}