/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a3a52;
    --primary-dark: #0f2437;
    --accent-color: #0066cc;
    --accent-light: #e8f1ff;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --text-light: #999;
    --bg-white: #ffffff;
    --bg-light: #f5f7fa;
    --bg-ultra-light: #fafbfc;
    --border-color: #e0e3e8;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--bg-ultra-light);
    overflow-x: hidden;
    letter-spacing: 0.2px;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    transition: padding 0.3s ease;
}

.header.scrolled .container {
    padding: 12px 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.logo {
    height: 130px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
    transition: height 0.3s ease, margin 0.3s ease;
    margin: -10px 0;
}

.logo.scrolled {
    height: 50px;
    margin: 0;
}

.branding h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    letter-spacing: -0.6px;
    line-height: 1.3;
}

.founder {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin: 4px 0 0 0;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 3px 0 0 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav a:hover {
    color: var(--primary-color);
}

.nav a:hover::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 16px;
    opacity: 0.92;
    font-weight: 500;
}

.hero-description {
    font-size: 1.05rem;
    margin-bottom: 40px;
    opacity: 0.88;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 14px 45px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    background-color: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Sections */
.section {
    padding: 100px 20px;
}

.section.alt {
    background-color: var(--bg-light);
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 60px;
    text-align: center;
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* About Section */
.about-content {
    max-width: 850px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 24px;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(0, 102, 204, 0.05) 100%);
    padding: 28px;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    margin: 30px 0 !important;
    font-size: 1.02rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--accent-light);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.75;
    font-size: 0.95rem;
}

/* Skills Section */
.skills-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    color: var(--primary-dark);
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Balanced Professional Color Palette */

/* C# & .NET */
.tag-csharp {
    background: #2d5016;
    color: white;
}

.tag-dotnet {
    background: #5e3fa2;
    color: white;
}

/* Web */
.tag-web {
    background: #0066cc;
    color: white;
}

/* Patterns */
.tag-pattern {
    background: #d97706;
    color: white;
}

/* Delphi */
.tag-delphi {
    background: #b91c1c;
    color: white;
}

/* PHP */
.tag-php {
    background: #4c51bf;
    color: white;
}

/* Python */
.tag-python {
    background: #1e40af;
    color: white;
}

/* Database */
.tag-db {
    background: #7f1d1d;
    color: white;
}

.tag-perf {
    background: #b45309;
    color: white;
}

/* Linux */
.tag-linux {
    background: #78350f;
    color: white;
}

/* Infrastructure */
.tag-infra {
    background: #0369a1;
    color: white;
}

/* Docker */
.tag-docker {
    background: #1e3a8a;
    color: white;
}

/* ERP */
.tag-erp {
    background: #0f766e;
    color: white;
}

/* Business */
.tag-business {
    background: #5b21b6;
    color: white;
}

/* Security */
.tag-security {
    background: #be123c;
    color: white;
}

/* Architecture */
.tag-arch {
    background: #4338ca;
    color: white;
}

/* Debugging */
.tag-debug {
    background: #9d174d;
    color: white;
}

/* Git & Version Control */
.tag-git {
    background: #8b2c1c;
    color: white;
}

/* CI/CD */
.tag-cicd {
    background: #0c4a6e;
    color: white;
}

/* Tools */
.tag-tool {
    background: #4f46e5;
    color: white;
}

/* Methodologies */
.tag-method {
    background: #065f46;
    color: white;
}

/* Testing */
.tag-test {
    background: #a16207;
    color: white;
}

/* Quality */
.tag-quality {
    background: #164e63;
    color: white;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-content > p:first-of-type {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 50px;
    line-height: 1.8;
}

.email-link {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    margin-right: 15px;
    margin-bottom: 15px;
}

.email-link:hover {
    background-color: #0052a3;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-links-simple {
    margin-bottom: 30px;
}

.linkedin-link {
    display: inline-block;
    padding: 12px 32px;
    background-color: #0a66c2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.linkedin-link:hover {
    background-color: #094399;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav {
        display: none;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        order: 3;
        background-color: var(--bg-light);
        padding: 15px;
        border-top: 1px solid var(--border-color);
        margin-top: 10px;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 8px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav a::after {
        display: none;
    }

    .nav-toggle {
        display: block;
        order: 2;
        font-size: 1.3rem;
    }

    .hero {
        padding: 70px 20px;
    }

    .hero h2 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .section {
        padding: 80px 20px;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 45px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skills-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo-section {
        flex: 0;
    }

    .branding h1 {
        font-size: 1.2rem;
    }

    .founder {
        font-size: 0.8rem;
    }

    .tagline {
        font-size: 0.7rem;
    }

    .logo {
        height: 80px;
    }

    .logo.scrolled {
        height: 45px;
    }

    .cta-button {
        display: inline-block;
        font-size: 0.95rem;
        padding: 12px 35px;
    }

    .service-card,
    .expertise-category {
        padding: 30px;
    }

    .about-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        position: relative;
    }

    .hero {
        padding: 50px 15px;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section {
        padding: 60px 15px;
    }

    .section h2 {
        font-size: 1.5rem;
        margin-bottom: 35px;
    }

    .service-card,
    .expertise-category {
        padding: 25px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 15px;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
        padding: 14px 25px;
        font-size: 0.95rem;
    }

    .nav {
        margin-top: 5px;
    }
}
