/* Basic Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

h1, h2, h3 {
    color: #222;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
p { margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    background-color: #222;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
}

.navbar .nav-links a {
    color: white;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.navbar .nav-links a:hover {
    background-color: #555;
}

.navbar .nav-links .btn {
    margin-left: 1rem;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.navbar .hamburger {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.navbar .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.navbar .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar .hamburger.active span:nth-child(2) {
    opacity: 0;
}

.navbar .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero, .page-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../assets/images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 2rem;
}

.hero h1, .page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p, .page-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas .btn {
    margin: 0 10px;
}

/* Section Styling */
.section-padded {
    padding: 4rem 0;
    background-color: white;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.section-padded h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Home Page - Service Highlights */
.service-highlights .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-highlights .card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-highlights .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-highlights .card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.service-highlights .card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

/* Home Page - Trust Row */
.trust-row {
    background-color: #e9ecef;
    text-align: center;
}

.trust-row .trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.trust-row .badge {
    text-align: center;
    flex: 0 0 auto; /* Prevent stretching */
}

.trust-row .badge img {
    width: 80px; /* Adjust size as needed for logos */
    height: auto;
    margin-bottom: 10px;
    filter: grayscale(80%);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.trust-row .badge img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.trust-row .badge p {
    font-size: 1rem;
    font-weight: bold;
    color: #555;
}

/* Services Page - Service List */
.service-list .service-item {
    background-color: #fdfdfd;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.service-list .service-item h2 {
    color: #007bff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-list .service-item ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.service-list .service-item ul li {
    padding-left: 30px; /* Space for custom icon */
    position: relative;
    margin-bottom: 8px;
}

.service-list .service-item ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url('../assets/icons/check.svg') no-repeat center center/contain; /* Custom checkmark */
}

/* Who We Serve Page - Industry Tiles */
.industry-tiles .tile {
    background-color: #fdfdfd;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 5px solid #007bff;
}

.industry-tiles .tile h3 {
    color: #007bff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.industry-tiles .tile ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.industry-tiles .tile ul li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.industry-tiles .tile ul li::before {
    content: '•'; /* Simple bullet */
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* About Us Page */
.about-content h2 {
    text-align: left;
    color: #007bff;
    margin-bottom: 1.5rem;
}

.about-content .story-section,
.about-content .expertise-section,
.about-content .service-area-section {
    margin-bottom: 3rem;
}

.about-content .expertise-section ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.about-content .expertise-section ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-content .expertise-section ul li::before {
    content: '›';
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.about-content .values-section {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.about-content .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
    margin-top: 2rem;
}

.about-content .value-item h3 {
    color: #333;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.contact-info .info-card {
    background-color: #fdfdfd;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-info .info-card h3 {
    color: #007bff;
    margin-bottom: 1rem;
}

.contact-info .info-card p {
    margin-bottom: 0.5rem;
}

.contact-form-section {
    background-color: #e9ecef;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    width: auto;
    padding: 12px 25px;
    font-size: 1rem;
}

.contact-form-section .form-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
.footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem; /* Ensure space above footer */
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 60px; /* Adjust based on navbar height */
        left: 0;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .nav-links a {
        padding: 1rem 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #444;
    }

    .navbar .nav-links a:last-child {
        border-bottom: none;
    }

    .navbar .nav-links .btn {
        margin: 1rem auto;
        width: calc(100% - 40px);
    }

    .navbar .hamburger {
        display: block;
    }

    .hero h1, .page-hero h1 {
        font-size: 2.5rem;
    }

    .hero p, .page-hero p {
        font-size: 1.1rem;
    }

    .section-padded h2 {
        font-size: 2rem;
    }

    .service-highlights .cards-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .trust-row .trust-badges {
        flex-direction: column;
        gap: 20px;
    }

    .about-content .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Typing Effect for Hero Title */
.hero h1 {
    overflow: hidden; /* Ensures text doesn't wrap during animation */
    border-right: .15em solid white; /* The "cursor" */
    white-space: nowrap; /* Keeps the text on a single line */
    margin: 0 auto;
    letter-spacing: .05em; /* Adjust as needed */
    animation:
        typing 3.5s steps(30, end) forwards, /* 30 steps for 30 characters in "PG IT Solutions" */
        blink-caret .75s step-end infinite;
    width: 0; /* Start with zero width to reveal */
    max-width: fit-content; /* Ensure it fits content */
    font-size: 3.5rem; /* Ensure consistent font size */
    color: white; /* Ensure text color is white */
    text-align: center; /* Center the text */
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white }
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem; /* Adjust for smaller screens */
        /* Re-calculate steps if text length changes significantly, or use a responsive approach */
    }
}