/* ==========================================================================
   Elegant Redesign for eDataWorker Portfolio
   ========================================================================== */

/* Reset & Base Styles */
:root {
  --primary: #4361ee;
  --primary-dark: #3a0ca3;
  --primary-light: #4895ef;
  --secondary: #f72585;
  --accent: #4cc9f0;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --success: #4ade80;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 40px rgba(67, 97, 238, 0.15);
  --radius: 12px;
  --gradient: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  --gradient-secondary: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
  --gradient-accent: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #f9fafc;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(90deg, #fff 0%, #f0f4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--dark);
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray);
}

/* Header */
header {
  background: var(--gradient);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: cover;
}

header .container {
  position: relative;
  z-index: 1;
}

header p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.cta, .cta-outline {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  margin: 0 10px;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta {
  background: var(--secondary);
  color: white;
  box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

.cta:hover {
  background: #d1146c;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(247, 37, 133, 0.4);
}

.cta-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.cta-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: white;
}

/* Sections */
section {
  padding: 100px 0;
}

section:nth-child(even) {
  background-color: var(--light);
}

/* About Section */
#about {
  text-align: center;
}

#about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card ul {
  list-style: none;
  margin-top: 15px;
  flex-grow: 1;
}

.card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
  position: relative;
  padding-left: 25px;
}

.card li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.card li:last-child {
  border-bottom: none;
}

/* ================= LOGO GALLERY ================= */
#logoGallery,
.logo-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 20px !important;
  align-items: start;
}

#logoGallery img {
  width: 100% !important;
  height: auto !important;       /* keep original aspect ratio */
  object-fit: contain !important; /* no cropping */
  background: white;
  border-radius: 10px;
  padding: 10px;
}

/* ================= IMAGE POPUP ================= */
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.9);
}

.popup-content {
  display: block;
  margin: auto;
  max-width: 95%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


/* ================= TESTIMONIAL GALLERY ================= */
#testimonialGallery,
.testimonial-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 20px !important;
  align-items: flex-start;
}

#testimonialGallery img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 10px;
}

/* ==========================================================================
   Blog & Article Specific Styles
   ========================================================================== */

.blog-post {
    max-width: 850px; /* Optimal reading width */
    margin: -50px auto 50px; /* Pulls the post up over the header gradient */
    background: white;
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}

.blog-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.blog-content h2 {
    text-align: left;
    margin: 2.5rem 0 1.2rem;
    font-size: 2rem;
    color: var(--primary-dark);
}

.blog-content h2::after {
    left: 0;
    transform: none; /* Align underline to the left for blog style */
    width: 50px;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

/* Enhanced Blog Images */
.blog-image-container {
    margin: 40px -50px; /* Makes images slightly wider than text */
    text-align: center;
}

.blog-image-container img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.blog-image-container figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}

/* Post Meta Info */
.post-header-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
    color: var(--gray);
}

.blog-conclusion {
    margin-top: 50px;
    padding: 40px;
    background: var(--light);
    border-radius: var(--radius);
    border-left: 6px solid var(--primary);
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-post {
        margin: -30px 15px 30px;
        padding: 30px 20px;
    }
    .blog-image-container {
        margin: 30px 0;
    }
    .blog-content h2 {
        font-size: 1.6rem;
    }
}

/* Price Cards */
.price-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--light-gray);
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-card ul {
  list-style: none;
  margin: 25px 0;
}

.price-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
}

.price-card li:last-child {
  border-bottom: none;
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 25px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.contact-form button {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 40px 0;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  header { padding: 80px 0; }
  section { padding: 80px 0; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
  .cta, .cta-outline {
    display: block;
    margin: 10px auto;
    max-width: 250px;
  }
  .contact-form { padding: 30px 20px; }
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  header { padding: 60px 0; }
  section { padding: 60px 0; }
  .card, .price-card { padding: 25px 20px; }
}




