/* General Styles */
:root {
    --primary-blue: #007bff;
    --secondary-orange: #ff6b6b;
    --dark-blue: #0a1930;
    --light-blue: #1a2b4c;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --card-bg: #1e3050;
    --border-color: #3a4a6a;
    --gradient-start: #0a1930;
    --gradient-end: #1a2b4c;
    --section-bg-light: #f8f9fa; /* A very light grey, almost white but softer */
    --section-bg-dark: #e9ecef; /* A light grey, slightly darker than light */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-blue);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Default padding */
}

a {
    color: var(--primary-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    line-height: 1.2;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background-color: var(--primary-blue);
    color: #fff;
}

.primary-btn:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.secondary-btn {
    background-color: var(--secondary-orange);
    color: #fff;
}

.secondary-btn:hover {
    background-color: #e65c5c;
    text-decoration: none;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
}

.section-subtitle {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
}

/* Header */
.main-header {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    display: flex;
    align-items: center;
}

.main-header .logo-image {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.main-header .logo span {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--heading-color);
}

.main-nav .nav-links {
    display: flex;
    align-items: center;
}

.main-nav .nav-links li {
    margin-left: 30px;
}

.main-nav .nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
    color: var(--primary-blue);
    text-decoration: none;
}

.main-nav .nav-links .btn {
    margin-left: 30px;
    padding: 10px 20px;
    font-size: 0.9em;
    color: var(--dark-blue); /* Ensure order button text is always dark blue by default */
}

.main-nav .nav-links .btn.active {
    color: #000000; /* Set active order button text to black */
}

.menu-toggle, .close-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--heading-color);
    cursor: pointer;
}

/* Other sections background */
.contact-section {
    padding: 100px 0; /* Increased padding */
    background-color: var(--section-bg-light);
    color: var(--dark-blue); /* Adjust text color for lighter background */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center text within the section */
}

.about-nodeitstudio-section {
    padding: 80px 0;
    background-color: var(--section-bg-dark); /* Even darker background for alternating section */
    color: var(--dark-blue); /* Adjust text color for lighter background */
    min-height: 100vh; /* Each section must cover the entire screen */
    display: flex; /* Use flexbox to center content vertically */
    flex-direction: column;
    justify-content: center;
    position: relative; /* Needed for absolute positioning of the network card */
    overflow: hidden; /* Hide overflow from the network card */
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center text within the section */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
    transition: all 0.3s ease-in-out; /* Smooth transitions for visual effects */
}

/* Adjust text color for elements within these sections to ensure readability */
.contact-section .info-item p {
    color: #000000; /* Darker text for readability on lighter background */
}

.about-nodeitstudio-section .section-title,
.contact-section .section-title {
    color: var(--dark-blue); /* Ensure titles are dark on white background */
}

.about-nodeitstudio-section p,
.contact-section .info-item p {
    color: #555; /* Darker text for readability on white */
}

.stat-item,
.contact-form-wrapper {
    background-color: #f8f9fa; /* Light grey for cards on white background */
    border-color: #e9ecef;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-item h3,
.contact-info-wrapper .info-item h4 {
    color: var(--dark-blue);
}

.stat-item p {
    color: #6c757d;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    background-color: #fff;
    border-color: #ced4da;
    color: var(--dark-blue);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #adb5bd;
}


.about-nodeitstudio-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative; /* Ensure content is above the background card */
    z-index: 1;
}

.about-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    max-width: 45%;
    margin-right: 5%;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text-box {
    flex: 1;
    max-width: 50%;
}

.about-text-box .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-text-box .section-title::after {
    left: 0;
    transform: translateX(0);
}

.about-text-box p {
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #555; /* Darker text for readability on lighter background */
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2em;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9em;
    color: #6c757d; /* Darker text for readability on lighter background */
    margin-bottom: 0;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.contact-info-wrapper {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-wrapper .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-info-wrapper .info-item i {
    font-size: 2.2em; /* Larger icons */
    color: var(--primary-blue);
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.contact-info-wrapper .info-item h4 {
    font-size: 1.3em; /* Larger title */
    margin-bottom: 5px;
    color: var(--dark-blue);
}

.contact-info-wrapper .info-item p {
    font-size: 1em;
    color: #6c7577;
}

.contact-form-wrapper {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 15px 20px; /* Increased padding */
    margin-bottom: 20px;
    border: 1px solid #e0e0e0; /* Lighter border */
    border-radius: 8px; /* More rounded corners */
    background-color: #f8f9fa; /* Light background */
    color: var(--dark-blue);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Focus glow */
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #a0a0a0; /* Lighter placeholder text */
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn {
    width: auto;
    padding: 12px 30px;
    font-size: 1em;
}

/* Footer */
.main-footer {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    padding: 60px 0; /* Increased padding */
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.main-footer .footer-social-icons {
    margin-bottom: 30px; /* Increased margin */
}

.main-footer .footer-social-icons a {
    color: var(--text-color);
    font-size: 1.8em; /* Larger icons */
    margin: 0 18px; /* Increased margin */
    transition: color 0.3s ease, transform 0.3s ease;
}

.main-footer .footer-social-icons a:hover {
    color: var(--primary-blue);
    transform: translateY(-5px); /* Lift effect on hover */
}

.main-footer .footer-links {
    margin-top: 20px;
    margin-bottom: 20px;
}

.main-footer .footer-links a {
    color: var(--text-color);
    font-size: 1em; /* Slightly larger font size */
    margin: 0 12px; /* Increased margin */
    transition: color 0.3s ease;
}

.main-footer .footer-links a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.main-footer p {
    font-size: 0.95em; /* Slightly larger font size */
    color: var(--text-color);
    margin-top: 20px; /* Added margin */
}


/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: var(--dark-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active {
        right: 0;
        z-index: 1002;
    }

    .main-nav .nav-links {
        flex-direction: column;
    }

    .main-nav .nav-links li {
        margin: 20px 0;
    }

    .menu-toggle, .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .contact-grid {
        flex-direction: column;
        align-items: center;
    }

    .contact-info-wrapper, .contact-form-wrapper {
        min-width: unset;
        width: 100%;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    .main-header .logo span {
        font-size: 1.5em;
    }

    .main-header .logo-image {
        height: 35px;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .contact-section, .about-nodeitstudio-section {
        padding: 60px 0;
    }

    .contact-info-wrapper .info-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .contact-info-wrapper .info-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .contact-form-wrapper {
        padding: 30px;
    }

    .contact-form input, .contact-form textarea {
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .contact-form .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .main-footer {
        padding: 30px 0;
    }

    .main-footer .footer-social-icons a {
        font-size: 1.2em;
        margin: 0 10px;
    }

    .main-footer .footer-links a {
        font-size: 0.8em;
        margin: 0 8px;
    }

    .main-footer p {
        font-size: 0.8em;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2em;
    }

    .hero-text-box h1 {
        font-size: 2.2em;
    }

    .hero-text-box p {
        font-size: 1em;
    }

    .hero-actions .btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .services-grid, .projects-grid, .about-stats, .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .network-card-background,
    .glasmorphism-shape.glasmorphism-hexagon {
        display: none;
    }
}

@media (max-width: 300px) {
    .blog-posts-grid {
        gap: 15px;
    }

    .blog-post-card {
        padding: 15px;
    }

    .blog-post-card img {
        height: 120px;
    }

    .blog-post-card h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .blog-post-card .post-meta {
        font-size: 0.8em;
    }

    .blog-post-card p {
        font-size: 0.85em;
    }

    .blog-post-card .btn {
        padding: 8px 15px;
        font-size: 0.85em;
    }
}
