/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f7f9fa;
  color: #23272f;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  color: #2c3e50;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
  padding-left: 0.5em; /* Added left padding for better alignment */
}

/* Ensure consistent padding for h2 in sections */
section > h2 {
  padding-left: 0.75em; /* Slightly more padding for section headings */
}

/* Adjust for mobile */
@media (max-width: 768px) {
  section > h2 {
    padding-left: 0.5em; /* Slightly less padding on mobile */
  }
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}

p, li, span {
  font-size: 1.05rem;
}

section {
  width: 100%;
  margin: 0 auto 2.5em auto;
  padding: 2em 1em;
  background: #fff;
  box-shadow: 0 2px 16px rgba(44,62,80,0.06);
}

/* Full-width for Services and Skills sections */
.services, .skills-expertise {
  width: 100vw;
  margin-bottom: 2.5em;
  padding: 2em 2vw;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}
.services .service-grid, .skills-expertise .skills-grid {
  width: 100%;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}
.skills-card, .service-card {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.09);
  margin-bottom: 2em;
  max-width: none;
  padding-left: 1em;
  padding-right: 1em;
}




/* Navbar */
header {
  width: 100%;
  background: #23272f;
  color: #fff;
  padding: 1.2em 0;
  box-shadow: 0 1px 10px rgba(44,62,80,0.07);
  text-align: center;
}
header h1 {
  color: #fff;
  letter-spacing: 2px;
  font-size: 2.2rem;
}
header p {
  color: #b3b8c5;
  font-size: 1.2rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(120deg,#23272f 60%,#3498db 100%);
  color: #fff;
  text-align: center;
  margin-top: 2em;
  box-shadow: 0 4px 24px rgba(44,62,80,0.13);
}
.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 1em;
}
.hero p {
  color: #eaf6fb;
  font-size: 1.3rem;
  margin-bottom: 1.5em;
}
.hero-img {
  max-width: 220px;
  margin-bottom: 2em;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(44,62,80,0.10);
}

/* Skills & Expertise Section */
.skills-expertise {
  background: #f5f7fa;
  border: none;
  box-shadow: none;
  margin-bottom: 2em;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 2em;
  justify-content: space-between;
}
.skills-card {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex: 0 1 calc(50% - 0.5em);
  box-sizing: border-box;
}

/* Responsive adjustments for skills grid */
@media (max-width: 768px) {
  .skills-card {
    flex: 0 1 100%;
    margin-bottom: 1.5em;
  }
  .skills-card:last-child {
    margin-bottom: 0;
  }
  .skills-card table {
    font-size: 0.9rem;
  }
}

.skills-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
  padding: 2em 1.2em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.skills-card:hover {
  box-shadow: 0 6px 24px rgba(44,62,80,0.13);
}
.skills-card h3 {
  color: #3498db;
  margin-bottom: 0.7em;
}
/* Common list styles for all sections */
.skills-card ul,
.service-card ul,
.work-item ul,
.cta ul,
.tech-category ul {
  margin: 1em 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.skills-card ul li,
.service-card ul li,
.work-item ul li,
.cta ul li,
.tech-category ul li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 0.75em;
  line-height: 1.5;
  color: #243148;
  transition: all 0.2s ease;
}

.skills-card ul li:before,
.service-card ul li:before,
.work-item ul li:before,
.cta ul li:before,
.tech-category ul li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: #3498db;
  font-size: 1.5em;
  line-height: 1;
  top: 0;
}

.skills-card ul li:hover,
.service-card ul li:hover,
.work-item ul li:hover,
.cta ul li:hover,
.tech-category ul li:hover {
  color: #2c3e50;
  transform: translateX(4px);
}
.skills-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  font-size: 0.98rem;
}
.skills-card th, .skills-card td {
  border: 1px solid #e0e4ea;
  padding: 7px 8px;
  text-align: left;
}
.skills-card th {
  background: #eaf6fb;
  color: #3498db;
}

