/* ---
Design System
--- */
:root {
    /* Colors */
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --bg-light: #ffffff;
    --bg-dark: #f9fafb;
    --border-color: #e5e7eb;

    /* Typography */
    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing */
    --container-width: 1100px;
    --section-padding: 6rem;

    /* Border Radius */
    --border-radius: 0.5rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #6366f1;
        --primary-hover: #818cf8;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --bg-light: #111827;
        --bg-dark: #1f2937;
        --border-color: #374151;
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background: var(--bg-light);
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4 {
    color: var(--text-primary);
    line-height: 1.3;
    font-weight: 800;
}

h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }

p { margin-bottom: 1.5rem; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); }
ul { list-style-type: none; }

section {
    padding: var(--section-padding) 0;
    border-bottom: 1px solid var(--border-color);
}
section:last-of-type { border-bottom: none; }
#services, #about { background-color: var(--bg-dark); }

/* ---
Header & Navigation
--- */
header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

header .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

header ul {
    display: flex;
    gap: 2rem;
}

header ul li a {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s;
}

header ul li a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px 0;
    background: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

main {
    padding-top: 70px;
}

/* ---
Buttons
--- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
     background: var(--bg-dark);
     transform: translateY(-2px);
}
@media (prefers-color-scheme: dark) {
    .btn-secondary {
        background: var(--bg-dark);
    }
    .btn-secondary:hover {
        background: var(--bg-light);
    }
}

/* ---
Hero Section
--- */
#home {
    display: flex;
    align-items: center;
    text-align: center;
    min-height: calc(90vh - 70px);
}
.hero-content .subtitle {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ---
Services Section
--- */
#services ul {
    list-style: inside;
    margin-left: 1rem;
    margin-top: 1.5rem;
}
#services ul li {
    margin-bottom: 0.5rem;
}

.dayline-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}
.feature-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.feature-item p {
    margin-bottom: 0;
}
.custom-dev-title {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 1rem;
}
#services > .container > p { text-align: center; max-width: 700px; margin: auto; }
#services > .container > ul {
    max-width: 700px;
    margin: 1.5rem auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
}

/* ---
About Section
--- */
#about > .container > p {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3rem;
}
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.why-us-item {
    text-align: center;
    padding: 1.5rem;
}
.why-us-item p { margin-bottom: 0; }

/* ---
Contact Section
--- */
#contact > .container > p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    background-color: var(--bg-dark);
    padding: 3rem;
    border-radius: var(--border-radius);
}
.contact-form form {
    display: grid;
    gap: 1.5rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-light);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent);
}
.contact-form button {
    width: auto;
    justify-self: start;
}
.contact-info p {
    margin-bottom: 1rem;
}

/* ---
Footer
--- */
footer {
    background: var(--bg-dark);
    padding: 2.5rem 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-left p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}
.copyright {
    font-size: 0.9rem;
    text-align: right;
}

/* ---
Responsive
--- */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    :root { --section-padding: 4rem; }

    header ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-light);
        padding: 1rem 0;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        gap: 0;
        border-bottom: 1px solid var(--border-color);
    }

    header ul.active { display: flex; }
    
    header ul li { text-align: center; }
    
    header ul li a {
        padding: 1rem 0;
        display: block;
        width: 100%;
        font-weight: 600;
        color: var(--text-primary);
    }
    header ul li a:hover {
        background-color: var(--bg-dark);
        color: var(--primary-color);
    }

    .hamburger { display: block; }
    
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; }
    .contact-wrapper { padding: 2rem; }
} 