@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  --wso2-orange: #f47b20;
  --wso2-orange-dark: #d96918;
  --wso2-orange-light: #ff984d;
  --bg-dark: #0a0a0a;
  --bg-card: #151515;
  --bg-card-hover: #1e1e1e;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: #262626;
  --gradient-primary: linear-gradient(135deg, var(--wso2-orange), #ff4d4d);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
}

a {
  color: var(--wso2-orange-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--wso2-orange);
}

/* Glassmorphism utility */
.glass {
  background: rgba(21, 21, 21, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 1rem 5%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo span {
  color: var(--wso2-orange);
}

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

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--wso2-orange);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 10%;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(244,123,32,0.15) 0%, rgba(10,10,10,0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(244, 123, 32, 0.1);
  border: 1px solid rgba(244, 123, 32, 0.3);
  color: var(--wso2-orange-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(244, 123, 32, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 123, 32, 0.4);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Sections */
section {
  padding: 6rem 10%;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  background: var(--bg-card-hover);
  border-color: rgba(244, 123, 32, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(244, 123, 32, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--wso2-orange);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.card-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pr-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.pr-link:hover {
  background: rgba(244, 123, 32, 0.1);
  border-color: rgba(244, 123, 32, 0.3);
  color: var(--wso2-orange-light);
}

/* Timeline for Bug Fix */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item h3 {
  color: var(--wso2-orange);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-block {
  background: #000;
  padding: 1.5rem;
  border-radius: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #a6accd;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid #1a1a1a;
}

.code-highlight {
  color: #82aaff;
}

.code-string {
  color: #c3e88d;
}

.code-comment {
  color: #676e95;
  font-style: italic;
}

/* Image Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--border-color);
  group: hover;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 2px dashed var(--border-color);
  transition: all 0.3s ease;
}

.gallery-item:hover .image-placeholder {
  border-color: var(--wso2-orange);
  color: var(--wso2-orange-light);
}

.image-placeholder svg {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* Footer */
footer {
  padding: 3rem 10%;
  text-align: center;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Image Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--wso2-orange);
  text-decoration: none;
}

.gallery-overlay {
  flex-direction: row !important;
  gap: 1.5rem;
}

.gallery-overlay .fullscreen-icon {
  color: white;
  background: rgba(244, 123, 32, 0.8);
  padding: 12px;
  border-radius: 50%;
  display: flex;
  transition: transform 0.2s ease;
}

.gallery-overlay .download-btn {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 12px;
  border-radius: 50%;
  display: flex;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.gallery-overlay .fullscreen-icon:hover,
.gallery-overlay .download-btn:hover {
  transform: scale(1.15);
  background: var(--wso2-orange);
  color: white;
}

/* Scroll Up Button */
#scroll-up-btn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background: var(--gradient-primary);
  color: white;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(244, 123, 32, 0.4);
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

#scroll-up-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(244, 123, 32, 0.6);
}

/* Linking Path Animation */
.scroll-path {
  position: fixed;
  left: 3%;
  top: 50%;
  transform: translateY(-50%);
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.scroll-path.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-path-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: -2;
}

.scroll-path-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--gradient-primary);
  height: 0%;
  z-index: -1;
  transition: height 0.1s ease;
  box-shadow: 0 0 10px rgba(244, 123, 32, 0.8);
}

.path-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
}

.path-node.active {
  background: var(--wso2-orange);
  border-color: var(--wso2-orange-light);
  box-shadow: 0 0 15px rgba(244, 123, 32, 0.6);
  transform: scale(1.3);
}

.node-tooltip {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.8);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  pointer-events: none;
  color: white;
}

.path-node:hover .node-tooltip {
  opacity: 1;
  visibility: visible;
  left: 20px;
}

@media (max-width: 1024px) {
  .scroll-path {
    display: none;
  }
}

/* Contact & Social Links */
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  font-weight: 500;
  text-decoration: none;
}

.contact-link:hover {
  background: rgba(244, 123, 32, 0.1);
  border-color: var(--wso2-orange);
  color: var(--wso2-orange);
  transform: translateY(-2px);
  text-decoration: none;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  text-decoration: none;
}

.social-links a:hover {
  background: var(--wso2-orange);
  color: white;
  border-color: var(--wso2-orange-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(244, 123, 32, 0.4);
}
