/* ===================================
   NextGen TechEdge Solutions - CSS
   Exact replica of original website
   =================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Scheme */
    --primary-blue: #2196F3;
    --dark-bg: #333333;
    --darker-bg: #222222;
    --medium-dark: #2c2c2c;
    --light-gray: #f5f5f5;
    --text-white: #ffffff;
    --text-gray: #999999;
    --text-dark: #333333;
    --border-color: #e0e0e0;

    /* Gradients */
    --gradient-purple-pink: linear-gradient(to right, #7f399f, #e94c6f);
    --gradient-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9));

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #1976D2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Navigation */
.site-header {
    background-color: #ffffff;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 120px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    display: block;
    height: 38px;
    width: auto;
}

.main-nav {
    flex-shrink: 0;
}

.main-nav>ul {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
    height: 120px;
}

.main-nav>ul>li {
    white-space: nowrap;
    height: 100%;
}

.main-nav>ul>li>a {
    color: #333333;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 0 15px;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    text-transform: none;
    height: 120px;
}

.main-nav a {
    text-decoration: none;
}

.main-nav>ul>li>a.active,
.main-nav .current_page_ancestor>a,
.main-nav .current_page_parent>a {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgb(132, 38, 176) 3%, rgb(189, 2, 131) 47%, rgb(236, 75, 60) 98%) !important;
    -webkit-background-clip: padding-box !important;
    background-clip: padding-box !important;
    -webkit-text-fill-color: #ffffff !important;
}

.main-nav>ul>li>a:not(.active):hover {
    background: linear-gradient(to right, rgb(132, 38, 176) 3%, rgb(189, 2, 131) 47%, rgb(236, 75, 60) 98%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dropdown Menu */
.main-nav .has-dropdown {
    position: relative;
}

.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    list-style: none;
    margin: 0;
    display: block;
}

.main-nav .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .dropdown-menu li {
    padding: 0;
}

.main-nav .dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333333;
    height: auto;
    font-size: 15px;
    line-height: normal;
    transition: all 0.2s ease;
}

.main-nav .dropdown-menu a:hover {
    background: linear-gradient(135deg, rgb(132, 38, 176) 3%, rgb(189, 2, 131) 47%, rgb(236, 75, 60) 98%);
    color: #ffffff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    padding: 120px 0;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    display: block;
    margin: 0 auto 30px auto;
    max-width: 109px;
    height: auto;
    animation: fadeInDown 1.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: 2rem;
    text-shadow: none;
    font-family: 'Raleway', sans-serif;
}

.hero-text-1 {
    font-size: 70px;
    line-height: 80px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0px;
}

.hero-text-2 {
    font-size: 124px;
    line-height: 134px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0px;
    text-transform: none;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}



.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-purple-pink);
    color: var(--text-white);
}

.btn-primary:hover {
    background: linear-gradient(to right, #6a2d85, #d43a5f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 57, 159, 0.4);
}

.hero-buttons .btn {
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    line-height: 34px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 16px 40px;
    letter-spacing: 0px;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--primary-blue);
}

/* Utilities / Common Elements */
.gradient-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, rgb(132, 38, 176) 3%, rgb(189, 2, 131) 47%, rgb(236, 75, 60) 98%);
    margin: 15px auto 30px auto;
}

.gradient-underline-left {
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, rgb(132, 38, 176) 3%, rgb(189, 2, 131) 47%, rgb(236, 75, 60) 98%);
    margin: 15px 0 30px 0;
}

.btn-gradient {
    background: linear-gradient(135deg, rgb(132, 38, 176) 3%, rgb(189, 2, 131) 47%, rgb(236, 75, 60) 98%);
    color: white !important;
    padding: 11px 18px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(132, 38, 176, 0.4);
}

/* Breadcrumb */
.breadcrumb {
    background-color: var(--light-gray);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-list li::after {
    content: '>';
    margin-left: 0.5rem;
    color: var(--text-gray);
}

.breadcrumb-list li:last-child::after {
    content: '';
}

.breadcrumb-list a {
    color: var(--primary-blue);
}

.breadcrumb-list li:last-child {
    color: var(--text-gray);
}

/* Page Title Section */
.page-title-section {
    background-color: rgba(114, 119, 125, 0.08);
    padding: 0;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-title-section .container {
    width: 100%;
    max-width: 1200px;
}

.page-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-title-left h1 {
    font-size: 22px !important;
    color: #8b8d94 !important;
    margin: 0 !important;
    font-weight: 700 !important;
    font-family: 'Raleway', sans-serif !important;
    text-transform: none !important;
}

.page-title-right {
    color: #8b8d94 !important;
    font-size: 14px !important;
    font-family: 'Open Sans', sans-serif !important;
}

/* Page Header (Legacy, kept for transition) */
.page-header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--medium-dark) 100%);
    color: var(--text-white);
    padding: 80px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--dark-bg);
    color: var(--text-white);
}

.section-gray {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;

}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Card Styles */
.card {
    background-color: var(--text-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-category {
    color: var(--primary-blue);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.card-text {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--text-white);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
}

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}

.project-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-image {
    transform: scale(1.15);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    padding: 2rem;
    color: var(--text-white);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-card-overlay-content {
    margin-bottom: auto;
    margin-top: auto;
}

.project-card-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.project-card-overlay .category {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.project-card-icons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.project-card-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card-icon:hover {
    background-color: var(--text-white);
    color: #000;
}

.project-card-details {
    margin-top: auto;
    padding-top: 1rem;
}

.project-card-details .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background-color: var(--text-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-purple-pink);
    color: var(--text-white);
    border-color: transparent;
}

/* Technology Cards */
.tech-card {
    background-color: var(--text-white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.tech-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.tech-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonial {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-blue);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
}

.testimonial-role {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-info {
    background-color: var(--text-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-info a {
    color: var(--primary-blue);
}

/* Footer */
.site-footer {
    background-color: #111111;
    color: #ffffff;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-left .fa-copyright {
    margin-right: 5px;
}

.footer-right {
    flex-shrink: 0;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

/* Go to Top Button */
.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-blue);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.go-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.go-to-top:hover {
    background-color: #1976D2;
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--text-white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .main-nav a {
        padding: 1rem 1.5rem;
        display: block;
    }

    .main-nav .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }

    .page-header {
        padding: 50px 0 30px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-section {
        padding: 80px 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}