/* Services Section */
.services {
  background: #f5f7fa;
  border: none;
  box-shadow: none;
}
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 2em;
  justify-content: space-between;
}
.service-card {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex: 0 1 calc(50% - 0.5em);
  box-sizing: border-box;
}

/* Responsive adjustments for service cards */
@media (max-width: 768px) {
  .service-card {
    flex: 0 1 100%;
    margin-bottom: 1.5em;
  }
  .service-card:last-child {
    margin-bottom: 0;
  }
}



.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
  padding: 2em 1.2em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.service-card:hover {
  box-shadow: 0 6px 24px rgba(44,62,80,0.13);
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 1em;
}
.tech-stack span {
  background: #3498db22;
  color: #3498db;
  border-radius: 8px;
  padding: 0.3em 0.8em;
  font-size: 0.98rem;
  font-weight: 600;
}

/* Technology Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  margin-top: 2em;
  width: 100%;
}

@media (max-width: 900px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tech-grid {
    grid-template-columns: 1fr;
    padding: 0 5px;
  }
  /* Ensure consistent padding for all grid items */
  .tech-category {
    margin: 0 5px 1em;
  }
}
.tech-category {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tech-category {
  background: #f0f4f8;
  border-radius: 10px;
  padding: 1.2em 1em;
  box-shadow: 0 1px 4px rgba(44,62,80,0.05);
}
.tech-category h3 {
  color: #3498db;
  margin-bottom: 0.5em;
}

/* Work Section */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2em;
  margin-top: 2em;
  width: 100%;
}
.work-item {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  background: #f8fafb;
  border-radius: 10px;
  padding: 1.4em 1em;
  box-shadow: 0 1px 4px rgba(44,62,80,0.04);
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 1em;
    padding: 0 5px;
  }
  .work-item {
    padding: 1.2em 1em;
  }
}

/* CTA Section */
.cta {
  background: linear-gradient(120deg,#3498db 60%,#23272f 100%);
  color: #fff;
  text-align: center;
  padding: 2em 1em;
}
.cta h2 {
  color: #fff;
  margin-bottom: 1em;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
  margin-top: 1.5em;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 1.05rem;
  padding: 0.5em 1em;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: transform 0.2s, background 0.2s;
}
.contact-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}
.contact-item i {
  font-size: 1.2em;
  color: #fff;
}

@media (max-width: 600px) {
  .cta {
    padding: 1.5em 1em;
  }
  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }
  .contact-item {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 0.8em;
  }
}

