/* Main CSS Styles for Parama Solutions */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* Header styles */
.top-bar {
    background-color: #2c2c2c;
    color: white;
    padding: 10px 80px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-info {
    display: flex;
    gap: 30px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ffc107;
}

/* Logo and navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0 80px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 70px; /* Fixed container height for consistent navbar */
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 80px; /* Maximum height for logo */
    max-width: 230px; /* Maximum width for logo */
    width: auto; /* Auto width to maintain aspect ratio */
    height: auto; /* Auto height to maintain aspect ratio */
    object-fit: contain; /* Ensure logo fits within container while maintaining aspect ratio */
    transition: transform 0.5s ease;
}

.logo-container:hover .logo-image {
    transform: scale(1.05); /* Changed from rotate to scale for better effect */
}

/* Ensure placeholder has same dimensions */
.logo .placeholder-image {
    max-height: 50px;
    max-width: 200px;
    min-width: 80px;
    min-height: 30px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links > a, .dropdown > a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 25px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links > a:hover, .nav-links > a.active,
.dropdown > a:hover, .dropdown > a.active {
    color: #ffc107;
}

.nav-links > a::after, .dropdown > a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffc107;
    transition: width 0.3s ease;
}

.nav-links > a:hover::after, .nav-links > a.active::after,
.dropdown > a:hover::after, .dropdown > a.active::after {
    width: 100%;
}

/* Dropdown functionality */
.dropdown {
    position: relative;
}

.dropdown > a::before {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::before {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #ffc107;
    transform: translateX(5px);
}

.quote-btn {
    background-color: #2c2c2c;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quote-btn:hover {
    background-color: white;
    color: #2c2c2c;
    border: 2px solid #2c2c2c;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 10px;
}

/* Hero section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px;
    background-color: white;
    overflow: hidden;
}

.hero-content {
    max-width: 550px;
}

.hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.hero-text {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.about-btn {
    background-color: #ffc107;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.about-btn:hover {
    background-color: white;
    color: #ffc107;
    border: 2px solid #ffc107;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hero-image-container {
    width: 45%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-image {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

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

/* Stats section */



/* Footer */
.footer {
    background-color: #2c2c2c;
    color: white;
    padding: 40px 80px 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 2fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-img {
    width: 50px;
    height: 50px;
}

.logo-text h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 12px;
    color: #ccc;
}

.footer-description p {
    line-height: 1.6;
    color: #ccc;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #ffc107;
}

.footer-subscribe form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 350px;       /* limit form width */
  margin: 0 auto;         /* center if parent is wider */
  box-sizing: border-box;
}

.footer-subscribe input,
.subscribe-btn {
  width: 100%;            /* fill the form’s width */
  box-sizing: border-box; /* include padding/border in that width */
}

.footer-subscribe input {
  padding: 12px 16px;     /* you can tweak padding */
  border: none;
  border-radius: 5px;
  background-color: #444;
  color: white;
}

.footer-subscribe input::placeholder {
  color: #ccc;
}

.subscribe-btn {
  background-color: #ffc107;
  color: #333;
  border: none;
  padding: 14px;          /* a bit taller button */
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-btn:hover {
  background-color: #e6a800;
  transform: translateY(-2px);
}


.footer-blog .blog-post {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.footer-blog .blog-post:last-child {
    border-bottom: none;
}

.footer-blog .blog-post h3 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.footer-blog .blog-post a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-blog .blog-post a:hover {
    color: #ffc107;
}

.post-date {
    font-size: 12px;
    color: #999;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffc107;
}

/* Placeholder image for missing images */
.placeholder-image {
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 16px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .top-bar, .navbar {
        padding: 10px 30px;
    }
    
    .logo-container {
        height: 55px;
    }
    
    .logo-image {
        max-height: 45px;
        max-width: 180px;
    }
    
    .hero {
        padding: 60px 40px;
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-image-container {
        width: 100%;
        max-width: 400px;
    }
    
    
    .stat-item {
        width: 160px;
        padding: 15px 10px;
    }
    
    .stat-counter {
        font-size: 36px;
    }
    
    .stat-title {
        font-size: 16px;
    }

    .footer {
        padding: 40px 40px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .logo-container {
        height: 50px;
    }
    
    .logo-image {
        max-height: 40px;
        max-width: 150px;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        z-index: 999;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.open {
        max-height: 400px;
    }
    
    .nav-links > a, .dropdown > a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    
    .nav-links > a::after, .dropdown > a::after {
        display: none;
    }

    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #f8f9fa;
        margin-left: 20px;
    }

    .dropdown-content a {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .navbar {
        padding: 0 20px;
        flex-wrap: wrap;
    }
    
    .quote-btn {
        margin: 10px 20px;
        order: 3;
        width: calc(100% - 40px);
        text-align: center;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    
    .stat-item {
        width: 100%;
        max-width: 250px;
    }

    .footer {
        padding: 30px 20px 15px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-container {
        height: 45px;
    }
    
    .logo-image {
        max-height: 45px;
        max-width: 130px;
    }
    
    .navbar {
        padding: 0 15px;
    }
    
    .mobile-menu-btn {
        padding: 8px;
    }
}