/* Base Styles and Variables */
:root {
    /* Dark mode colors (default) - inspired by Union Jack */
    --primary-color: #4a90e2; /* Brighter Blue for dark mode */
    --secondary-color: #e63946; /* Brighter Red */
    --accent-color: #d1d1d1; /* Off-white */
    --background-gradient: linear-gradient(to bottom right, #0f111a, #1c1f2d);
    --text-color: #f0f0f0;
    --card-bg: rgba(30, 35, 50, 0.7);
    --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    --header-bg: rgba(15, 17, 26, 0.95);
    --footer-bg: rgba(10, 12, 20, 0.9);
    --footer-text: #f0f0f0;
    --police-accent: #3498db;
    --fire-accent: #e74c3c;
    --ambulance-accent: #2ecc71;
    --highways-accent: #f39c12;
    --mod-accent: #9b59b6;
    --card-border-radius: 12px;
    --button-border-radius: 8px;
    --transition-speed: 0.3s;
    --logo-glow: 0 0 15px rgba(255, 255, 255, 0.2);
    --header-text: #d1d1d1;
}



/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-gradient);
    min-height: 100vh;
    transition: all var(--transition-speed) ease;
    opacity: 0;
    animation: pageLoad 0.8s ease forwards;
}

@keyframes pageLoad {
    to {
        opacity: 1;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 5rem 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--button-border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 140px;
    margin: 0.5rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.hero .primary-btn {
    background: var(--secondary-color);
    border: none;
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
}

.hero .primary-btn:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 15px;
    width: 95%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 0.8rem;
    filter: drop-shadow(var(--logo-glow));
    transition: transform var(--transition-speed) ease;
    max-width: 100%;
    object-fit: contain;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--header-text);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo .short-name {
    display: none;
}

.logo .full-name {
    display: inline-block;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--header-text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all var(--transition-speed) ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border-radius: 2px;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a:hover::after {
    width: 100%;
    box-shadow: 0 0 8px var(--secondary-color);
}



.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--header-text);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1) rotate(0.5deg);
    filter: blur(2px) brightness(0.8);
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0px) brightness(1);
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 144, 226, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(230, 57, 70, 0.3) 0%, transparent 60%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    animation: slideShimmer 6s ease-in-out infinite;
    z-index: 2;
}

@keyframes slideShimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-btn:hover {
    background: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
}

.prev-btn {
    left: 3rem;
}

.next-btn {
    right: 3rem;
}

.slide-dots {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 10;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    padding: 1.5rem 3rem;
    border-radius: 60px;
    backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 60, 125, 0.4), transparent 70%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.2) 0%, transparent 50%, rgba(1, 33, 105, 0.2) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 5;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    padding: 4rem;
    border-radius: 25px;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 900px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: containerFloat 6s ease-in-out infinite;
}

@keyframes containerFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 1px;
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
    animation: redGlow 3s ease-in-out infinite alternate;
}

@keyframes redGlow {
    0% { 
        color: #cc0000;
        text-shadow: 0 0 10px rgba(204, 0, 0, 0.5);
    }
    100% { 
        color: #ff4444;
        text-shadow: 0 0 30px rgba(255, 68, 68, 1);
    }
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    color: #f8f9fa;
}

/* About Section */
.about {
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(26, 60, 125, 0.2), transparent 70%);
    z-index: 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.about-text {
    max-width: 800px;
    text-align: center;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(50px);
    opacity: 0;
    animation: fadeInUp 1s forwards 0.3s;
    box-shadow: 0 0 20px var(--primary-color);
    transition: box-shadow 0.35s ease;
}

.about-text:hover{
    box-shadow: 0 0 40px var(--primary-color);
}

/* Departments Section */
.departments {
    position: relative;
    overflow: hidden;
}

.departments::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(255, 0, 0, 0.15), transparent 70%);   
    z-index: 0;
}

.department-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    padding: 20px;
    margin: 14px;
}

.department-card {
  background-color: var(--card-bg);          /* your greyish background */
  border-radius: var(--card-border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);   /* soft normal shadow */
  border: 2px solid transparent;            /* invisible border for smooth glow transition */
  transition: all 0.35s ease;                /* smooth hover */
  position: relative;
  overflow: hidden;
  margin: 15px;
  padding: 15px;
}

