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

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-dark: #0b1329;
  --bg-dark-glass: rgba(11, 19, 41, 0.85);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #0f172a 100%);
  --accent-light: rgba(2, 132, 199, 0.1);
  --border-color: #e2e8f0;
  --border-radius-lg: 16px;
  --border-radius-md: 8px;
  --box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --box-shadow-hover: 0 20px 25px -5px rgba(2, 132, 199, 0.15), 0 10px 10px -6px rgba(2, 132, 199, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  background-color: var(--bg-dark-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

header img {
  height: 48px;
  transition: var(--transition);
}

header img:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 2.5rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  opacity: 0.85;
}

nav a:hover {
  opacity: 1;
  color: var(--accent);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/* Main Layout */
main {
  max-width: 1200px;
  margin: 120px auto 60px;
  padding: 0 2rem;
}

section {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  scroll-margin-top: 100px; /* Prevent header covering section titles */
}

section:hover {
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.05);
}

h1 {
  font-family: var(--font-heading);
  color: var(--bg-dark);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

h2 {
  font-family: var(--font-heading);
  color: var(--bg-dark);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Slideshow Container */
.slideshow-wrapper {
  position: relative;
  background-color: var(--bg-dark);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  margin-bottom: 3.5rem;
  aspect-ratio: 16 / 9;
  max-height: 550px;
}

.mySlides {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.8s ease-in-out;
}

/* Fade animation */
.fade {
  animation-name: fadeAnimation;
  animation-duration: 0.8s;
}

@keyframes fadeAnimation {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Slideshow controls */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(11, 19, 41, 0.65);
  backdrop-filter: blur(4px);
  color: white;
  font-weight: bold;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  user-select: none;
  transition: var(--transition);
  z-index: 10;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.prev:hover, .next:hover {
  background-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.5);
}

/* Indicator dots */
.dots-container {
  text-align: center;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: inline-block;
  transition: var(--transition);
}

.active, .dot:hover {
  background-color: var(--accent);
  width: 24px;
  border-radius: 5px;
}

/* Projects Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.project-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  background-color: var(--bg-secondary);
  border-color: rgba(2, 132, 199, 0.2);
  box-shadow: var(--box-shadow-hover);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--bg-dark);
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  line-height: 1.6;
}

.badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background-color: var(--accent-light);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.about-stats {
  background: var(--accent-gradient);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--box-shadow);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background-color: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--accent);
  background-color: var(--bg-secondary);
  box-shadow: var(--box-shadow);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 1.25rem;
}

.contact-details h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--bg-dark);
}

.contact-details p, .contact-details a {
  color: var(--text-muted);
  font-size: 1rem;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Contact Form Styling */
.contact-form-box {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.contact-form-box h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--bg-dark);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

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

.btn-submit {
  display: inline-block;
  width: 100%;
  padding: 1rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Alert Boxes */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.alert-danger {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

/* Footer styling */
footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--accent);
}

/* Responsiveness Media Queries */
@media (max-width: 968px) {
  header {
    padding: 0 5%;
  }
  
  main {
    padding: 0 1.5rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  header {
    height: auto;
    padding: 1rem 5%;
    flex-direction: column;
    gap: 1rem;
  }
  
  nav {
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
  }
  
  main {
    margin-top: 160px;
  }
  
  section {
    padding: 2rem 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .prev, .next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}