@tailwind base;
@tailwind components;
@tailwind utilities;

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color:white;
    color: #f7f7f6;
}


/* Reduce Navbar Font Size */
.nav-links a {
    font-size: 16px;
    padding: 5px 10px;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

/* Logo Section */
.logo-video {
    width: 70px;
    height: 70px;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-container img {
    width: 90px;
    height: 90px;
}

/* Adjusted Logo Text */
.logo {
    color: rgb(244, 241, 244);
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 
    2px 2px 5px #33716a,  /* Bottom-right */
    -2px -2px 5px #7cb7b0, /* Top-left */
    -2px 2px 5px #6ca8a1,  /* Bottom-left */
    2px -2px 5px #5bb0a6;  /* Top-right */

}
/*header*/
header {
    background-color: #000102;
    width: 100%;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    display: inline;
}

/* Default Link Style */
.nav-links a {
    position: relative;
    text-decoration: none;
    padding-bottom: 5px; /* Space for underline */
    color: #00E6CD;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00F5A0, #00D9F5);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}


/* Active Page Highlight */
.nav-links a.active {
    color: #00F5A0;
    font-weight: bolder;
    border-bottom: 3px solid #00F5A0;
    padding-bottom: 5px;
    text-decoration: none;
}

/* Main Content */
.main-content {
    padding-top: 100px;
    width: 90%;
    margin: 0 auto;
    align-items: center;
}

/* Hero Section */
.hero {
    text-align: center;
    padding-top: 50px;
    padding-bottom: 40px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('https://static.vecteezy.com/system/resources/previews/007/950/584/large_2x/concept-save-the-world-save-environment-the-world-is-in-the-grass-of-the-green-bokeh-background-photo.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #fff;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-button {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:first-child {
    background: linear-gradient(90deg, #00F5A0, #00D9F5);
    color: #000;
}

.cta-button.secondary {
    border: 2px solid #00F5A0;
    color: #fff;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background: rgba(30, 2, 2, 0.893);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Emergency Contacts */
.emergency-contacts {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Latest Updates */
.latest-updates {
    margin-bottom: 40px;
}

.updates-list {
    display: grid;
    gap: 20px;
}

.update-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.date {
    color: #00F5A0;
    font-size: 0.9em;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }
    
    .nav-links {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.button {
  position: relative;
  width: 120px;
  height: 40px;
  background-color: #000;
  display: flex;
  align-items: center;
  color: white;
  flex-direction: column;
  justify-content: center;
  border: none;
  padding: 12px;
  gap: 12px;
  border-radius: 8px;
  cursor: pointer;
}

.button:hover::after {
  filter: blur(30px);
}

.button:hover::before {
  transform: rotate(-180deg);
}

.button:active::before {
  scale: 0.7;
}

@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .nav-links a {
        font-size: 16px;
        display: block;
        padding: 8px 0;
    }
}

/* For Extra Small Screens */
@media screen and (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .nav-links a {
        font-size: 14px;
    }
}

.contact-info, .contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    width: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.contact-info h2, .contact-form h2 {
    color: #00f5a0;
}
input, textarea {
    width: 90%;
    padding: 5px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    outline: none;
}
input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
form button {
    background: #00f5a0;
    color: #1e1e2f;
    font-size: 18px;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}
form button:hover {
    background: #00d9f5;
    font-size:20px;
}
/* Background Video */
.background-video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.background-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Form Styling */
.contact-form-div {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

.contact-form {
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    border-radius: 10px;
    color: white;
    text-align: center;
    width: 40%;
    padding-right: 70px;
}

.contact-form label {
    display: block;
    margin-bottom: 2px;
    font-size: 1rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
}

.contact-form button {
    background: #089f68;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #15c5c5;
}

.contact-heading {
    font-size: 40px;
    display: inline-block;
    border-right: 3px solid white;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 4s steps(50, end) forwards, blink 0.7s infinite;
    text-shadow: 5px 5px 5px black;

}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}
.nav-logos{
    height: 25px;
    width: 30px;
    border-radius: 50%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px; 
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding-right: 8px; /* Space between text and icon */
}

.nav-logos {
    width: 20px;  /* Adjust size as needed */
    height: 20px;
}

/* Forum Section */
.forum {
    padding: 40px;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    margin: 5vh auto;
    background-color: var(--surface);
    border-radius: 12px;
    padding: 1rem;
}

.close-btn {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--primary);
}

.chat-container {
    height: calc(100% - 2rem);
    margin-top: 2rem;
}

#whatsapp-frame {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .topic-meta {
        flex-direction: column;
        gap:0.5rem;
}
}




/* Forum Topics Layout */
.forum-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* Topic Cards */
.topic-card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    width: 320px;
    transition: 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(7, 189, 225, 0.3);
    cursor: pointer;
    border: 1px solid rgba(24, 159, 222, 0.5);
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(12, 178, 219, 0.5);
}

/* Topic Titles */
.topic-card h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color:#00F5A0;
}

/* Topic Meta Information */
.topic-meta {
    font-size: 14px;
    color: #ccc;
    display: flex;
    flex-direction: column;
    gap: 5px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .forum-topics {
        flex-direction: column;
        align-items: center;
    }

    .topic-card {
        width: 90%;
    }
}



.donate {
    padding-top: 60px;
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Space between elements */
}

.note {
    width: 60%;
    text-align: center;
    padding: 50px;
    border: 3px solid #ccc;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

/* Common styling for all donation boxes */
.money, .food, .clothes {
    display: flex;
    align-items: flex-start;
    width: 60%;
    padding: 20px;
    border: 3px solid #ccc;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    background: white;
    position: relative;
}

/* Image styling - first & third images left, second image right */
.money img{
    width:300px;
    height: 300px;
}
.money img, .clothes img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 15px; /* Image on the left */
}

.food img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-left: 15px; /* Image on the right */
    order: 2; /* Moves the image to the right */
}

/* Text and button container */
.money .txt, .food .txt, .clothes .txt {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
}

/* Ensure text takes full width and button goes below */
.money p, .food p, .clothes p {
    flex-grow: 1; /* Pushes the button to the bottom */
    padding: 10px 20px;
    text-align: left;
}

.donate {
    padding-top: 100px;
    display: flex;
    flex-direction: column; /* Stacks elements vertically */
    align-items: center; /* Centers elements inside */
    justify-content: center;
    gap: 20px; /* Adds spacing between elements */
    width: 80%; /* Adjust width as needed */
    max-width: 800px; /* Prevents it from stretching too much */
    margin: auto; /* Ensures centering */
}

.note, .money, .food, .clothes {
    display: flex;
    align-items: center; /* Aligns text and image */
    justify-content: space-between; /* Spaces text & image */
    background-color: #292929; /* Slightly lighter than body */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 600px; /* Prevents divs from being too wide */
}

.note img, .money img, .food img, .clothes img {
    width: 150px; /* Set image width */
    height: auto;
    border-radius: 8px;
    margin-left: 15px; /* Space between text and image */
}

p {
    font-size: 16px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .note, .money, .food, .clothes {
        flex-direction: column; /* Stack image and text on small screens */
        text-align: center;
    }

    .note img, .money img, .food img, .clothes img {
        margin: 15px 0 0 0; /* Center image below text */
    }
}

/* Container for the posts page */
.container {
    max-width: 600px; /* Narrower container for Instagram-like feed */
    margin: 0 auto;
    padding: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745; /* Green to match the nav icons */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #218838; /* Darker green on hover */
}

/* Posts Section */
.posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual Post Card */
.post-card {
    background-color: #fff;
    border: 1px solid #dbdbdb; /* Instagram-like border */
    border-radius: 8px;
    overflow: hidden;
}

/* Post Header (User Info) */
.post-header {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #dbdbdb;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: bold;
    color: #333;
}

.post-meta {
    font-size: 0.8em;
    color: #777;
}

/* Post Image */
.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Actions (Like and Share Buttons) */
.post-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.like-btn, .share-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 1em;
    color: #333;
}

