/* Reset */

:root {
  --primary: #5B4CFF;
  --primary-dark: #4a3de0;
  --secondary: #0F172A;
  --accent: #7C3AED;
  --light: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --radius: 20px;
  --radius-lg: 28px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--light);
            color: var(--gray-700);
            line-height: 1.7;
            overflow-x: hidden;
        }
.container {
            width: 90%;
            max-width: 1350px;
            margin: 0 auto;
            padding: 0 20px;
        }



/* MAIN ROW: Camra aur Sidebar ko barabar rakhne ke liye */
.main-row {
  display: flex;
  flex-direction: row; /* Desktop par side-by-side */
  gap: 30px;
  justify-content: center;
  align-items: flex-start; /* Niche girne se rokay ga */
  width: 100%;
  flex-wrap: nowrap; /* Elements ko niche nahi jane dega */
}

/* CAMERA BOX */
.camera-box {
  position: relative;
  flex: 0 0 640px; /* Width fix rakhi hai */
  height: 480px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  background: #000;
}

#video, #canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror effect */
}

/* RESULT PANEL (Right Side) */
.result-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1; /* Bachi hui jagah use karega */
  max-width: 450px;
}

/* CARD FIX: Width 140% se hata kar 100% kar di */
.card {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  width: 100%; 
  border-radius: 15px;
  border: 1px solid #b3e0ff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card h3 {
  color: #0077cc;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

#gesture {
  font-size: 1.8rem;
  font-weight: 700;
  color: #003366;
  text-transform: uppercase;
}

/* SENTENCE BOX FIX: Scroll aur Wrap logic */
#sentence {
  font-size: 1.3rem;
  max-height: 150px; /* Zyada words hone par box bada nahi hoga */
  overflow-y: auto;  /* Scroll bar aa jayega */
  color: #0099cc;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding-right: 5px;
  line-height: 1.4;
}

/* Scrollbar styling */
#sentence::-webkit-scrollbar {
  width: 6px;
}
#sentence::-webkit-scrollbar-thumb {
  background: #b3e0ff;
  border-radius: 10px;
}

.buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #0077cc;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #0d7ab1;
}

/* RESPONSIVE: Mobile par sab kuch line mein aa jaye */
@media(max-width:1050px){
  .main-row {
    flex-direction: column;
    align-items: center;
  }
  .camera-box {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 4/3;
  }
  .result-panel {
    width: 100%;
    max-width: 600px;
  }
}

features {
  padding: 140px 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px;
}

.feature-card {
  background: white;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid #e4e0ff;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
  transform: translateY(-20px);
  box-shadow: 0 30px 60px rgba(91, 76, 255, 0.18);
}

.feature-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.quote {
  margin-top: 32px;
  padding: 28px;
  background: linear-gradient(135deg, #f0e8ff, #e0f2fe);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--accent);
  border-left: 6px solid var(--primary);
  font-size: 1.1rem;
}

 /* Footer */
        footer {
            background: var(--gray-900);
            color: white;
            padding: 100px 0 50px;
        }
        .footer-content {
            display: grid;
            grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
            gap: 60px;
            margin-bottom: 60px;
        }
        .footer-column h3 {
            font-size: 1.5rem;
            margin-bottom: 28px;
            color: white;
            font-weight: 700;
        }
        .footer-links a {
            display: block;
            color: #cbd5e1;
            text-decoration: none;
            margin-bottom: 14px;
            transition: var(--transition);
        }
        .footer-links a:hover {
            color: white;
            padding-left: 6px;
        }
        .social-links {
            display: flex;
            gap: 16px;
            margin-top: 24px;
        }
        .social-links a {
            width: 48px; height: 48px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }
        /* --- Professional Social Media Icons --- */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-card {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05); /* Halka glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; /* Thora rounded square look */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
    padding: 10px;
}

.social-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}
/* --- Language Selector Styling --- */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

#lang-select {
    appearance: none; /* Default arrow hatane ke liye */
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    padding: 8px 35px 8px 15px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    backdrop-filter: blur(10px);
}

/* Hover aur Focus Effect */
#lang-select:hover {
    border-color: var(--primary);
    background: rgba(91, 76, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#lang-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 76, 255, 0.2);
}

/* Custom Dropdown Arrow (Unicode ya Icon) */
.language-selector::after {
    content: '\f0ac'; /* Global Icon (Font Awesome) */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--primary);
    pointer-events: none;
    transition: var(--transition);
}

/* Jab select open ho to icon thora move kare */
.language-selector:hover::after {
    transform: translateY(-50%) scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #lang-select {
        padding: 6px 30px 6px 12px;
        font-size: 0.85rem;
    }
}

/* Hover Effects */
.social-card:hover {
    transform: translateY(-5px);
    background: var(--primary); /* Hover par primary color */
    border-color: var(--primary-light);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.social-card:hover img {
    filter: brightness(1) invert(0); /* Hover par asli colors wapis aa jayenge */
    transform: scale(1.1);
}

/* Specific Hover Colors (Optional: Agar alag alag colors chahiye hon) */
.social-card.fb:hover { background: #1877F2; }
.social-card.insta:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-card.linkedin:hover { background: #0077b5; }
.social-card.github:hover { background: #333; }

        .newsletter-form {
            display: flex;
            gap: 14px;
            margin-top: 24px;
        }
        .newsletter-form input {
            flex: 1;
            padding: 16px 20px;
            border: none;
            border-radius: var(--radius);
            font-size: 1rem;
            background: rgba(255,255,255,0.1);
            color: white;
        }
        .newsletter-form input::placeholder { color: #94a3b8; }
        .newsletter-form button {
            padding: 16px 28px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: var(--radius);
            cursor: pointer;
            font-weight: 700;
        }
        .copyright {
            text-align: center;
            padding-top: 50px;
            border-top: 1px solid rgba(255,255,255,0.15);
            color: #94a3b8;
            font-size: 0.95rem;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .about-content, .footer-content { grid-template-columns: 1fr; }
            .hero h1 { font-size: 3.8rem; }
        }
        @media (max-width: 768px) {
            .top-bar .container { justify-content: center; }
            .top-bar-actions { flex-direction: column; gap: 12px; }
            .top-bar-btn { width: 100%; max-width: 280px; justify-content: center; }
            .hamburger { display: block; }
            .nav-links {
                position: fixed;
                top: 52px; right: -100%;
                width: 88%;
                height: calc(100vh - 52px);
                background: white;
                flex-direction: column;
                align-items: center;
                padding-top: 100px;
                transition: right 0.45s ease;
                box-shadow: -20px 0 50px rgba(0,0,0,0.15);
            }
            .nav-links.active { right: 0; }
            .hero { padding: 200px 0 120px; }
            .hero h1 { font-size: 3.2rem; }
            .hero-buttons { flex-direction: column; align-items: center; }
            .hero-buttons .btn { width: 100%; max-width: 340px; }
            /* LOGO ICON SIZE ADJUSTMENT - 75PX HEIGHT FOR MOBILE IS KEPT */
            .logo-img {
                height: 75px; 
            }
        }
            .footerlogo {
            font-size: 2rem;
            font-weight: 900;
            color:  #ffffff;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 9px;
            letter-spacing: -0.8px;
        }
        /* Hamburger to X Animation */
.hamburger {
  position: relative;
  z-index: 1001;
}
.hamburger.active i {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.hamburger.active i::before {
  content: "\f00d" !important; /* X icon */
}