/* Global styles for Top Ranking Service Ltd website */

/* Define CSS variables for a consistent colour palette inspired by modern Bengali web designs */
:root {
    --bg: #f9fafb;
    --surface: #ffffff;
    --text: #0f172a;
    --primary: #004466;
    --primary-dark: #00324d;
    --accent: #ff9933;
    --accent-dark: #e68000;
    --muted: #64748b;
    --border: #e2e8f0;
}

/* Import Google font Hind Siliguri for Bengali text */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;600;700&display=swap');

body {
    font-family: 'Hind Siliguri', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    scroll-behavior: smooth;
}

/* Header and navigation */
header {
    background: var(--primary);
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 8px;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--accent);
}

/* Hero section */
/* Hero sections have a gradient background with the accent colour */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--accent-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Primary buttons */
.hero .btn,
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.hero .btn:hover,
.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Sections */
section {
    padding: 40px 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #004466;
    text-align: center;
}

section p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: justify;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Icon inside service cards */
.service-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ff9933;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-card h3 {
    margin-top: 0;
    color: #004466;
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.service-card a {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.service-card a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Contact form styles */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
}

.contact-form button {
    background-color: #004466;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #00324d;
}

/* Footer */
footer {
    background-color: #002233;
    color: #ccc;
    padding: 20px 0;
    text-align: center;
}

footer .social-links a {
    color: #ccc;
    margin: 0 8px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #ffcc00;
}

.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.whatsapp-icon:hover {
    transform: scale(1.05);
}