@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

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

:root {
    --primary-color: #2C3E50;
    --secondary-color: #34495E;
    --accent-color: #7F8C8D;
    --light-accent: #BDC3C7;
    --background: #ECF0F1;
    --text-dark: #2C3E50;
    --text-light: #566573;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --bg-color: #f9fafb;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    font-weight: 400;
}

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

/* Navigation */
nav {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(44, 62, 80, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-family: 'Roboto', sans-serif;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.05"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.5px;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    font-family: 'Roboto', sans-serif;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* About Section */
.about {
    background: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.8rem;
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(44, 62, 80, 0.1);
    transition: transform 0.3s;
    font-family: 'Roboto', sans-serif;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

.stat p {
    color: var(--text-light);
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(44, 62, 80, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--light-accent);
    position: relative;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(44, 62, 80, 0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.project-header h3 {
    color: var(--primary-color);
    margin-right: 1rem;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
}

.badge {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Roboto', sans-serif;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: var(--background);
    color: var(--text-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--light-accent);
    font-family: 'Roboto', sans-serif;
}

.project-impact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--background);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    font-family: 'Roboto', sans-serif;
}

.impact-item i {
    color: var(--primary-color);
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    font-family: 'Roboto', sans-serif;
}

.project-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Environmental Section Styles */
.environmental-services {
  padding: 80px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(44, 62, 80, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--light-accent);
  position: relative;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(44, 62, 80, 0.15);
}

.service-icon {
  font-size: 2.5em;
  color: #2ecc71;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 400;
  font-family: 'Roboto', sans-serif;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.tech-tag {
  background: var(--background);
  color: var(--text-dark);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--light-accent);
  font-family: 'Roboto', sans-serif;
}

.consultation-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 3rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(44, 62, 80, 0.2);
  margin-top: 4rem;
  font-family: 'Roboto', sans-serif;
}

.consultation-cta h3 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
}

.consultation-cta p {
  margin-bottom: 2rem;
  opacity: 0.9;
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 300;
  font-family: 'Roboto', sans-serif;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Environmental specific responsive design */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .consultation-cta {
    padding: 2rem 1.5rem;
    margin-top: 3rem;
  }
  
  .consultation-cta h3 {
    font-size: 1.5rem;
  }
}



/* Books Section */
.books-section {
    padding: 100px 0;
    background: var(--white);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.book-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(44, 62, 80, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--light-accent);
    position: relative;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(44, 62, 80, 0.15);
}

.book-cover {
    text-align: center;
    margin-bottom: 1.5rem;
}

.book-image {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.2);
    border: 3px solid var(--white);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.book-card:hover .book-image {
    transform: scale(1.05);
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
}

.book-author {
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.book-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex: 1;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.book-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    font-family: 'Roboto', sans-serif;
}

.book-link:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.2);
}

/* ==== Blog Section Styles - Updated to match theme ==== */
.blog-section {
    padding: 100px 0;
    background: var(--background);
}

.blog-section .section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.5px;
}

.blog-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.blog-section .section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-weight: 300;
}

.blog-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(44, 62, 80, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    border: 1px solid var(--light-accent);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.blog-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(44, 62, 80, 0.15);
}

.blog-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Roboto', sans-serif;
}

.blog-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.btn-01 {
    padding: 14px 35px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

.btn-01:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
    color: var(--white);
}


/* Skills Section */
.skills {
    background: var(--background);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(44, 62, 80, 0.1);
    transition: transform 0.3s;
    border: 1px solid var(--light-accent);
    font-family: 'Roboto', sans-serif;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

.skill-category h3 i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-item {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
    font-family: 'Roboto', sans-serif;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 12px;
    transition: transform 0.3s;
    font-family: 'Roboto', sans-serif;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    background: var(--primary-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item div h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

.contact-item div p {
    color: var(--text-light);
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.contact-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.2);
    font-family: 'Roboto', sans-serif;
}

.contact-cta h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

.contact-cta p {
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
    font-family: 'Roboto', sans-serif;
}

footer p {
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 220px;
        text-align: center;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .badge {
        align-self: flex-start;
    }
    
    .book-card {
        padding: 1.5rem;
    }
    
    .book-image {
        width: 120px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .project-card {
        padding: 2rem 1.5rem;
    }
    
    .book-card {
        padding: 1.25rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
