/* 
   Nosware Website Styles
   Modern, clean design for a software company
*/

/* Base Styles and Reset */
:root {
    --primary-color: #3d5afe;      /* Richer, more sophisticated blue */
    --primary-dark: #0039cb;       /* Darker shade for hover states */
    --primary-light: #7986cb;      /* Soft blue for subtle elements */
    --secondary-color: #263238;    /* Deep blue-gray for text and sections */
    --secondary-light: #4f5b62;    /* Lighter blue-gray for accents */
    --secondary-dark: #000a12;     /* Very dark blue-gray for contrasts */
    --light-color: #f5f5f5;        /* Off-white for backgrounds */
    --dark-color: #212121;         /* Nearly black for text */
    --gray-color: #757575;         /* Medium gray for subtle text */
    --gray-light: #e0e0e0;         /* Very light gray for borders */
    --accent-color: #ff6e40;       /* Complementary accent for highlights */
    --success-color: #43a047;      /* Green for success indicators */
    --danger-color: #e53935;       /* Red for error states */
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--secondary-light);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    font-family: 'Montserrat', sans-serif;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--light-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-white-secondary {
    background-color: white;
    color: var(--secondary-color);
}

.btn-white-secondary:hover {
    background-color: var(--light-color);
    color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-item a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-item a:hover::after,
.nav-item a.active::after {
    width: 100%;
}

.nav-item a.active {
    color: var(--secondary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(38, 50, 56, 0.85), rgba(0, 10, 18, 0.95));
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    z-index: 1;
    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: center;
}

.hero-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

.about-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
}

.about-img::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 50%;
    height: 50%;
    background-color: var(--secondary-light);
    z-index: -1;
    border-radius: 8px;
    opacity: 0.5;
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 3px solid var(--secondary-light);
}

.service-card:hover {
    transform: translateY(-5px);
    border-top: 3px solid var(--secondary-color);
}

.service-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-color);
}

.services-cta {
    text-align: center;
}

/* Call to Action */
.cta {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.cta h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    padding: 8rem 0 4rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, var(--secondary-light) 25%, transparent 25%), 
                      linear-gradient(-45deg, var(--secondary-light) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.05;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Services Detailed */
.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
    align-items: center;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.service-item.reverse .service-image {
    order: 2;
}

.service-item.reverse .service-content {
    order: 1;
}

.service-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.service-content h2 {
    font-size: 1.75rem;
    margin-top: 1rem;
}

.service-content p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.service-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.service-features i {
    color: var(--success-color);
    margin-right: 0.75rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-method {
    display: flex;
    margin-bottom: 2rem;
    align-items: center;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.contact-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-image {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.contact-form-container {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--secondary-color);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Form Validation Styles */
.input-error {
    border-color: var(--danger-color) !important;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Honeypot field - hidden from users but visible to bots */
.website-field {
    display: none;
    position: absolute;
    left: -9999px;
}

/* Form status messages */
.form-status {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(67, 160, 71, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.form-status.error {
    display: block;
    background-color: rgba(229, 57, 53, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

/* Loading state for submit button */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.2rem;
    height: 1.2rem;
    margin: -0.6rem 0 0 -0.6rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    background-color: var(--secondary-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #b0bec5; /* Lighter blue-gray that matches our palette */
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a,
.footer-contact a {
    color: #b0bec5;
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-contact i {
    margin-right: 0.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #b0bec5;
    font-size: 0.9rem;
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .service-item,
    .service-item.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-item.reverse .service-image,
    .service-item.reverse .service-content,
    .service-image,
    .service-content {
        order: 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-img::after {
        bottom: -10px;
        right: -10px;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero .container {
        padding: 0 20px;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0 0 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .service-icon {
        font-size: 1.75rem;
    }
    
    .page-header {
        padding: 6rem 0 3rem;
    }
}

@media screen and (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-header p {
        font-size: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .cta {
        padding: 3rem 0;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
} 