.heart-icon {
    font-size: 1.2em;
}

.like-btn:hover .heart-icon {
    color: #e0245e; /* Instagram-like red heart on hover */
}

.share-icon {
    font-size: 1.2em;
}

.share-btn:hover {
    color: #007bff; /* Blue on hover */
}

.like-count {
    font-size: 0.9em;
}

/* Post Content (Caption) */
.post-content {
    padding: 10px;
}

.post-content p {
    font-size: 0.9em;
    color: #333;
    line-height: 1.5;
}

.post-content strong {
    font-weight: bold;
}

.container {
    text-align: center;
}

.like-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff4081;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.like-button:hover {
    background-color: #e6005c;
}

.like-button img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.count {
    font-size: 22px;
    margin-top: 10px;
}


/* Responsive Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #333;
    color: white;
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li {
    padding: 0 15px;

/* Hamburger Menu for Mobile */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #333;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

/* Responsive Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}
.feature-box {
    background: #f4f4f4;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

/* Responsive Footer */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    background: #222;
    color: white;
}
.footer-content {
    flex: 1 1 250px;
    padding: 10px;
}

@media (max-width: 600px) {
    .footer {
        flex-direction: column;
        text-align: center;
    }
}

/* Buttons and Text Scaling */
.button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}
@media (max-width: 600px) {
    .button {
        font-size: 0.9rem;
    }
}

/* Additional Responsive Breakpoints */
@media screen and (max-width: 1200px) {
    .main-content {
        width: 95%;
    }
    
    .contact-form {
        width: 60%;
    }
    
    .money, .food, .clothes {
        width: 80%;
    }
}

@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 2.5em;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form {
        width: 70%;
        padding-right: 40px;
    }
    
    .emergency-contacts {
        padding: 30px;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .money img, .food img, .clothes img {
        width: 180px;
        height: 180px;
    }
}

@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 10px;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        width: 85%;
        padding-right: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .forum-topics {
        padding: 10px;
    }
    
    .topic-card {
        width: 100%;
    }
    
    .money, .food, .clothes {
        flex-direction: column;
        width: 90%;
        text-align: center;
    }
    
    .money img, .food img, .clothes img {
        width: 100%;
        max-width: 250px;
        margin: 0 auto 15px;
        order: 1;
    }
    
    .txt {
        order: 2;
    }
    
    .post-card {
        margin: 10px 0;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 18px;
    }
    
    .hero h1 {
        font-size: 1.8em;
    }
    
    .hero p {
        font-size: 1em;
    }
    
    .contact-form {
        width: 95%;
        padding: 15px;
    }
    
    .contact-heading {
        font-size: 28px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .emergency-contacts {
        padding: 20px;
    }
    
    .note {
        width: 90%;
        padding: 20px;
    }
    
    .post-header {
        padding: 8px;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
    }
    
    .post-actions {
        padding: 8px;
    }
    
    .like-button {
        padding: 8px 16px;
        font-size: 16px;
    }
    
    .money img, .food img, .clothes img {
        max-width: 200px;
    }
}