* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #3c2a98;
    --secondary: #3c2a98;
    --background: #f8f9fa;
    --text: #2c3e50;
    --white: #ffffff;
}

body {
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Donate Button */
.btn-conteiner {
  display: flex;
  justify-content: center;
  --color-text: #ffffff;
  --color-background: #3c2a98;
  --color-outline: #ff145b80;
  --color-shadow: #00000080;
}

.btn-content {
  display: flex;
  align-items: center;
  padding: 5px 30px;
  text-decoration: none;
  /* font-family: 'Poppins', sans-serif; */
  font-weight: 600;
  font-size: 30px;
  color: var(--color-text);
  background: var(--color-background);
  transition: 1s;
  border-radius: 100px;
  box-shadow: 0 0 0.2em 0 var(--color-background);
}

.btn-content:hover, .btn-content:focus {
  transition: 0.5s;
  -webkit-animation: btn-content 1s;
  animation: btn-content 1s;
  outline: 0.1em solid transparent;
  outline-offset: 0.2em;
  box-shadow: 0 0 0.4em 0 var(--color-background);
}

.btn-content .icon-arrow {
  transition: 0.5s;
  margin-right: 0px;
  transform: scale(0.6);
}

.btn-content:hover .icon-arrow {
  transition: 0.5s;
  margin-right: 25px;
}

.icon-arrow {
  width: 20px;
  margin-left: 15px;
  position: relative;
  top: 6%;
}
  
/* SVG */
#arrow-icon-one {
  transition: 0.4s;
  transform: translateX(-60%);
}

#arrow-icon-two {
  transition: 0.5s;
  transform: translateX(-30%);
}

.btn-content:hover #arrow-icon-three {
  animation: color_anim 1s infinite 0.2s;
}

.btn-content:hover #arrow-icon-one {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.6s;
}

.btn-content:hover #arrow-icon-two {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.4s;
}

/* SVG animations */
@keyframes color_anim {
  0% {
    fill: white;
  }

  50% {
    fill: var(--color-background);
  }

  100% {
    fill: white;
  }
}

/* Button animations */
@-webkit-keyframes btn-content {
  0% {
    outline: 0.2em solid var(--color-background);
    outline-offset: 0;
  }
}

@keyframes btn-content {
  0% {
    outline: 0.2em solid var(--color-background);
    outline-offset: 0;
  }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 1rem;
    transition: 0.3s;
    z-index: 1000;
}
.nav.scrolled {
    background: rgba(255, 255, 255, 0.562); /* Transparent white */
    backdrop-filter: blur(20px); /* Blur the background behind */
    -webkit-backdrop-filter: blur(12px); /* For Safari support */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Soft shadow */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Optional glass border */
    transition: all 0.3s ease-in-out;
}


@font-face {
    font-family: 'logo';
    src: url('../fonts/COOPBL.TTF') format('truetype');
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: 0.3s;
}

.logo {
    font-family: 'logo';
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}

.nav.scrolled .logo {
    color: var(--primary);
}

.nav.scrolled a {
    color: var(--primary);
}

.nav.scrolled .btn {
    color: var(--white);
    background-color: var(--secondary);
}

