/*
 * Global stylesheet for InternetPrices.in
 * This file defines the visual identity of the website, including typography,
 * colours and layout. It uses CSS variables to keep the design consistent
 * throughout the pages and can be easily customised if you decide to tweak
 * the look and feel later on.
 */

/* Colour palette and font settings */
:root {
  --primary-color: #673ab7;      /* Deep purple used for headers and accents */
  --secondary-color: #00bcd4;    /* Cyan used for buttons and highlights */
  --background-color: #ffffff;   /* Default page background */
  --text-color: #212121;         /* Primary text colour */
  --light-gray: #f5f5f5;        /* Light background for alternating sections */
  --dark-gray: #424242;         /* Darker shade for footer */
  --border-radius: 4px;          /* Consistent border radius */
  --transition-speed: 0.3s;      /* Ease animations */
  --font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* Reset some basic elements */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--primary-color);
}

/* Header & Navigation */
header {
  width: 100%;
  background-color: var(--background-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.navbar nav li {
  position: relative;
}

.navbar nav a {
  font-weight: 500;
  padding: 0.5rem 0;
}

.navbar nav a:hover,
.navbar nav .active {
  color: var(--primary-color);
}

/* Hero section */
.hero {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary-color);
  color: #ffffff;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color var(--transition-speed);
}

.btn-primary:hover {
  background-color: var(--primary-color);
}

/* Section styling */
section {
  padding: 4rem 1rem;
}

.section-alt {
  background-color: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary-color);
}

/* Comparison table */
.comparison-table-container {
  overflow-x: auto;
  max-width: 1200px;
  margin: 0 auto;
}

#comparison-table {
  width: 100%;
  border-collapse: collapse;
}

#comparison-table thead {
  background-color: var(--primary-color);
  color: #ffffff;
}

#comparison-table th, #comparison-table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
}

#comparison-table tbody tr:nth-child(even) {
  background-color: var(--light-gray);
}

#comparison-table a.btn-link {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: #ffffff;
  padding: 2rem 1rem;
}

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

footer h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer li {
  margin-bottom: 0.5rem;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar nav ul {
    flex-direction: column;
    background-color: var(--background-color);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    border: 1px solid #eee;
    display: none;
  }
  .navbar nav ul.open {
    display: flex;
  }
  .navbar .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
  }
}

@media (min-width: 769px) {
  .navbar .menu-toggle {
    display: none;
  }
}