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

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --text-color: #1f2937;
  --light-bg: #f3f4f6;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

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

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  color: var(--white);
  font-size: 2.4rem;
  transition: var(--transition);
  margin: 0 0.5rem;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--light-bg);
}

.about-content {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Skills Section */
.skills {
  padding: 100px 0;
}

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

.skill-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.skill-card p {
  color: #666;
  line-height: 1.6;
}

/* Work Experience Section */
.work-experience {
  padding: 40px 0;
  background-color: var(--light-bg);
}

/* Project Experience Section */
.project-experience {
  padding: 40px 0;
  background-color: var(--light-bg);
}

.timeline {
  max-width: 800px;
  margin: 2rem auto;
}

.timeline-item {
  position: relative;
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.company {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-content ul {
  list-style-type: none;
  padding-left: 0;
}

.timeline-content li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.timeline-content li:before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Certifications Section */
.certifications {
  padding: 100px 0;
  background: var(--white);
}

.certifications h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color);
  font-size: 2rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.cert-card {
  background-color: var(--light-bg);

  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  background: #f7fafc;
}

.cert-card i {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 20px;
}

.cert-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.cert-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Updated Contact Section */
.contact {
  padding: 100px 0;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea {
  height: 150px;
  resize: vertical;
}

.btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

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

/* Updated Contact Section */
.contact-info {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.contact-info i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  width: 20px;
}

/* Footer */
footer {
  background-color: var(--text-color);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

/* Form Status Styles */
.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
}

.form-status.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
}

.form-status.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

/* Button Loading State */
.btn {
  position: relative;
  min-width: 120px;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn.loading .btn-text {
  visibility: hidden;
}

.btn.loading .btn-loader {
  display: inline-block !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    margin-bottom: 1.5rem;
  }

  .contact-info p {
    font-size: 1rem;
  }

  .timeline-content li {
    font-size: 0.95rem;
  }
}

/* Education Section */
.education {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.education-content {
  max-width: 800px;
  margin: 0 auto;
}

.education-item {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.education-item h3 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.education-item .institution {
  color: #3498db;
  font-weight: 600;
  margin-bottom: 5px;
}

.education-item .date {
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* Architecture Page Styles */
.architecture {
  padding: 100px 0;
  background-color: #1a1a1a;
  color: white;
}

.architecture h1 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: white;
}

.architecture-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.architecture-section {
  margin-bottom: 4rem;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  border: 1px solid #333;
}

.architecture-section h2 {
  color: #ffffff;
  margin-bottom: 2rem;
  font-size: 2rem;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

.content-box {
  background: #242424;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #333;
}

.content-box h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.content-box p {
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.content-box ul {
  list-style-type: none;
  padding-left: 0;
}

.content-box ul li {
  color: #e0e0e0;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.content-box ul li:before {
  content: '•';
  color: #3498db;
  font-weight: bold;
  position: absolute;
  left: 0;
}

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

.tech-item {
  background: #242424;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #333;
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  background: #2a2a2a;
}

.tech-item i {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 1rem;
}

.tech-item h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.tech-item p {
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Architecture Diagram Styles */
.diagram-container {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 12px;
  margin-top: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.diagram-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  min-width: 140px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.diagram-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: #3498db;
}

.diagram-item i {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.diagram-item span {
  color: white;
  font-size: 1.1rem;
  display: block;
  font-weight: 500;
}

.diagram-arrow {
  color: #3498db;
  font-size: 1.8rem;
  text-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.diagram-legend {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-color {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.legend-item span:last-child {
  color: #bdc3c7;
  font-size: 1rem;
  font-weight: 500;
}

/* Workflow Diagram Styles */
.workflow-diagram {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.workflow-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  position: relative;
}

.workflow-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  min-width: 180px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.workflow-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: #3498db;
}

.workflow-item i {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.workflow-item span {
  color: white;
  font-size: 1.1rem;
  display: block;
  font-weight: 500;
}

.workflow-arrow {
  color: #3498db;
  font-size: 2rem;
  text-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .diagram,
  .workflow-step {
    flex-direction: column;
  }

  .diagram-arrow,
  .workflow-arrow {
    transform: rotate(90deg);
  }

  .diagram-legend {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .workflow-item {
    min-width: 200px;
  }

  .architecture-content {
    padding: 1rem;
  }

  .architecture-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .content-box {
    padding: 1.5rem;
  }

  .tech-stack {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.cta-architecture {
  text-align: center;
  margin: 2rem 0 3rem 0;
}
.btn-architecture {
  background: var(--primary-color);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 6px;
  font-size: 1.2rem;
  text-decoration: none;
  display: inline-block;
  transition:
    background 0.3s,
    transform 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.btn-architecture:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-3px) scale(1.04);
}
.btn-architecture i {
  margin-right: 0.5rem;
}

.btn-architecture.floating {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 2000;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.18);
  opacity: 0.95;
  animation: floatIn 0.5s;
}
@keyframes floatIn {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 0.95;
  }
}
@media (max-width: 600px) {
  .btn-architecture.floating {
    right: 16px;
    bottom: 16px;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }
}