.department-card:nth-child(1) { animation-delay: 0.1s; }
.department-card:nth-child(2) { animation-delay: 0.2s; }
.department-card:nth-child(3) { animation-delay: 0.3s; }
.department-card:nth-child(4) { animation-delay: 0.4s; }
.department-card:nth-child(5) { animation-delay: 0.5s; }
.department-card:nth-child(6) { animation-delay: 0.6s; }

.department-card::before {
    content: '';
    position: absolute;
    inset: 0;                           /* cover the card area so border sits at the edges */
    border-radius: inherit;             /* match the card rounding */
    border: 3px solid transparent;      /* base border (becomes colored via border-color below) */
    pointer-events: none;               /* don't block clicks */
    z-index: 2;                         /* above the card bg but won't block interaction */
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
    /* subtle resting glow — uses currentColor set by the nth-child rules below */
    box-shadow: 0 0 12px rgba(0,0,0,0.03), 0 0 18px currentColor;
    opacity: 1;
    transform: translateZ(0);           /* help GPU-rendered glow */
    mix-blend-mode: screen;             /* helps the glow look brighter on dark backgrounds */
}

.department-card:nth-child(1) { box-shadow: 0 0 20px var(--police-accent); }
.department-card:nth-child(2) { box-shadow: 0 0 20px var(--mod-accent);}
.department-card:nth-child(3) { box-shadow: 0 0 20px var(--fire-accent); }
.department-card:nth-child(4) { box-shadow: 0 0 20px var(--ambulance-accent);}
.department-card:nth-child(5) { box-shadow: 0 0 20px var(--highways-accent);}
.department-card:nth-child(6) { box-shadow: 0 0 20px var(--primary-color); }

.department-card:nth-child(1)::before {color: var(--police-accent); }
.department-card:nth-child(2)::before {color: var(--mod-accent); }
.department-card:nth-child(3)::before {color: var(--fire-accent); }
.department-card:nth-child(4)::before {color: var(--ambulance-accent); }
.department-card:nth-child(5)::before {color: var(--highways-accent); }
.department-card:nth-child(6)::before {color: var(--primary-color); }

.department-card:nth-child(1) { --glow-color: var(--police-accent); }
.department-card:nth-child(2) { --glow-color: var(--mod-accent); }
.department-card:nth-child(3) { --glow-color: var(--fire-accent); }
.department-card:nth-child(4) { --glow-color: var(--ambulance-accent); }
.department-card:nth-child(5) { --glow-color: var(--highways-accent); }
.department-card:nth-child(6) { --glow-color: var(--primary-color); }


.department-card:hover {
  border-color: var(--glow-color);  
  box-shadow:
      0 0 10px var(--glow-color),
      0 0 20px var(--glow-color),
      0 0 40px var(--glow-color),
      0 0 60px var(--glow-color);            /* multi-layer glow */
  transform: translateY(-8px);               /* subtle lift */
}

.department-card:hover::before {
    /* multiple shadow layers create a deep, vivid glow */
    box-shadow:
        0 10px 22px rgba(0,0,0,0.28),   /* deeper main shadow */
        0 0 30px currentColor,
        0 0 70px currentColor,
        0 0 140px currentColor;
    border-color: currentColor;         /* ensure the border also matches */
    transform: scale(1.01);             /* tiny grow for a softer halo edge */
    animation: pulseGlow 1.8s ease-in-out infinite;
    opacity: 1;
}

