/* JPCS PTC Website Styles */

:root {
    --primary-color: #81C784;
    --secondary-color: #6c757d;
    --success-color: #81C784;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white: #ffffff;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar {
    background-color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.8) 0%, rgba(165, 214, 167, 0.85) 100%), url('../assets/image/jpcs_bg.png') center/cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Buttons */
.btn-success {
    background: linear-gradient(45deg, var(--primary-color), #C8E6C9);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.bg-success {
    background-color: var(--primary-color) !important;
}

/* Gallery */
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    color: var(--light-color);
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
    min-height: 300px;
    overflow: hidden;
}

footer a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* Footer Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes glow {
  0% { text-shadow: 0 0 5px rgba(200, 230, 201, 0); }
  50% { text-shadow: 0 0 15px rgba(200, 230, 201, 0.8); }
  100% { text-shadow: 0 0 5px rgba(200, 230, 201, 0); }
}

/* External Links Animation */
.footer-external-link {
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  overflow: hidden;
  display: block !important;
  color: var(--light-color) !important;
  text-decoration: none !important;
  background: rgba(255,255,255,0.1);
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 0.85rem;
  border-left: 3px solid rgba(255,255,255,0.3);
}

.footer-external-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.footer-external-link:hover {
  background: rgba(255,255,255,0.2) !important;
  padding-left: 15px !important;
  border-left-color: rgba(200, 230, 201, 0.8) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  transform: translateX(8px);
}

.footer-external-link:hover::before {
  transform: translateX(100%);
}

.footer-external-link:active {
  transform: translateX(4px) scale(0.98);
}

/* Email Link Animation */
.footer-email-link {
  position: relative;
  transition: all 0.3s ease !important;
  color: var(--light-color) !important;
  text-decoration: none !important;
  text-decoration: underline dotted !important;
  text-decoration-color: rgba(200, 230, 201, 0.5) !important;
  text-underline-offset: 4px !important;
}

.footer-email-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #81C784, #c8e6c9);
  transition: width 0.4s ease;
}

.footer-email-link:hover {
  color: #c8e6c9 !important;
  transform: translateY(-2px);
  text-decoration-color: #81C784 !important;
  text-shadow: 0 0 10px rgba(200, 230, 201, 0.5);
}

.footer-email-link:hover::after {
  width: 100%;
}

/* Social Media Icons Animation */
.social-footer-icon {
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  overflow: hidden;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: white !important;
  text-decoration: none !important;
}

.social-footer-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(200, 230, 201, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.social-footer-icon:hover {
  background: rgba(200, 230, 201, 0.25) !important;
  border-color: rgba(200, 230, 201, 0.8) !important;
  transform: translateY(-8px) scale(1.2) rotate(5deg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4), 0 0 20px rgba(200, 230, 201, 0.4);
  color: #ffffff !important;
  animation: float-icon 0.6s ease infinite;
}

.social-footer-icon:hover::before {
  width: 100px;
  height: 100px;
}

.social-footer-icon:active {
  transform: translateY(-4px) scale(1.1);
}

.social-footer-icon i {
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.social-footer-icon:hover i {
  transform: scale(1.3) rotate(-5deg);
}

/* Footer Bottom Links Animation */
.footer-bottom-link {
  position: relative;
  transition: all 0.3s ease !important;
  color: var(--light-color) !important;
  text-decoration: none !important;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.footer-bottom-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #81C784, #c8e6c9, #81C784);
  background-size: 200% 100%;
  transition: width 0.5s ease;
}

.footer-bottom-link:hover {
  color: #c8e6c9 !important;
  transform: translateY(-3px);
  text-shadow: 0 0 8px rgba(200, 230, 201, 0.6);
  letter-spacing: 0.5px;
}

.footer-bottom-link:hover::before {
  width: 100%;
}

.footer-bottom-link:active {
  transform: translateY(-1px);
}

/* Footer Logo Animation */
footer img {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

footer img:hover {
  transform: scale(1.1) rotate(2deg);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4)) brightness(1.2);
}

/* Footer Text Hover Effects */
footer h2:hover,
footer h5:hover {
  animation: glow 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .card {
        margin-bottom: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #218838;
}