/* Global Styles */
:root {
    --primary-color: #1a56db;
    --secondary-color: #0f172a;
    --dark-bg: #0f172a;
    --light-bg: #ffffff;
    --text-light: #ffffff;
    --text-dark: #1a202c;
    --text-gray: #64748b;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --animation-duration: 0.8s;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f9fafb;
    overflow-x: hidden;
}

/* Page Load Animation */
.body-load {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--animation-duration) ease, transform var(--animation-duration) ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-item.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.primary-btn:hover {
    background-color: #1446a0;
}

.secondary-btn {
    background-color: #1f2937;
    color: var(--text-light);
}

.secondary-btn:hover {
    background-color: #111827;
}

/* Header Animation */
.logo, nav ul li {
    opacity: 0;
    animation: slideDown 0.5s ease forwards;
}

.logo {
    animation-delay: 0.2s;
}

nav ul li:nth-child(1) {
    animation-delay: 0.3s;
}

nav ul li:nth-child(2) {
    animation-delay: 0.4s;
}

nav ul li:nth-child(3) {
    animation-delay: 0.5s;
}

nav ul li:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Animation */
.hero h1, .hero p, .hero .btn {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.hero h1 {
    animation-delay: 0.7s;
}

.hero p {
    animation-delay: 0.9s;
}

.hero .btn {
    animation-delay: 1.1s;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
header {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    font-size: 0;
}

/* Override any potential unwanted content */
header .container::before,
header .container::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* Force container to only have the direct children we want */
header .container > *:not(.logo):not(nav):not(.mobile-menu-btn) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

header .logo {
    display: flex;
    align-items: center;
    min-width: 200px;
    font-size: 16px;
    vertical-align: middle;
    display: inline-block;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    text-decoration: none;
    color: var(--text-light);
}

header nav {
    display: flex;
    align-items: center;
    font-size: 16px;
    vertical-align: middle;
    display: inline-block;
}

nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
    color: var(--text-light);
    text-decoration: none;
}

nav ul li a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
    padding: 0;
    margin: 0;
    outline: none;
    font-size: 16px;
    vertical-align: middle;
    display: inline-block;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Hide the mobile button by default on desktop */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
        visibility: hidden;
        opacity: 0;
        position: absolute;
        pointer-events: none;
    }
}

/* Hero Section */
.hero {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 10rem 0 6rem;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Page Hero Section (for About & Contact pages) */
.page-hero {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 10rem 0 4rem;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.25rem;
}

/* Services Overview Section */
.services-overview {
    padding: 6rem 0;
}

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

.service-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card-link {
    display: block;
    color: var(--text-dark);
    height: 100%;
}

.service-card-link:hover {
    text-decoration: none;
    color: var(--text-dark);
}

.service-card .icon {
    margin-bottom: 1.5rem;
}

.service-card .icon img {
    width: 60px;
    height: 60px;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Service Detail Sections */
.service-detail {
    padding: 6rem 0;
}

.service-detail:nth-child(odd) {
    background-color: var(--light-bg);
}

.service-detail:nth-child(even) {
    background-color: #f9fafb;
}

.service-detail .btn {
    display: block;
    margin: 0 auto;
    max-width: fit-content;
}

/* Web Development Section */
.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.option-card {
    background-color: #111827;
    color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
}

.sample-websites {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.website-sample {
    background-color: #1f2937;
    border-radius: var(--border-radius);
    height: 200px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Software Development Section */
.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tech {
    background-color: #f3f4f6;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 500;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.project {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.project-img {
    width: 100%;
    height: 240px;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dashboard-project {
    background-color: #1f2937;
    background-image: linear-gradient(45deg, #1a56db 25%, #1e429f 25%, #1e429f 50%, #1a56db 50%, #1a56db 75%, #1e429f 75%, #1e429f 100%);
    background-size: 40px 40px;
    position: relative;
}

.dashboard-project:after {
    content: "Analytics Dashboard";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
}

.analytics-dashboard {
    background-color: #111827;
    background-image: linear-gradient(to right, #111827, #1a56db);
    position: relative;
}

.analytics-dashboard:after {
    content: "Business Metrics";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
}

.task-management {
    background-color: #2563eb;
    background-image: linear-gradient(to bottom, #2563eb, #1d4ed8);
    position: relative;
}

.task-management:after {
    content: "Task Management";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
}

.mobile-app {
    background-color: #1e293b;
    background-image: linear-gradient(135deg, #1e293b 25%, #0f172a 25%, #0f172a 50%, #1e293b 50%, #1e293b 75%, #0f172a 75%, #0f172a 100%);
    background-size: 20px 20px;
    position: relative;
}

.mobile-app:after {
    content: "Mobile Application";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
}

/* Database Management Section */
.database-types {
    display: flex;
    justify-content: space-around;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.db-type {
    text-align: center;
}

.db-icon {
    background-color: #111827;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.db-icon img {
    width: 40px;
    height: 40px;
}

.database-samples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.db-sample {
    background-color: #1f2937;
    border-radius: var(--border-radius);
    height: 180px;
}

/* IT Consulting Section */
.consulting-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.icon-item {
    width: 60px;
    height: 60px;
}

.icon-item img {
    width: 100%;
    height: 100%;
}

/* Contact Page Styles */
.contact-page {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-method {
    margin-bottom: 2rem;
}

.contact-method h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-method a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-box {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.contact-form-container h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.faq-section {
    margin-top: 4rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* About Page Styles */
.about-content {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-text h2 {
    text-align: left;
    margin-top: 2rem;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-values h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.value-card {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.team-section {
    margin-bottom: 4rem;
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.cta-section {
    text-align: center;
    padding: 3rem;
    background-color: #f3f4f6;
    border-radius: var(--border-radius);
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Contact Form */
.contact-form {
    max-width: 100%;
    margin: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    gap: 2rem;
}

.copyright {
    text-align: center;
    color: var(--text-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-values {
        order: 2;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Mobile Menu Styles */
    .mobile-menu-btn {
        display: block;
        order: 3;
    }
    
    header .container {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--dark-bg);
        padding: 6rem 2rem 2rem;
        transition: all 0.3s ease;
        z-index: 1000;
        order: 2;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul li {
        margin: 1rem 0;
        width: 100%;
    }
    
    nav ul li a {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem 0;
    }
    
    /* Mobile menu button animation when active */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-links ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .project-gallery,
    .sample-websites {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .service-options {
        grid-template-columns: 1fr;
    }
    
    .database-samples {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Thank You Page Styles */
.thank-you-message {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.success-icon {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
    animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-message h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.thank-you-message p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.thank-you-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .thank-you-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Fix for potential spacing issues */
body header .container > *::before,
body header .container > *::after {
    content: none;
}

/* Specifically target Chrome and Safari */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    header .container {
        display: -webkit-flex;
        -webkit-justify-content: space-between;
        -webkit-align-items: center;
    }
}

/* Fix for Firefox */
@-moz-document url-prefix() {
    header .container {
        display: flex;
    }
} 