/* ZdGram Dock Website Styles */

:root {
  --dark-bg: #1a1a1a;
  --primary-teal: #00a99d;
  --secondary-green: #76c83f;
  --white-text: #ffffff;
  --light-gray: #cccccc;
  --medium-gray: #333333;
  --darker-gray: #222222;
  --font-main: 'Tahoma', 'Arial', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--dark-bg);
  color: var(--white-text);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-teal);
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  font-weight: 600;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.6em; }

h1 {
    text-align: left;
    font-size: 2.2em;
    font-weight: bold;
    color: var(--primary-teal);
    margin-bottom: 20px;
}

a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-green);
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 10px;
}

ul {
  list-style: none;
  padding-right: 20px;
}

ul li::before {
  content: "\2022";
  color: var(--primary-teal);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  margin-right: 0.5em;
}

/* Header Styles */
header {
  background-color: var(--darker-gray);
  padding: 10px 0;
  border-bottom: 3px solid var(--primary-teal);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 5px; 
  padding-bottom: 5px; 
  padding-left: 10px;  
  padding-right: 10px;
}

header img.logo {
  height: 55px;
  width: auto;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

header nav ul li {
  margin-right: 25px;
  margin-left: 0;
}
header nav ul li::before {
  content: none; 
}

header nav ul li a {
  color: var(--white-text);
  font-weight: bold;
  font-size: 1.1em;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active
{
  color: var(--primary-teal);
  border-bottom-color: var(--secondary-green);
  text-decoration: none;
}

.hero {
  padding: 80px 0 60px 0;
  text-align: center;
  background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.95)), url('../images/background_placeholder.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--medium-gray);
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 15px;
  color: var(--white-text);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--light-gray);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 14px 35px;
  background-color: var(--primary-teal);
  color: var(--white-text);
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
}

.cta-button:hover {
  background-color: var(--secondary-green);
  color: var(--white-text);
  text-decoration: none;
  transform: translateY(-2px);
}

section {
  padding: 60px 0;
}

section:nth-of-type(odd) {
  background-color: var(--darker-gray);
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-teal);
    margin: 10px auto 0;
}

/* Services Section */
.services ul li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* About Section */
#about p {
    font-size: 1.2em;
    line-height: 1.8;
    text-align: justify; 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ccc;
}

#about strong {
    color: var(--primary-teal);
    font-weight: bold;
}

#about h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-teal);
}

/* Contact Section */
.contact ul {
    padding-right: 0;
}

.contact ul li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact ul li::before {
    content: none;
}

.contact a {
    font-weight: bold;
}

/* Contact Form Styles */
form {
    max-width: 600px;
    margin: 30px auto 0 auto;
    padding: 30px;
    background-color: var(--dark-bg);
    border-radius: 8px;
    border: 1px solid var(--medium-gray);
}

form label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-gray);
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--medium-gray);
    background-color: var(--darker-gray);
    color: var(--white-text);
    border-radius: 4px;
    box-sizing: border-box;
    font-family: var(--font-main);
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 5px rgba(0, 169, 157, 0.5);
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form input[type="submit"] {
    /* Use cta-button styles */
    width: 100%;
}

/* Text Logo Styling */
#txtlogo {
    font-size: 2.2em;
    font-weight: bold;
    color: #4CAF50;
    line-height: 1.5; 
    padding: 0; 
    margin-bottom: 20px;
}

/* Services Section */
#services .service-item {
    background-color: #2a2a2a;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-right: 5px solid #4CAF50;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added for JS effect */
}

#services .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.2);
}

#services .service-item h3 {
    margin-top: 0;
}

/* Footer Styles */
footer {
  background-color: #111; /* Darkest */
  color: var(--light-gray);
  text-align: center;
  padding: 30px 0;
  margin-top: 40px;
  border-top: 1px solid var(--medium-gray);
}

footer p {
    margin: 5px 0;
}

footer a {
 color: var(--light-gray);
 margin: 0 10px;
}

footer a:hover {
 color: var(--primary-teal);
 text-decoration: underline;
}

/* Responsive Design (Basic Example) */
@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    .hero h1 { font-size: 2.5em; }
    .hero p { font-size: 1.1em; }
}

@media (max-width: 480px) {
    header img.logo {
        height: 45px;
    }
    header nav ul li a {
        font-size: 1em;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    section {
        padding: 40px 0;
    }
    
}