/* New styles for nav items and mobile menu */
.nav-items {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-items a {
    color: var(--white);
    text-decoration: none;
    font-weight: 1000;
    transition: 0.3s;
}

.nav-items a:hover {
    color:#faffb1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(white);
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(45deg, #3c2a98e0, #00c3ffe0);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 5rem;
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
    font-size: 4.5rem;
    /* margin-bottom: 0.5rem; */
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-icon {
    width: 30%;
}

.hero-main-img {
    position: absolute;
    bottom: 0;
    right: 5%;
    width: 400px;
    max-width: 90%;
    z-index: 0;
    opacity: 0.8;
    animation: fadeUp 2s ease-in-out;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Mission Section */
.mission {
    padding: 3rem 2rem;
    background: var(--white);
}

.mission-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 1rem;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
    box-shadow: 15px 15px 30px #bebebe,
             -15px -15px 30px #ffffff;
}

.mission-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.mission-icon {
    width: 80px;
    height: auto;
}
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
   box-shadow: 15px 15px 30px #bebebe,
             -15px -15px 30px #ffffff;
    transition: 0.3s;
}
.gradient-text {
    background: linear-gradient(45deg, #3c2a98, #00c3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}


.mission-card:hover {
    box-shadow: 15px 15px 30px #bebebe,
             -15px -15px 30px #a5a5a53f;
    transform: translateY(-50px);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}



/* Loading Animation */
#logo-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 1.5s ease-in-out forwards;
    animation-delay: 2.5s;
}

#logo-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: 
        pulse 1.5s infinite alternate, 
        expand 1s ease-in-out forwards;
}

#logo-container img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

#main-content {
    opacity: 0;
 
    animation: revealContent 1s ease-in-out forwards;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes expand {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { 
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes revealContent {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Activities Section */
.activities {
  padding: 3rem 2rem;
  background: linear-gradient(45deg, #332483d8, #00c3ffe0);
  color: var(--white);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 24px;
  line-height: 1.6;
  transition: all 0.64s cubic-bezier(0.23, 1, 0.32, 1);
  border: #ffffff;
  border-width: 1px;
  border-style: solid;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 36px;
  border-radius: 24px;
  /* background: transparent; */
  color: #ffffff;
  z-index: 1;
  transition: all 0.64s cubic-bezier(0.23, 1, 0.32, 1);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background-color: #3c2a98;
  border-radius: inherit;
  height: 100%;
  width: 100%;
  opacity: 0;
  transform: skew(-24deg);
  clip-path: circle(0% at 50% 50%);
  transition: all 0.64s cubic-bezier(0.23, 1, 0.32, 1);
}

.content .heading {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.3;
  z-index: 1;
}

.content .para {
  z-index: 1;
  opacity: 0.85;
  font-size: 17px;
}


.card:hover::before {
  opacity: 1;
  transform: skew(0deg);
  clip-path: circle(140.9% at 0 0);
}

.card:hover .content {
  color: #ffffff;
}

/* Notes List Styling */
.activities .notes {
  margin-top: 3rem;
  list-style-type: disc;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: #ffffffcc;
}

/* Gallery Section */
.main-gallery-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-title {
  font-size: 1.1rem;
  text-align: center;
  color: var(--text);
  font-weight: 600;
}

.main-gallery {
    padding: 3rem 2rem;
    background: var(--background);
}
 .main-gallery-header {
            padding: 2rem 2rem;
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            color: var(--white);
            text-align: center;
        }

.main-gallery-grid {
    display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.main-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 4/3;
}

.main-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s transform;
    object-position: 56% 0%;
}

.main-gallery-item:hover img {
    transform: scale(1.5);
}

.main-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(45deg, rgba(46, 31, 140, 0.873), rgba(18, 169, 229, 0.875));
    color: rgb(255, 255, 255);
    font-size: larger;
    font-weight: bold;
    text-align: center;
    padding: 3rem;
    transform: translateY(100%);
    transition: 0.3s;
    width: 100%;
    height: 100%;
}

.main-gallery-item:hover .main-gallery-overlay {
    transform: translateY(0);
}

.gallery-section-description {
  text-align: center;
  max-width: 800px;
  margin: 50px auto;
  font-size: 1.1rem;
  color: #000000;
  opacity: 0.9;
}

/* Newsletter Section */
.newsletters {
    padding: 3rem 2rem;
    background: linear-gradient(45deg, #3c2a98e0, #00c3ffe0);
    color: var(--white);
}

.sovinour-section {
  padding: 3rem 2rem;
  background: var(--white);
}

.sovinour-content {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1rem;
  
  transition: 0.3s ease-in-out;
}

.sovinour-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sovinour-text {
  flex: 1;
}

.sovinour-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.sovinour-text p {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.6;
}

.sovinour-text .btn.download-btn {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(45deg, #3c2a98, #00c3ff);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.sovinour-text .btn.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(60, 42, 152, 0.4);
}


/* Responsive tweak */
@media (max-width: 768px) {
  .sovinour-content {
    flex-direction: column;
    text-align: center;
  }

  .sovinour-img img {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* ========== RESPONSIVE DESIGN ========== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #3c2a98, #00c3ff);
    color: var(--white);
    text-decoration: none;
    border-radius: 2rem;
    transition: 0.3s;
    
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


/* Extra Large Screens */
@media (min-width: 1440px) {
    .nav-content {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
    
    .hero p {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Large Screens */
@media (max-width: 1200px) {
    .nav-content {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
    
    .hero-main-img {
        width: 350px;
    }
}

/* Medium Screens - Tablets */
@media (max-width: 1024px) {
    .nav-content {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .hero-main-img {
        width: 300px;
        right: 3%;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .mission,
    .activities,
    .main-gallery,
    .donors,
    .donation,
    .newsletters {
        padding: 4rem 1.5rem;
    }
    
    .mission-grid,
    .activities-grid,
    .donors-grid,
    .newsletter-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .main-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Small Tablets */
@media (max-width: 768px) {
    /* Navigation */
    .nav {
        padding: 0.8rem 1rem;
    }
    
    .nav-content {
        padding: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle span {
        background-color: var(--white);
    }
    
    .nav.scrolled .nav-toggle span {
        background-color: var(--primary);
    }

    .nav-items {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: rgba(60, 42, 152, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
    }

    .nav-items.active {
        display: flex;
    }
    
    .nav-items a {
        font-size: 1.2rem;
        color: var(--white) !important;
    }

    .nav-toggle.active span:first-child {
        transform: rotate(45deg);
        background-color: var(--white);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:last-child {
        transform: rotate(-45deg);
        background-color: var(--white);
    }
    
    /* Logo adjustments */
    .logo-img {
        height: 40px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    .hero {
        height: 90vh;
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-icon {
        width: 40%;
        max-width: 150px;
    }
    
    .hero-main-img {
        width: 250px;
        right: 2%;
        bottom: -10px;
    }
    
    /* Section adjustments */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .mission,
    .activities,
    .main-gallery,
    .donors,
    .donation,
    .newsletters {
        padding: 3rem 1rem;
    }
    
    /* Grid adjustments */
    .mission-grid,
    .activities-grid,
    .donors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .newsletter-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .main-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    /* Card adjustments */
    .mission-card,
    .activity-card,
    .donor-card {
        padding: 1.5rem;
    }
    
    .newsletter-content {
        padding: 1.2rem;
    }
    
    .newsletter-title {
        font-size: 1.1rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: 10% auto;
        padding: 15px;
        width: 95%;
    }

    .close-btn {
        font-size: 30px;
        right: -32px;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    /* Navigation */
    .nav {
        padding: 0.5rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-items {
        gap: 2.5rem;
    }
    
    .nav-items a {
        font-size: 1.1rem;
    }
    
    /* Hero Section */
    .hero {
        height: 100vh;
    }
    
    .hero-content {
        padding: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-icon {
        width: 90%;
        max-width: 420px;
    }
    
    /* Section adjustments */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .mission,
    .activities,
    .main-gallery,
    .donors,
    .donation,
    .newsletters {
        padding: 2.5rem 0.8rem;
    }
    
    /* Grid adjustments */
    .newsletter-grid,
    .main-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Card adjustments */
    .mission-card,
    .activity-card,
    .donor-card {
        padding: 1.2rem;
    }
    
    .newsletter-content {
        padding: 1rem;
    }
    
    .newsletter-title {
        font-size: 1rem;
    }
    
    .newsletter-excerpt {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 1.5rem;
    }
    
    /* Footer adjustments */
    footer {
        padding: 3rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: 5% auto;
        padding: 10px;
        width: 98%;
    }

    .close-btn {
        font-size: 28px;
        right: -22px;
    }
    
    /* Loading screen adjustments */
    #logo-container img {
        max-width: 80%;
        max-height: 80%;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .mission,
    .activities,
    .main-gallery,
    .donors,
    .donation,
    .newsletters {
        padding: 2rem 0.5rem;
    }
    
    .mission-card,
    .activity-card,
    .donor-card,
    .newsletter-content {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-main-img {
        width: 180px;
    }
    
    .nav-items {
        gap: 2rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-main-img,
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-main-img {
        animation: none;
    }
    
    #logo-loader {
        animation: none;
    }
    
    #logo-container {
        animation: none;
    }
    
    #main-content {
        animation: none;
        opacity: 1;
        transform: scale(1);
    }
}