/* Global Styles */
:root {
    --primary-color: #0A2F5B;
    /* Deep Blue */
    --secondary-color: #1D5287;
    /* Medium Blue */
    --accent-color: #F28C28;
    /* Bright Orange */
    --light-accent-color: #FFDAB9;
    /* Peach for backgrounds or highlights */
    --text-color: #333333;
    --light-text-color: #FFFFFF;
    --background-color: #FFFFFF;
    --light-gray-background: #F4F7F6;
    /* Light Gray for section backgrounds */
    --border-color: #DDDDDD;
    --success-color: #2ECC71;
    /* Green */
    --error-color: #E74C3C;
    /* Red */

    --font-family: 'Poppins', sans-serif;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3 {
    color: var(--primary-color);
    margin-bottom: 0.75em;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 60px 0;
}

section:nth-child(even) {
    background-color: var(--light-gray-background);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #e07b1a;
    /* Darker orange */
    color: var(--light-text-color);
    transform: translateY(-2px);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Header */
header {
    background-color: var(--light-text-color);
    color: var(--primary-color);
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(10, 47, 91, 0.8), rgba(10, 47, 91, 0.7)), url('https://via.placeholder.com/1920x1080?text=Abstract+Tech+Background') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 180px 0 120px;
    /* Adjusted padding for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* Make hero fill viewport height */
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.3em;
    font-weight: 700;
    color: var(--light-text-color);
}

#hero .tagline {
    font-size: 1.8rem;
    margin-bottom: 1em;
    font-weight: 300;
    color: var(--light-accent-color);
}

#hero .intro {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
}

/* Services Section */
#services h2,
#about h2,
#contact h2 {
    text-align: center;
    margin-bottom: 15px;
    /* Reduced from 50px to accommodate subtitle */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.security-highlight {
    margin-top: 50px;
    text-align: center;
    padding: 25px;
    background-color: var(--light-accent-color);
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
}

.security-highlight i {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-right: 10px;
    vertical-align: middle;
}

.security-highlight p {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0;
    display: inline-block;
    vertical-align: middle;
}

/* About Section */
#about .about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

#about .about-text {
    flex: 1;
}

#about .about-text ul {
    margin-top: 20px;
    padding-left: 0;
}

#about .about-text ul li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
}

#about .about-text ul li i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.3rem;
    margin-top: 4px;
    min-width: 20px;
    /* Ensure icons align */
}

#about .about-image {
    flex: 1;
    max-width: 450px;
    /* Control image size */
}

#about .about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
}

.contact-form {
    flex: 2;
    /* Form takes more space */
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(242, 140, 40, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button.cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
}

.form-notice {
    font-size: 0.9rem;
    color: #777;
    margin-top: 15px;
    text-align: center;
}

.contact-info {
    flex: 1;
    /* Contact info takes less space */
    padding-left: 20px;
    /* Add some separation if wrapped */
}

.contact-info h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.contact-info p i {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 20px;
    /* For alignment */
    text-align: center;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}


/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 30px 0;
}

footer p {
    margin-bottom: 0.5em;
    font-size: 0.9rem;
}

footer a {
    color: var(--light-accent-color);
}

footer a:hover {
    color: var(--light-text-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    #hero h1 {
        font-size: 2.8rem;
    }

    #hero .tagline {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding-top: var(--header-height);
        /* Account for fixed header */
    }

    header .container {
        padding: 0 15px;
        /* Reduce padding for smaller screens */
    }

    header nav {
        display: none;
        /* Hide desktop nav */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--light-text-color);
        flex-direction: column;
        align-items: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    header nav.active {
        display: flex;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
    }

    header nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .mobile-nav-toggle {
        display: block;
    }

    #hero {
        padding-top: 120px;
        /* Adjust padding for fixed header and smaller screen */
        padding-bottom: 80px;
        min-height: auto;
        /* Remove fixed height for hero on mobile */
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #hero .tagline {
        font-size: 1.2rem;
    }

    #hero .intro {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    #about .about-content {
        flex-direction: column;
    }

    #about .about-image {
        margin-top: 30px;
        max-width: 100%;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info {
        padding-left: 0;
        /* Remove padding when stacked */
        margin-top: 30px;
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
    }

    .contact-info .social-links {
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2rem;
    }

    #hero .tagline {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* Stack services on very small screens */
    }

    .service-item {
        padding: 20px;
    }

    .service-item i {
        font-size: 2.5rem;
    }
}