* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #4caf50;
    --secondary: #81c784;
    --light: #f5fff5;
    --dark: #1d2b1f;
    --card: rgba(255, 255, 255, 0.75);
    --text: #333;
    --shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

.bg-gif {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: url('bg.gif'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.bg-gif::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

body {
    background: transparent;
    color: #ffffff;
    overflow-x: hidden;
    transition: .4s;
    position: relative;
}

body.dark {
    background: rgba(15, 25, 18, 0.6); 
    color: #f2f2f2;
}

body.dark .navbar,
body.dark .about-container,
body.dark .project-card,
body.dark .contact-container {
    background: rgba(20, 30, 20, 0.85);
}

body.dark p,
body.dark h1,
body.dark h2,
body.dark h3 {
    color: #fff;
}

#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 5px;
    background: #4caf50;
    z-index: 9999;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 4%;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, .5);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px; 
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.logo img {
    height: 45px;          
    width: 45px;           
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary);  
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.08);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: .3s;
}

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

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

#darkMode {
    border: none;
    background: #4caf50;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: .3s;
}

#darkMode:hover {
    transform: rotate(180deg);
}

.menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 8%;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h3 {
    color: #81c784;
    margin-bottom: 10px;
}

.hero-text h1 {
    font-size: 55px;
    margin-bottom: 15px;
}

.hero-text h2 {
    color: #4caf50;
    margin-bottom: 20px;
}

.hero-text p {
    line-height: 1.8;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 360px;
    height: 360px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .3);
    transition: .4s;
}

.hero-image img:hover {
    transform: scale(1.05) rotate(2deg);
}

section {
    padding: 90px 8%;
    background: transparent;
}

.section-title {
    text-align: center;
    font-size: 38px;
    margin-bottom: 60px;
    color: #81c784;
}

.about-container {
    display: flex;
    gap: 50px;
    align-items: center;
    background: var(--card);
    padding: 40px;
    border-radius: 25px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    color: var(--text);
}

.about-image img {
    width: 260px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-bottom: 20px;
}

.about-text p {
    line-height: 1.9;
    margin-bottom: 15px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--card);
    border-radius: 25px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    transition: .4s;
    display: flex;
    flex-direction: column;
    color: var(--text);
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-media-grid {
    display: block;
    width: 100%;
    overflow: hidden;
}

.project-media-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.project-media-grid img:hover {
    transform: scale(1.04);
}

.project-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 24px;
    color: #2e7d32;
    margin-bottom: 12px;
}

.project-info p {
    line-height: 1.8;
    margin-bottom: 0;
    flex-grow: 1;
}

.services-container {
    text-align: center;
    margin-bottom: 35px;
    color: #81c784;
    font-weight: 500;
}

.divider {
    margin: 0 10px;
}

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

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

#contact {
    text-align: center;
}

.contact-container {
    background: var(--card);
    padding: 40px;
    border-radius: 25px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    display: inline-block;
    color: var(--text);
}

.contact-info p {
    font-size: 18px;
    margin: 15px 0;
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

#topBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    font-size: 18px;
}
.group-link{
    position:fixed;
    bottom:150px;
    right:20px;
    background:4caf50 !important;
    color:#fff !important;
    padding:12px 20px;
    border-radius:50px;
    text-decoration:none;
    font-weight:500;
    z-index:9999 !important;
    transition:.3s ease;
}

.group-link:hover{
    background:#81c784 !important;
    transform:translateX(-5px);
}