/* Basic Reset & Typography */
:root {
    --primary-color: #007bff; /* A vibrant blue */
    --secondary-color: #6c757d; /* A subtle gray */
    --accent-color: #28a745; /* A success green */
    --dark-text: #343a40;
    --light-text: #f8f9fa;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--dark-text);
    margin-bottom: 20px;
    font-weight: 600;
}

h1 {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: #0056b3;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Header & Navigation */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.sticky {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark-text);
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(0, 123, 255, 0.7)), url('https://via.placeholder.com/1920x1080/007bff/ffffff?text=Software+Background') no-repeat center center/cover;
    color: white;
    position: relative;
    overflow: hidden; /* To prevent overflow from animations */
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-content h1 {
    color: white;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Section Styling */
.section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.section:nth-of-type(even) {
    background-color: white;
}

/* Scroll Reveal Effect */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 15px auto;
    font-size: 1.1em;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.portfolio-item h3 {
    margin: 20px 20px 10px;
    color: var(--dark-text);
}

.portfolio-item p {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}

.contact-form, .contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--dark-text);
}

.contact-info strong {
    color: var(--primary-color);
}

.social-links a {
    margin-right: 15px;
    color: var(--secondary-color);
    font-weight: 500;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 999;
}

.back-to-top-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--light-text);
    text-align: center;
    padding: 40px 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px 0;
    }

    .site-title {
        margin-bottom: 15px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    h2 {
        font-size: 2em;
    }

    .section {
        padding: 80px 0;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-form, .contact-info {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    h2 {
        font-size: 1.8em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .back-to-top-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5em;
        line-height: 45px;
        bottom: 20px;
        right: 20px;
    }
}