/* Footer */
footer {
  width: 100%;
  background: #23272f;
  color: #fff;
  text-align: center;
  padding: 1.2em 0;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  section, .hero {
    max-width: 98vw;
    padding: 1.5em 1em;
  }
  /* Add side padding to main content containers on mobile */
  .skills-card,
  .service-card,
  .work-item,
  .tech-category,
  .cta {
    margin-left: 5px;
    margin-right: 5px;
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .hero h1 {
    font-size: 2.4rem;
    line-height: 1.2;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .services, .skills-expertise {
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
  }
  .services .service-grid, .skills-expertise .skills-grid {
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
  header {
    padding: 1em 0;
  }
  .skills-grid, .service-grid, .work-grid, .tech-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1em;
  }
}
@media (max-width: 700px) {
  .skills-grid, .service-grid, .work-grid, .tech-grid {
    grid-template-columns: 1fr;
  }
  .skills-card, .service-card, .work-item, .tech-category {
    padding: 1em 0.5em;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .hero-img {
    max-width: 140px;
  }
}
@media (max-width: 600px) {
  .service-grid, .work-grid, .tech-grid, .skills-grid {
    grid-template-columns: 1fr;
    gap: 0.7em;
  }
  .skills-card, .service-card, .work-item, .tech-category {
    font-size: 0.97rem;
    padding: 0.7em 0.3em;
  }
  .skills-card table, .service-card table {
    font-size: 0.92rem;
    display: block;
    overflow-x: auto;
    max-width: 100%;
    white-space: nowrap;
  }
  .skills-card th, .skills-card td, .service-card th, .service-card td {
    padding: 6px 4px;
  }
  .contact-info {
    flex-direction: column;
    gap: 0.7em;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
  footer {
    font-size: 0.95rem;
    padding: 0.8em 0;
  }
}
@media (max-width: 480px) {
  section, .hero {
    padding: 0.7em 0.1em;
  }
  h1 {
    font-size: 1.1rem;
  }
  h2 {
    font-size: 1rem;
  }
  .skills-card, .service-card, .work-item, .tech-category {
    font-size: 0.91rem;
    padding: 0.5em 0.1em;
  }
  .skills-card table, .service-card table {
    font-size: 0.88rem;
  }
  .hero-img {
    max-width: 90px;
  }
  footer {
    font-size: 0.85rem;
    padding: 0.5em 0;
  }
}

/* Slim Navbar Styles */
.navbar {
  width: 100%;
  padding: 8px 15px;
  background-color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
  color: #f0f4f8;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.navbar .navbar-brand {
  font-size: 1.5rem;
  color: inherit;
}

.navbar .form-inline {
  display: flex;
  align-items: center;
}

.navbar .form-control {
  margin-right: 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
}

.navbar .btn-outline-success {
  border-radius: 20px;
  padding: 5px 15px;
  background-color: #5cb85c;
  color: #fff;
}

.navbar .btn-outline-success:hover {
  background-color: #4cae4c;
}

/* Dark Mode Toggle */
.toggle-button {
  padding: 6px 12px;
  font-size: 1.2rem;
  background-color: #555;
  color: #f0f4f8;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.toggle-button:hover {
  background-color: #777;
  transform: scale(1.05);
}

body.light-mode .toggle-button {
  background-color: #f0f4f8;
  color: #333;
}

body.light-mode .toggle-button:hover {
  background-color: #ddd;
}

/* Light Mode Styles */
body.light-mode {
  background: #f0f4f8;
  color: #333;
}

.light-mode .navbar {
  background-color: #f0f4f8;
  color: #333;
}

.light-mode .toggle-button {
  background-color: #ddd;
  color: #333;
}

/* Dark Mode Styles */
body.dark-mode {
  background: #121212;
  color: #f0f4f8;
}

.dark-mode .navbar {
  background-color: #333;
  color: #f0f4f8;
}

.dark-mode .toggle-button {
  background-color: #555;
  color: #f0f4f8;
}

.dark-mode .coming-soon h1, .dark-mode .coming-soon p {
  color: #f0f4f8;
}

/* Coming Soon Content */
.coming-soon {
  max-width: 600px;
  padding: 20px;
  text-align: center;
  margin-top: 80px;
  animation: fadeIn 1.5s ease-in-out;
}

.coming-soon h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: slideDown 1s ease-out forwards;
  opacity: 0;
}

.coming-soon p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  animation: slideUp 1s ease-out forwards;
  opacity: 0;
  animation-delay: 0.5s;
}

/* Countdown Styles */
.countdown {
  display: flex;
  gap: 10px;
  font-size: 2rem;
  font-weight: bold;
  margin-top: 20px;
  justify-content: center;
}

.countdown span {
  padding: 10px 20px;
  border-radius: 10px;
  background-color: #333;
  color: #fff;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.countdown span:nth-child(1) {
  animation-delay: 1s;
}

.countdown span:nth-child(2) {
  animation-delay: 1.5s;
}

.countdown span:nth-child(3) {
  animation-delay: 2s;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar {
      padding: 10px;
  }

  .toggle-button {
      margin-top: 10px;
      font-size: 1rem;
      padding: 6px 10px;
  }

  .coming-soon {
      margin-top: 100px;
      width: 90%;
  }

  .navbar .navbar-brand {
      font-size: 1.2rem;
  }

  .countdown {
      font-size: 1.5rem;
  }
}
