/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

section {
    padding: 80px 5%;
    min-height: 80vh;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4ca1af 0%, #2c3e50 100%);
    border-radius: 2px;
}

/* Navigation Bar Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(92, 131, 131);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img-container {
    height: 45px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100%;
    width: auto;
}

.logo-text {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #4ca1af;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #4ca1af;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Home Section */
#home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
}

#home h1 {
    color: #2c3e50;
    font-size: 3.5rem;
    margin-bottom: 20px;
    max-width: 800px;
}

#home p {
    color: #34495e;
    font-size: 1.3rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Products Section */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #4ca1af 0%, #2c3e50 100%);
}

.product-icon i {
    font-size: 3rem;
    color: white;
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.product-content p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* About Section */
#about {
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    color: #34495e;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2rem;
    color: #4ca1af;
    margin-bottom: 15px;
}

.feature h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Project Section Container */
.project-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: Arial, sans-serif;
}

/* Section Title */
.project-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #222;
}

/* Categories container */
.project-categories {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

/* Each Category Card */
.project-category {
  flex: 1 1 200px;
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

/* Category Title */
.project-category h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #333;
}

/* Hover Effect */
.project-category:hover {
  background-color: #e0e7ff;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.4);
}

.projects-list {
  margin-top: 30px;
}

.project-item {
  padding: 12px 20px;
  background-color: #eee;
  margin-bottom: 10px;
  border-radius: 6px;
  display: none; /* Hide all by default */
}

/* Show visible projects */
.project-item.visible {
  display: block;
}


/* Contact Section */
#contact {
    background-color: #f8f9fa;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.email-button {
  background: linear-gradient(90deg, #4ca1af 0%, #2c3e50 100%);
  color: white !important;            
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;   
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease;
  
}

.email-button:hover {
  background: linear-gradient(90deg, #2c3e50 0%, #4ca1af 100%);
}


.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(90deg, #4ca1af 0%, #2c3e50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.5rem;
}

.contact-text h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.contact-text p, .contact-text a {
    color: #34495e;
    text-decoration: none;
    line-height: 1.6;
}

.contact-text a:hover {
    color: #4ca1af;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #2c3e50;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    background: #4ca1af;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e4edf5;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4ca1af;
    outline: none;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(90deg, #4ca1af 0%, #2c3e50 100%);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(76, 161, 175, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 161, 175, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #4ca1af;
    color: #4ca1af;
}

.btn-outline:hover {
    background: linear-gradient(90deg, #4ca1af 0%, #2c3e50 100%);
    color: white;
}

.toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background: linear-gradient(90deg, #38ef7d, #11998e);
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 999;
  left: 50%;
  bottom: 30px;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.4s ease, bottom 0.4s ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}


/* Footer */
footer {
    background: rgb(92, 131, 131);
    color: #ecf0f1;
    text-align: center;
    padding: 30px;
    font-size: 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo .logo-text {
    font-size: 1.3rem;
}

.footer-links {
    display: flex;
    gap: 25px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4ca1af;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: rgb(92, 131, 131);
        width: 100%;
        text-align: center;
        padding: 30px 0;
        gap: 25px;
        transition: left 0.3s ease;
        z-index: 100;
    }

    .nav-links.active {
        left: 0;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    #home h1 {
        font-size: 2.5rem;
    }

    #home p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-img-container {
        height: 40px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    #home h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}