:root{
  --brand:#1d698d;
  --accent:#46b5e5;
  --ink:#0f172a;
  --muted:#64748b;
  --bg:#f8fafc;
}

body{font-family:'Poppins',sans-serif;background:var(--bg);color:var(--ink);}
/* Navbar */
.glass-nav {
  background: #000;                  
  backdrop-filter: blur(8px);        
  box-shadow: 0 5px 20px rgba(0,0,0,.4);
  animation: fadeIn 1s ease-in-out forwards;
}

.glass-nav .nav-link {
  color: #f8fafc;                    
  transition: color .3s;
}
.glass-nav .nav-link:hover { color: var(--accent); }
.glass-nav .nav-link.active {
  color: var(--brand);
  font-weight: 600;
}
.glass-nav .navbar-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  transition: color .3s;
}
.text-brand{ color: #2b7a9e; }

.btn-brand{background:var(--brand);color:#fefcfc;border-radius:50px;padding:.7rem 1.4rem;transition:.3s;}
.btn-brand:hover{background:var(--accent);transform:scale(1.05);}
.btn-outline-brand{border:2px solid var(--accent);border-radius:50px;color:var(--accent);}
.btn-outline-brand:hover{background:var(--brand);color:#fff;}

/* HERO */
.hero {
  position: relative;
  background: url("images/hero.png") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.6));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}
.typing{border-right:2px solid var(--brand);white-space:nowrap;overflow:hidden;animation:blink .7s infinite;}
@keyframes blink{50%{border-color:transparent;}}

/* Categories Strip */
.categories-strip {
  width: 100%;
  overflow: hidden;
  background: #0f172a;
  padding: 5px 0;
  position: absolute;
  bottom: 0;
  z-index: 10;
}
.categories-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: scroll 25s linear infinite;
}
.category {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #f8fafc;
  padding: 8px 20px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform .3s ease;
}
.category:hover { transform: scale(1.1); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section{padding:5rem 0;}

/* ===== Services Section ===== */
.services { padding: 80px 20px; background: #f8fafc; text-align: center; font-family: 'Poppins', sans-serif; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 10px; color: #0f172a; }
.section-sub { color: #64748b; margin-bottom: 50px; font-size: 1rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}
.service-card {
  background: #fff;
  padding: 25px 10px;
  border-radius: 20px;
  box-shadow: 0 15px 25px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  align-items: center;
  animation: slideUp .9s ease both;
}
.service-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0 25px 40px rgba(0,0,0,0.15);
}
.service-card:nth-child(1){animation-delay:.2s;}
.service-card:nth-child(2){animation-delay:.4s;}
.service-card:nth-child(3){animation-delay:.6s;}
.service-card:nth-child(4){animation-delay:.8s;}

.service-card .icon { font-size: 2.5rem; color: #22c2c5; margin-bottom: 15px; transition: transform 0.4s ease; }
.service-card:hover .icon { transform: scale(1.2) rotate(8deg); }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: #111827; }
.service-card p { font-size: 0.95rem; line-height: 1.6; color: #4b5563; }

/* Project Cards */
.project-card {
  border-radius: 0.8rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  height: 260px;
  animation: fadeIn 1s ease forwards;
}
.project-card:nth-child(odd){animation-delay:.3s;}
.project-card:nth-child(even){animation-delay:.6s;}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover img { transform: scale(1.1); }
.project-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  opacity: 0;
  transition: opacity .4s ease;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.project-card:hover .overlay { opacity: 1; }
.overlay h5 { font-weight: 600; margin-bottom: .5rem; }
.overlay p { font-size: 0.9rem; max-width: 260px; }
.more-card { background: #f8f8f8; color: #000000; font-weight: 600; }
.more-card i { font-size: 3rem; color: #4e4c4c; transition: transform .3s ease; }
.more-card:hover i { transform: scale(1.2) rotate(10deg); }
.more-card p { color: #94a3b8; margin: 0; }

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  text-align: center;
}
.process-step {
  background: #fff;
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: all .4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: zoomIn 1s ease both;
}
.process-step:nth-child(1){animation-delay:.2s;}
.process-step:nth-child(2){animation-delay:.4s;}
.process-step:nth-child(3){animation-delay:.6s;}
.process-step:nth-child(4){animation-delay:.8s;}
.process-step h6 { font-weight: 700; margin: 1rem 0 .5rem; color: #0f172a; }
.process-step p { font-size: 0.9rem; color: #64748b; line-height: 1.5; }
.icon-wrap {
  width: 70px; height: 70px; margin: auto;
  border-radius: 50%;
  background: linear-gradient(135deg,#1d698d,#46b5e5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
  box-shadow: 0 6px 15px rgba(29,105,141,.3);
  transition: .4s ease;
}
.process-step:hover { transform: translateY(-10px); box-shadow: 0 12px 25px rgba(29,105,141,.2); }
.process-step:hover .icon-wrap { background: linear-gradient(135deg,#46b5e5,#1d698d); transform: rotate(10deg) scale(1.1); }
.process-step:hover h6 { color: #1d698d; }

/* Skills Section */
.skills { padding: 80px 10%; background:#f9fafb; }
.skills-container { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
@media(max-width:768px){ .skills-container{grid-template-columns:1fr;} }
.skills-text h2 { font-size:2rem; font-weight:800; margin-bottom:10px; color:#0f172a; }
.skills-text p { color:#64748b; margin-bottom:30px; }
.skill { margin-bottom:20px; position:relative; }
.skill span { font-weight:600; }
.skill .percent { float:right; }
.bar { height:6px; background:#e5e7eb; border-radius:4px; margin-top:8px; overflow:hidden; gap: 10px; }
.bar .fill { height:100%; background:#1d698d; border-radius:4px; transition:width .6s ease-in-out; }
.skills-image img { width:100%; border-radius:10px; box-shadow:0 10px 20px rgba(0,0,0,.1); }
.skills-text { animation: slideUp 1.1s ease both; animation-delay:.3s; }
.skills-image { animation: slideUp 1.1s ease both; animation-delay:.6s; }

/* Contact Section */
.contact-simple { padding: 60px 10%; background: #f9fafb; text-align: center; animation: fadeIn 1.2s ease forwards; }
.contact-simple .title { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.contact-simple .subtitle { color: #64748b; margin-bottom: 30px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; text-align: left; }
@media(max-width:768px){ .contact-grid {grid-template-columns: 1fr;} }
.contact-form input, .contact-form textarea {
  width: 100%; margin-bottom: 15px; padding: 12px;
  border: 1px solid #ddd; border-radius: 6px; font-size: 0.95rem;
}
.contact-form textarea {min-height: 120px; resize: none;}
.contact-form button {
  width: 100%; padding: 12px; border: none; border-radius: 6px;
  background: #1d698d; color: #fff; font-weight: 600;
  cursor: pointer; transition: background .3s;
}
.contact-form button:hover { background: #46b5e5; }
.contact-info p { margin-bottom: 12px; font-size: 0.95rem; }
.contact-info i { margin-right: 8px; color: #1d698d; }
.contact-info a { color: #1d698d; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: #000; color: #f8fafc;
  padding: 40px 8% 20px;
  font-size: 0.9rem;
  animation: fadeIn 1.3s ease forwards;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 20px; }
.footer-col h4, .footer-col h5 { font-weight: 700; margin-bottom: 12px; color: #fff; }
.footer-col p { margin: 5px 0; color: #cbd5e1; font-size: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: #cbd5e1; text-decoration: none; transition: .3s; font-size: 0.9rem; }
.footer-col ul li a:hover { color: #46b5e5; }
.social-links a { display: inline-block; margin-right: 10px; font-size: 1.2rem; color: #cbd5e1; transition: .3s; }
.social-links a:hover { color: #46b5e5; transform: translateY(-3px) scale(1.1); }
.footer-bottom { margin-top: 20px; text-align: center; font-size: 0.8rem; color: #94a3b8; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; }

#backToTop{position:fixed;bottom:1rem;right:1rem;display:none;z-index:1000;animation: rotateIn .6s ease forwards;}

/* ===== Animations ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px);} to { opacity: 1; transform: translateY(0);} }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.9);} to { opacity: 1; transform: scale(1);} }
@keyframes rotateIn { from { opacity: 0; transform: rotate(-8deg) scale(0.9);} to { opacity: 1; transform: rotate(0) scale(1);} }
