:root {
    --primary-green: #39D96F;
    --body-bg-color: #252526;
    --heading-btn-color: #F9F9F9;
    --text-color-light: #FFFFFF;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bg-color);
    color: var(--text-color-light); /* Default text color for general paragraphs */
    line-height: 1.6;
}

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

h1, h2, h3 {
    color: var(--heading-btn-color);
    margin-bottom: 20px;
}

p {
    color: var(--text-color-light); /* Override if specific sections need different p color */
}

a {
    text-decoration: none;
    color: var(--heading-btn-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: 200px;
}
.primary-btn {
  display: flex;
  align-items: center;  /* Vertically center */
  justify-content: center; /* Center horizontally instead of space-between */
  background-color: var(--primary-green, #3bd475);
  border: 2px solid var(--primary-green, #3bd475);
  padding: 4px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 500;
  color: white;
  position: relative;
  gap: 12px; /* Space between text and arrow */
}

.primary-btn span:first-child {
  background: #222;
  padding: 0.75rem 2rem;
  text-align: center;
}

.primary-btn .arrow {
  font-size: 1.5rem; /* adjust size to match text */
  color: black;
  display: flex;
  align-items: center; /* vertical alignment fix */
}

/* Hover effect */
.primary-btn:hover {
  background-color: #30b15b; /* Slightly darker green */
}


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

.secondary-btn:hover {
    background-color: transparent;
    color: var(--primary-green);
}

.tertiary-btn {
    background-color: transparent;
    color: var(--heading-btn-color);
    border: 1px solid var(--primary-green);
    margin-left: 15px;
}

.tertiary-btn:hover {
    background-color: var(--primary-green);
    color: var(--heading-btn-color);
}

/* Header */
.header {
    width: 100vw;
    height: 100vh;
    background-color: var(--body-bg-color);
    color: var(--heading-btn-color);
    padding: 3rem 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%; /* Adjust as needed for the green rectangle */
    height: inherit;
    background-color: var(--primary-green);
    z-index: 0;
}
.header .header-nav {
    display:  flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.header .container {
    position: relative;
    z-index: 1;
}
.header .title {
    font-size: 2rem;
    color: var(--heading-btn-color);
}
.header .hello{
    color: var(--primary-green);
}
.header .hero-nav {
        height: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-top: 100px;
}
.header .contact-info {
    text-align: right;
    font-size: 0.9em;
    color: var(--heading-btn-color);
}

.header .contact-info a {
    color: var(--heading-btn-color);
    margin-left: 15px;
    transition: color 0.3s ease;
}

.header .contact-info a:hover {
    color: var(--primary-green);
}


.header h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--heading-btn-color);
}

.header .tagline {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--heading-btn-color);
}

.header .primary-btn {
    font-size: 1em;
}
.header .primary-btn i {
    margin-left: 10px;
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    color: var(--heading-btn-color);
}



/* About Section */
.about {
  background-color: #111; /* dark background */
  color: #fff;
  padding: 60px 20px;
}

.about .about-content {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.about .about-text {
  flex: 1.5;
  min-width: 380px;
}

.about .about-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
  position: relative;
}

.about .about-text h2::after {
  content: "";
  display: inline-block;       /* keeps it on the same line */
  width: 70%;
  height: 2px;
  background-color: #39D96F;   /* use background instead of border-bottom */
  margin-left: 10px;           /* space between text and line */
  vertical-align: middle;      /* align with text baseline */
}


.about .about-text p {
  margin-bottom: 30px;
  color: #aaa;
  line-height: 1.7;
}

.about .about-image {
  flex: 1;
  min-width: 260px;
  text-align: center;
  position: relative;
  background-color: var(--primary-green);
}

.about .about-image img {
    position: relative;
    left: 30px;
    bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.about .about-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.about .about-actions .btn {
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.about .about-actions .secondary-btn {
  background: #3bd475;
  color: #111;
}

.about .about-actions .secondary-btn:hover {
  background: #2ea95c;
}

.about .about-actions .tertiary-btn {
  background: transparent;
  border: 2px solid #3bd475;
  color: #3bd475;
}

.about .about-actions .tertiary-btn:hover {
  background: #3bd475;
  color: #111;
}


/* Recent Projects */
.recent-projects {
    background-color: var(--body-bg-color);
}

.recent-projects .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.recent-projects .project-item {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-projects .project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.recent-projects .project-item img {
    border-radius: 5px;
    margin-bottom: 15px;
    width: 100%; /* Ensure images fill their container */
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover; /* Cover the area, cropping if necessary */
}

.recent-projects .project-item h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: var(--heading-btn-color);
}

.recent-projects .project-item p {
    font-size: 0.9em;
    color: var(--text-color-light);
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: #333;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap-reverse; /* Text first, then images on small screens */
}

.brand-identity .brand-images {
    display: flex;
    gap: 20px;
    flex: 1;
    min-width: 250px;
    justify-content: center;
}

.brand-identity .brand-images img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background-color: var(--body-bg-color);
    padding: 10px;
    border-radius: 5px;
}

.brand-identity .brand-text {
    flex: 2;
    min-width: 400px;
}

.brand-identity .brand-text h2 {
    text-align: left;
    margin-bottom: 20px;
    color: var(--heading-btn-color);
}
.brand-identity .brand-text h2::after {
    left: 0;
    transform: translateX(0);
}

.brand-identity .brand-text p {
    color: var(--text-color-light);
}


/* Happy Client Says */
.happy-client-says {
    background-color: var(--body-bg-color);
    text-align: center;
}

.happy-client-says .client-testimonials {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.happy-client-says .testimonial-card {
    background-color: #333;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-green);
}

.happy-client-says .testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}


.happy-client-says .client-name {
    font-weight: 600;
    font-size: 1.2em;
    margin-bottom: 5px;
    color: var(--heading-btn-color);
}

.happy-client-says .client-title {
    font-size: 0.9em;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.happy-client-says .testimonial-text {
    font-style: italic;
    color: var(--text-color-light);
}

/* Personal Skills */
.personal-skills {
    background-color: var(--body-bg-color);
}

.personal-skills .skills-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.personal-skills .skills-text {
    flex: 2;
    min-width: 400px;
}

.personal-skills .skills-text h2 {
    text-align: left;
    margin-bottom: 20px;
}
.personal-skills .skills-text h2::after {
    left: 0;
    transform: translateX(0);
}


.personal-skills .skills-text p {
    margin-bottom: 30px;
    color: var(--text-color-light);
}

.personal-skills .skill-item {
    margin-bottom: 20px;
}

.personal-skills .skill-item p {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--heading-btn-color);
}

.personal-skills .progress-bar {
    background-color: #444;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.personal-skills .progress-fill {
    background-color: var(--primary-green);
    height: 100%;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: width 1s ease-out; /* Animation for fill */
}

.personal-skills .progress-fill span {
    color: var(--heading-btn-color);
    font-size: 0.8em;
    font-weight: 600;
    position: absolute;
    right: 5px; /* Adjust position */
}


.personal-skills .skills-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.personal-skills .skills-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


/* Contact Section */
.contact {
    background-color: var(--primary-green); /* Background color as per design */
    padding: 80px 0;
}

.contact .container {
    padding: 0 20px;
}

.contact .contact-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    background-color: var(--body-bg-color); /* Inner content background */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact .contact-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.contact .contact-image img {
    border-radius: 8px;
}

.contact .contact-details {
    flex: 2;
    min-width: 300px;
}

.contact .contact-details h2 {
    text-align: left;
    margin-bottom: 20px;
    color: var(--heading-btn-color);
}
.contact .contact-details h2::after {
    left: 0;
    transform: translateX(0);
}


.contact .contact-details p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--primary-green); /* Specific color for contact details text */
}

