* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fluid Typography Base */
html {
    font-size: 16px; /* Default size */
}

@media (max-width: 768px) {
    html { font-size: 14px; }
}

@media (max-width: 480px) {
    html { font-size: 12px; }
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 1rem 0;
    position: relative;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo-img {
    width: clamp(20px, 5vw, 25px); /* Scales dynamically */
    margin-right: 0.5rem;
}

.logo h1 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #f1c40f;
}

.logo p {
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    opacity: 0.9;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 0.5rem;
    border: none;
    border-radius: 15px 0 0 15px;
    width: clamp(100px, 30vw, 200px);
    outline: none;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.search-bar button {
    padding: 0.5rem 1rem;
    background-color: #f1c40f;
    border: none;
    border-radius: 0 15px 15px 0;
    cursor: pointer;
    color: #2c3e50;
}

/* Language Selector */
.language-selector {
    text-align: center;
    padding: 0.5rem 0;
}

.language-selector select {
    padding: 0.5rem 1rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
}

/* Navigation */
nav.sticky {
    background: rgba(44, 62, 80, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 clamp(0.5rem, 2vw, 1.5rem);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #f1c40f;
}

/* Hero Banner */
.hero-banner {
    text-align: center;
    padding: clamp(1rem, 5vw, 2rem) 1rem;
    background: url('https://via.placeholder.com/1300x200?text=UP+Services') no-repeat center/cover;
    color: white;
    animation: fadeIn 1.5s ease-in-out;
    max-width: 1300px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
}

.banner-content {
    max-width: 90%;
    margin: 0 auto;
}

.hero-banner h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.hero-banner p {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    margin-bottom: 1rem;
}

.hero-btn {
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1.5rem, 4vw, 2rem);
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Moving News Section */
.moving-news-section {
    max-width: 1300px;
    margin: clamp(1rem, 2vw, 2rem) auto;
    padding: clamp(0.5rem, 2vw, 1rem);
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    border-radius: 10px;
    text-align: center;
    color: white;
    overflow: hidden;
}

.moving-news-section h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.news-ticker {
    white-space: nowrap;
    overflow: hidden;
    animation: marquee 30s linear infinite;
}

.news-ticker a {
    margin-right: clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s;
}

.news-ticker a:hover {
    color: #f1c40f;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Services Section */
.services-section {
    max-width: 1300px;
    margin: clamp(2rem, 5vw, 3rem) auto;
    padding: clamp(1rem, 3vw, 2rem) 1rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #ecf0f1);
    border-radius: 20px;
}

.services-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #2c3e50;
    margin-bottom: clamp(1rem, 3vw, 2rem);
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

.service-card {
    padding: clamp(1rem, 3vw, 2rem) 1rem;
    border-radius: 20px;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card.green { background: linear-gradient(135deg, #27ae60, #219653); }
.service-card.blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.service-card.red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.service-card.yellow { background: linear-gradient(135deg, #f1c40f, #d4ac0d); }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.service-card i {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 1rem;
}

.service-btn {
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1.5rem, 3vw, 2rem);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    transition: background 0.3s;
}

.service-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Features Section */
.features-section {
    max-width: 1300px;
    margin: clamp(2rem, 5vw, 3rem) auto;
    padding: clamp(1rem, 3vw, 2rem) 1rem;
    text-align: center;
    background-color: #fff;
    border-radius: 20px;
}

.features-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #e74c3c;
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

.feature-item {
    padding: clamp(1rem, 3vw, 2rem);
    background: linear-gradient(135deg, #ecf0f1, #dfe4ea);
    border-radius: 15px;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: scale(1.05);
}

.feature-item i {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #666;
}

/* Content Section */
.content-section {
    max-width: 1300px;
    margin: clamp(2rem, 5vw, 3rem) auto;
    padding: clamp(1rem, 3vw, 2rem) 1rem;
    background: linear-gradient(135deg, #fff, #e9ecef);
    border-radius: 20px;
}

.content-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #2980b9;
    margin-bottom: 1rem;
}

.content-section p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #555;
    margin-bottom: 1rem;
}

/* Updates Section */
.updates-section {
    max-width: 1300px;
    margin: clamp(2rem, 5vw, 3rem) auto;
    padding: clamp(1rem, 3vw, 2rem) 1rem;
    text-align: center;
    background-color: #fff;
    border-radius: 20px;
}

.updates-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #e74c3c;
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

.update-card {
    padding: clamp(1rem, 3vw, 2rem);
    background: linear-gradient(135deg, #27ae60, #219653);
    color: white;
    border-radius: 15px;
    transition: transform 0.3s;
}

.update-card:hover {
    transform: scale(1.05);
}

.update-card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 0.5rem;
}

.update-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: clamp(1rem, 3vw, 2rem) 0;
    text-align: center;
    width: 100%;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: #f1c40f;
    margin-bottom: 0.5rem;
}

.footer-content p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    margin: 0 clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    transition: color 0.3s;
}

.social-links a:hover {
    color: #e74c3c;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    .search-bar {
        margin-top: 0.5rem;
    }
    nav {
        padding: 0.5rem 0;
    }
    nav a {
        margin: 0.5rem;
    }
    .hero-banner {
        padding: 1rem;
    }
    .services-grid, .features-grid, .updates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .news-ticker a {
        display: inline-block; /* Prevents overlap on very small screens */
        margin: 0.5rem;
    }
    .service-card, .feature-item, .update-card {
        padding: 1rem;
    }
}