/* Base Styles */
:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4bb543;
    --warning: #f0ad4e;
    --danger: #d9534f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
	height: 100%; /* Takes full height of navbar */
	display: flex;
	align-items: center; /* Vertically centers logo */
	padding: 5px 0; /* Optional: adds small vertical padding */
	font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
  height: 90%; /* Slightly smaller than navbar height */
  width: auto; /* Maintains aspect ratio */
  max-height: 60px; /* Optional: prevents oversized logos */
  transition: all 0.3s ease; /* Smooth resizing */
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 60px; /* Set your navbar height */
  padding: 0 20px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.placeholder-img {
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    min-height: 200px;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background-color: var(--primary);
    color: white;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-size: 42px;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 18px;
    opacity: 0.9;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    text-align: center;
}

.how-it-works h2 {
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--dark);
}

.steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    padding: 30px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.step p {
    color: #666;
}

/* Featured Surveys Section */
.featured-surveys {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.featured-surveys h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--dark);
}

.survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.survey-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.survey-card:hover {
    transform: translateY(-5px);
}

.survey-card-img {
    height: 150px;
    background-color: #eee;
    position: relative;
}

.survey-card-img .reward-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.survey-card-content {
    padding: 20px;
}

.survey-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.survey-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.survey-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.survey-card .btn-primary {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col a {
    display: block;
    color: #aaa;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-col i {
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        flex: none;
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .stats .container {
        flex-direction: column;
        gap: 30px;
    }
    
    .survey-grid {
        grid-template-columns: 1fr;
    }
}


/* Language Selector */
.language-selector {
  position: relative;
  margin-left: 20px;
}

.language-current {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 140px;
  padding: 8px 0;
  margin-top: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: none;
  z-index: 100;
}

.language-dropdown li {
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.language-dropdown li:hover {
  background: #f5f7fa;
}

.language-selector:hover .language-dropdown {
  display: block;
}