.contact .contact-details p span {
    font-weight: 600;
    color: var(--heading-btn-color); /* Label color */
    margin-right: 10px;
}

.contact .contact-details a {
    color: var(--primary-green);
    transition: color 0.3s ease;
}

.contact .contact-details a:hover {
    text-decoration: underline;
}

/* Animations (Reveal) */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .header h1 {
        font-size: 2.8em;
    }
    .header .tagline {
        font-size: 1.2em;
    }
    .about .about-content,
    .brand-identity,
    .personal-skills .skills-content,
    .contact .contact-content {
        flex-direction: column;
        text-align: center;
    }
    .about .about-text,
    .brand-identity .brand-text,
    .personal-skills .skills-text,
    .contact .contact-details {
        min-width: unset;
        width: 100%;
    }
    .about .about-text h2,
    .brand-identity .brand-text h2,
    .personal-skills .skills-text h2,
    .contact .contact-details h2 {
        text-align: center;
    }
    .about .about-actions {
        justify-content: center;
    }
    .testimonial-card {
        max-width: 80%;
    }
    .brand-identity .brand-images {
        flex-direction: column;
        gap: 15px;
    }
    .brand-identity .brand-images img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2em;
    }
    .header .tagline {
        font-size: 1em;
    }
    section {
        padding: 60px 0;
    }
    section h2 {
        font-size: 2em;
    }
    .recent-projects .project-grid {
        grid-template-columns: 1fr;
    }
    .happy-client-says .client-testimonials {
        flex-direction: column;
        align-items: center;
    }
    .happy-client-says .testimonial-card {
        max-width: 90%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8em;
    }
    .header .tagline {
        font-size: 0.9em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .about .about-actions {
        flex-direction: column;
        gap: 10px;
    }
    .tertiary-btn {
        margin-left: 0;
    }
}