@keyframes pulseGlow {
    0% {
    box-shadow:
        0 10px 22px rgba(0,0,0,0.28),
        0 0 25px currentColor,
        0 0 60px currentColor,
        0 0 120px currentColor;
    }
    50% {
    box-shadow:
        0 12px 26px rgba(0,0,0,0.34),
        0 0 40px currentColor,
            0 0 100px currentColor,
        0 0 180px currentColor;
    }
    100% {
    box-shadow:
        0 10px 22px rgba(0,0,0,0.28),
        0 0 25px currentColor,
        0 0 60px currentColor,
        0 0 120px currentColor;
    }
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    height: 200px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.dept-logo {
    width: 10000px;
    height: 10000px;
    object-fit: contain;
    border-radius: 50%;
    filter: brightness(1.1) contrast(1.05);
    transition: all 0.3s ease;
    
}

.department-card:nth-child(1) .card-icon { color: var(--police-accent); }
.department-card:nth-child(2) .card-icon { color: var(--mod-accent); }
.department-card:nth-child(3) .card-icon { color: var(--fire-accent); }
.department-card:nth-child(4) .card-icon { color: var(--ambulance-accent); }
.department-card:nth-child(5) .card-icon { color: var(--highways-accent); }
.department-card:nth-child(6) .card-icon { color: var(--primary-color); }

.department-card h2 {
    margin-bottom: 1rem;
    font-weight: 750;
    letter-spacing: 0.5px;
}

.department-card h2::after {
    background-color: currentColor;
}

.department-card:nth-child(1) h2 { color: var(--police-accent); }
.department-card:nth-child(2) h2 { color: var(--mod-accent); }
.department-card:nth-child(3) h2 { color: var(--fire-accent); }
.department-card:nth-child(4) h2 { color: var(--ambulance-accent); }
.department-card:nth-child(5) h2 { color: var(--highways-accent); }
.department-card:nth-child(6) h2 { color: var(--primary-color); }

/* Other departments card styles */
.other-departments-card .btn {
    margin-top: 0.5rem;
}

.department-card p {
    margin-bottom: 1.5rem;
}

/* Join Section */
.join {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.join::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 60, 125, 0.2), transparent 70%);
    z-index: 0;
}

.join .container {
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    background: #5865F2;
    padding: 1rem 2rem;
    transform: scale(1);
}

.discord-btn:hover {
    background: #4752C4;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 1rem;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 1rem;
    filter: drop-shadow(var(--logo-glow));
    transition: transform var(--transition-speed) ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--footer-text);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--footer-text);
    font-size: 1.5rem;
    transition: all var(--transition-speed) ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.03);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: var(--card-border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed) ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Vote Popup */
.vote-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(100px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vote-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vote-popup-content {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)),
        linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(99, 102, 241, 0.05));
    backdrop-filter: blur(25px) saturate(180%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    width: 320px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: popupGlow 3s ease-in-out infinite;
}

@keyframes popupGlow {
    0%, 100% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(243, 156, 18, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

.vote-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.vote-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.vote-popup-icon {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 1rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.vote-popup h3 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.vote-popup p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.vote-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.vote-btn {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.vote-btn.primary {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.vote-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.5);
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.vote-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vote-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

/* Mobile responsive for vote popup */
@media (max-width: 576px) {
    .vote-popup {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .vote-popup-content {
        width: auto;
        padding: 2rem 1.5rem;
    }
    
    .vote-popup h3 {
        font-size: 1.2rem;
    }
    
    .vote-popup p {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    nav ul li {
        margin-left: 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.95rem;
    }
    
    .department-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    
    .logo .full-name {
        display: none;
    }
    
    .logo .short-name {
        display: inline-block;
        font-size: 1.3rem;
        font-weight: 700;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--header-bg);
        transition: left 0.3s ease;
        z-index: 100;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    nav ul li a {
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero .container {
        padding: 2rem;
        max-width: 90%;
    }
    
    .slide-btn {
        font-size: 1.4rem;
        width: 50px;
        height: 50px;
    }
    
    .prev-btn {
        left: 1.5rem;
    }
    
    .next-btn {
        right: 1.5rem;
    }
    
    .slide-dots {
        bottom: 2rem;
        padding: 0.8rem 1.5rem;
        gap: 1rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .department-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .card-icon {
        height: 70px;
        width: 70px;
        font-size: 2.5rem;
    }
    
    .discord-btn {
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .logo img {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero .container {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .department-card {
        padding: 1.8rem 1.2rem;
    }
    
    
    .about-text {
        padding: 1.8rem;
    }
    
    .join .container {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .logo img {
        height: 35px;
    }
    
    .logo .short-name {
        font-size: 1.1rem;
    }
    
    #theme-toggle-btn {
        padding: 6px;
        font-size: 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .department-cards {
        grid-template-columns: 1fr;
    }
}