/* ========================================================
   1toz Portfolio Page Custom Stylesheet (portfolio.css)
   ======================================================== */

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
::selection { background: #6366F1; color: #fff; }

/* Background & Glass Effects */
.bg-surface { background-color: #F8FAFC; }
.glass { 
  background: rgba(255, 255, 255, 0.92); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px); 
  border: 1px solid rgba(226, 232, 240, 0.8); 
}
.grad-text { 
  background: linear-gradient(135deg, #6366F1, #A855F7); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
}

/* Animations & Keyframes */
@keyframes float { 
  0%, 100% { transform: translateY(0px); } 
  50% { transform: translateY(-18px); } 
}
@keyframes blob { 
  0%, 100% { transform: translate(0, 0) scale(1); } 
  33% { transform: translate(20px, -15px) scale(1.05); } 
  66% { transform: translate(-15px, 10px) scale(0.97); } 
}
@keyframes caretBlink { 
  50% { opacity: 0; } 
}
@keyframes rippleAnim { 
  to { transform: scale(3); opacity: 0; } 
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delay { animation: float 6s ease-in-out 1.5s infinite; }
.animate-blob { animation: blob 10s ease-in-out infinite; }
.blob { filter: blur(60px); }

/* Typing Text Cursor */
#typedText::after { 
  content: ''; 
  display: inline-block; 
  width: 3px; 
  height: 1em; 
  background: #6366F1; 
  margin-left: 4px; 
  vertical-align: -2px; 
  animation: caretBlink 1s step-end infinite; 
}

/* Scroll Reveal Elements */
.reveal { 
  opacity: 0; 
  transform: translateY(28px); 
  transition: opacity .7s ease, transform .7s ease; 
}
.reveal.is-visible { 
  opacity: 1; 
  transform: translateY(0); 
}
.reveal-d1.is-visible { transition-delay: .08s; }
.reveal-d2.is-visible { transition-delay: .16s; }
.reveal-d3.is-visible { transition-delay: .24s; }
.reveal-d4.is-visible { transition-delay: .32s; }

/* Interactive Ripple Button */
.ripple-btn { position: relative; overflow: hidden; }
.ripple { 
  position: absolute; 
  border-radius: 9999px; 
  background: rgba(255, 255, 255, 0.55); 
  transform: scale(0); 
  animation: rippleAnim .6s ease-out forwards; 
  pointer-events: none; 
}

/* Portfolio Filter Tabs */
.filter-tab {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid #E2E8F0;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.filter-tab:hover {
  border-color: #6366F1;
  color: #6366F1;
  background: #F8FAFC;
}
.filter-tab.active {
  background: linear-gradient(135deg, #6366F1, #A855F7);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

/* Portfolio 3-Card Carousel Track & Responsive Slide Sizing */
#portfolioTrack {
  display: flex;
  transition: transform .5s cubic-bezier(.25, 1, .5, 1);
  will-change: transform;
}
.portfolio-slide {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
  transition: opacity .3s ease, transform .3s ease;
}
@media (min-width: 768px) {
  .portfolio-slide {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.75rem;
  }
}
@media (min-width: 1024px) {
  .portfolio-slide {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 0.875rem;
  }
}

.portfolio-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background-color: #cbd5e1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  padding: 0;
}
.portfolio-dot:hover {
  background-color: #94a3b8;
}
.portfolio-dot.active {
  width: 28px;
  background: linear-gradient(135deg, #6366F1, #A855F7);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

/* Masonry Photo Gallery */
.masonry { column-count: 2; column-gap: 1rem; }
@media (min-width: 768px) { .masonry { column-count: 3; } }
.masonry > div { break-inside: avoid; margin-bottom: 1rem; }

/* FAQ Accordion */
.faq-content { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-content { max-height: 300px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s ease; }

/* Scrollbar Customization */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 9999px; }

/* ========================================================
   Footer & Container Consistency (Matches Home Page Exactly)
   ======================================================== */
footer.portfolio-footer,
.portfolio-footer {
  padding: 80px 0 35px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  width: 100%;
}

footer.portfolio-footer .container,
.portfolio-footer .container {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 25px !important;
  padding-right: 25px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.portfolio-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 45px;
  margin-bottom: 50px;
}

.portfolio-footer .footer-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.portfolio-footer .footer-about p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.portfolio-footer .footer-links h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 18px;
}

.portfolio-footer .footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portfolio-footer .footer-links ul li a {
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.portfolio-footer .footer-links ul li a:hover {
  color: #6366F1;
}

.portfolio-footer .footer-contact-list li {
  font-size: 14px;
  color: #334155;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portfolio-footer .footer-contact-list li i {
  color: #6366F1;
  width: 16px;
}

.portfolio-footer .footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 25px;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1024px) {
  .portfolio-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
}

@media (max-width: 768px) {
  .portfolio-footer .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .portfolio-footer .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}