/* Base styles and reset */
:root {
    --primary-color: #2a8674;
    --primary-dark: #1e6c5a;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f2f2f2;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e0e0e0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.highlight {
    color: var(--primary-color);
}

.ampersand {
    font-style: italic;
    font-weight: 300;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-light);
}

section {
    padding: 5rem 0;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 32px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* Hero section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    background-color: var(--bg-light);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background-color: rgba(42, 134, 116, 0.1);
    transform: translateY(-2px);
}

/* Projects section */
.projects {
    background-color: var(--bg-white);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #ddd
}

/* Apply specific images based on card position */
.project-card:nth-child(1) .project-image {
    background-image: url('Assets/Cover/Alertify.webp');
}

.project-card:nth-child(2) .project-image {
    background-image: url('Assets/Cover/Angio\ Sense.webp');
}

.project-card:nth-child(3) .project-image {
    background-image: url('Assets/Cover/Avani.webp');
}

.project-card:nth-child(4) .project-image {
    background-image: url('Assets/Cover/Bhumicare.webp');
}

.project-card:nth-child(5) .project-image {
    background-image: url('Assets/Cover/Crime\ Vision.webp');
}

.project-card:nth-child(6) .project-image {
    background-image: url('Assets/Cover/Eco\ Scrap.webp');
}

.project-card:nth-child(7) .project-image {
    background-image: url('Assets/Cover/Mavex.webp');
}

.project-card:nth-child(8) .project-image {
    background-image: url('Assets/Cover/Neytri.webp');
}

.project-card:nth-child(9) .project-image {
    background-image: url('Assets/Cover/Prevenix.webp');
}

.project-card:nth-child(10) .project-image {
    background-image: url('Assets/Cover/RAKSHATI.webp');
}

.project-card:nth-child(11) .project-image {
    background-image: url('Assets/Cover/RESQUBE.webp');
}

.project-card:nth-child(12) .project-image {
    background-image: url('Assets/Cover/ThreatSentry.webp');
}

.project-content {
    padding: 1.5rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.tag {
    background-color: rgba(42, 134, 116, 0.1);
    color: var(--primary-color);
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

.view-project {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.view-project:hover {
    color: var(--primary-dark);
}

/* Events section */
.events {
    background-color: var(--bg-light);
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.event-tag {
    background-color: var(--bg-white);
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: none;
}

.event-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.event-tag.active {
    background-color: var(--primary-color);
    color: white;
}

.event-tag2{
    background-color: var(--bg-light);
    box-shadow: none;
}

/* Team section */
.team {
    background-color: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}


/* .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
} */

.team-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 2px solid var(--primary-color);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(42, 134, 116, 0.1);
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Contact section */
.contact {
    background-color: var(--bg-white);
}

.contact-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: var(--bg-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 134, 116, 0.1);
}

/* Footer */
footer {
    background-color: #145045;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Footer links styling */
.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: aquamarine;
    text-decoration: underline;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
}

/* Legal modals styling */
.legal-modal .modal-content {
    max-width: 800px;
    max-height: 80vh;
}

.legal-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.legal-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Make the modals scrollable */
.legal-modal .modal-body {
    overflow-y: auto;
    max-height: calc(80vh - 120px);
    /* Account for header and padding */
}

/* Mobile responsiveness for legal modals */
@media (max-width: 768px) {
    .legal-modal .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .legal-modal .modal-body {
        padding: 1.5rem;
        max-height: calc(85vh - 100px);
    }

    .legal-content {
        font-size: 0.9rem;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: var(--bg-white);
    margin: 5vh auto;
    width: 90%;
    max-width: 900px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transform: translateY(-30px);
    transition: transform 0.5s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.modal-header h2 {
    margin-bottom: 0;
    text-align: left;
}

.modal-body {
    padding: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-stack-item {
    background-color: rgba(42, 134, 116, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-stack-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Gallery styles */
.photo-gallery {
    position: relative;
    margin-top: 1rem;
}

.gallery-container {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    border-radius: var(--border-radius);
    background-color: #f8f8f8;
    box-shadow: var(--shadow-sm);
}

.gallery-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: opacity 0.3s ease;
    display: none;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.gallery-prev,
.gallery-next {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.menu-icon {
    display: none;

}

/* Gallery Section Styles */
.gallery-section {
    padding: 80px 0;
    background-color: var(--bg-white);
    color: #fff;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;    
}

.gallery-header h2 {
    color: var(--text-dark); 
}

/* .gallery-header p {
    font-size: 18px;
    color: #a3a3a3;
    max-width: 700px;
    margin: 0 auto;
} */

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 30px;
}

/* .filter-btn {
    background: transparent;
    color: #a3a3a3;
    border: 1px solid #404246;
    padding: 8px 20px;
    margin: 5px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #404246;
    color: #fff;
}

.filter-btn.active {
    background-color: #0085FF;
    color: #fff;
    border-color: #0085FF;
} */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-item-date {
    color: #a3a3a3;
    font-size: 14px;
}

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
}

.modal-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    color: #fff;
    width: 100%;
    text-align: center;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.modal-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-nav button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .gallery-item {
        height: 250px;
    }

    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .gallery-header h2 {
        font-size: 28px;
    }

    .gallery-header p {
        font-size: 16px;
    }

    .filter-btn {
        padding: 6px 15px;
        font-size: 14px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadein {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeout {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes slideinfromright {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes slideouttoright {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 2rem;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        right: 40px;
        position: absolute;
        color: var(--text-dark);
    }

    #menu-icon-close {
        display: none;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: white;
        width: 150px;
        box-shadow: var(--shadow-sm);
        padding: 1rem;
        border-radius: var(--border-radius);
        z-index: 1000;
    }

    nav ul li {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .project-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        right: 40px;
        position: absolute;
        color: var(--text-dark);
    }

    #menu-icon-close {
        display: none;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: white;
        width: 150px;
        box-shadow: var(--shadow-sm);
        padding: 1rem;
        border-radius: var(--border-radius);
        z-index: 1000;
    }

    nav ul li {
        margin-bottom: 1rem;
    }
}