/* TechByte Systems - Professional UI Redesign */
/* Following UI/UX Pro Max Skill Guidelines */

:root {
    --brand-dark-slate: #2E3138;
    --brand-digital-orange: #F39237;
    --brand-mint-green: #48D1A5;
    --brand-muted-subtitles: #606470;
    --brand-component-bg: #F8F9FA;
    --white: #FFFFFF;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 6px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-lifted: 0 12px 40px rgba(46, 49, 56, 0.12);
    --transition-smooth: none;
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--brand-dark-slate);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.content-wrapper,
.card,
.service-card,
.portfolio-item,
.stat-item,
.blueprint-step,
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.card:hover,
.service-card:hover,
.portfolio-item:hover {
    box-shadow: var(--shadow-lifted);
}

.content-wrapper {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand-dark-slate);
    margin-bottom: 1rem;
}

h1 { 
    font-size: 2.5rem; 
    font-weight: 800; 
}

h2 { 
    font-size: 2rem; 
    font-weight: 700; 
}

h3 { 
    font-size: 1.25rem; 
    font-weight: 600; 
}

h4 { 
    font-size: 1rem; 
    font-weight: 600; 
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.25px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-digital-orange);
    color: var(--white);
    border-color: var(--brand-digital-orange);
}

.btn-primary:hover {
    background: #e07e2a;
    box-shadow: var(--shadow-lifted);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--brand-dark-slate);
    color: var(--brand-dark-slate);
}

.btn-outline:hover {
    background: var(--brand-dark-slate);
    color: var(--white);
}

/* Header - Three Column Navigation */
.global-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(46, 49, 56, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.header-cta {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-width: 180px;
    max-height: 60px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.header-nav {
    display: flex;
    gap: 28px;
    flex-wrap: nowrap;
}

.nav-link {
    color: var(--brand-dark-slate);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: var(--transition-smooth);
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--brand-digital-orange);
}

.nav-link.active {
    color: var(--brand-digital-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-digital-orange);
    transition: none;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 800px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 0;
    position: relative;
    background: var(--white);
    background-repeat: no-repeat;
    background-position: center;
    background-image: 
        linear-gradient(rgba(46, 49, 56, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 49, 56, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow: hidden;
}

/* Home Hero Prominence Boost */
.home-hero .hero-title {
    font-size: 4.8rem;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
}

.home-hero .hero-subtitle {
    font-size: 1.4rem;
    max-width: 650px;
    margin-bottom: 4rem;
}

.home-hero .btn {
    padding: 20px 48px;
    font-size: 18px;
}

/* Internal Page Compact Hero - Fixed spacing */
.hero-compact {
    min-height: 250px !important;
    padding: 40px 0 !important;
    grid-template-columns: 1fr !important;
    text-align: center;
}

.hero-compact .hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(ellipse, var(--brand-mint-green) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 500px;
    position: relative;
    z-index: 1;
    margin-left: auto;
    margin-right: 0;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--brand-dark-slate);
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--brand-digital-orange);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--brand-muted-subtitles);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-desktop {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-visual-desktop img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lifted);
}

.hero-visual-desktop img:hover {
}

@media (max-width: 768px) {
    .hero-visual-desktop img {
        max-height: 300px;
        object-fit: cover;
    }
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.dashboard-dots {
    display: flex;
    gap: 8px;
}

.dashboard-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dashboard-dots .dot-red { background: #ff5f57; }
.dashboard-dots .dot-yellow { background: #ffbd2e; }
.dashboard-dots .dot-green { background: #28ca42; }

.dashboard-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-muted-subtitles);
}

.dashboard-content {
    display: grid;
    gap: 12px;
}

.dashboard-card {
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-subtle);
}

.dashboard-card h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.dashboard-card p {
    font-size: 13px;
    color: var(--brand-muted-subtitles);
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--white);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--border-radius-sm);
    background: var(--brand-component-bg);
    transition: var(--transition-smooth);
    border: 1px solid rgba(46, 49, 56, 0.05);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item:hover {
    box-shadow: var(--shadow-lifted);
    transform: translateY(-4px);
    border-color: var(--brand-digital-orange);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-digital-orange);
    border-radius: 50%;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.stat-item:hover {
    box-shadow: var(--shadow-lifted);
    transform: translateY(-4px);
    border-color: var(--brand-digital-orange);
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--brand-dark-slate);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--brand-muted-subtitles);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--brand-component-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 1rem;
    color: var(--brand-dark-slate);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--brand-muted-subtitles);
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 32px;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: var(--shadow-lifted);
    border-top: 3px solid var(--brand-digital-orange);
}

.service-illustration {
    width: 100%;
    height: 140px;
    margin-bottom: 20px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--brand-component-bg);
}

.service-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card:hover .service-illustration img {
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-component-bg);
    border-radius: 10px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: var(--brand-digital-orange);
}

.service-card h3 {
    font-size: 1.125rem;
    margin-bottom: 14px;
    color: var(--brand-dark-slate);
}

.service-card p {
    color: var(--brand-muted-subtitles);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.card-link {
    color: var(--brand-dark-slate);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.card-link:hover {
    color: var(--brand-digital-orange);
}

/* The TechByte Blueprint - 4-Step Process */
.blueprint-section {
    padding: 80px 0;
    background: var(--white);
}

.blueprint-container {
    position: relative;
}

.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.blueprint-step {
    text-align: center;
    position: relative;
}

.blueprint-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 35px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-digital-orange), var(--brand-mint-green));
    z-index: 0;
}

.step-number {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-digital-orange);
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 800;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--brand-dark-slate);
}

.step-description {
    font-size: 13px;
    color: var(--brand-muted-subtitles);
    line-height: 1.6;
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 0;
    background: var(--brand-component-bg);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-content h2 {
    margin-bottom: 1.25rem;
    color: var(--brand-dark-slate);
}

.why-text {
    font-size: 1.125rem;
    margin-bottom: 1.75rem;
    color: var(--brand-muted-subtitles);
    line-height: 1.7;
}

.why-list {
    list-style: none;
    margin-bottom: 2rem;
}

.why-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--brand-dark-slate);
    font-weight: 500;
}

.why-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: var(--brand-mint-green);
    border-radius: 50%;
}

.why-list li::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 5px;
    height: 8px;
    border: 2px solid var(--white);
    border-top: none;
    border-left: none;
}

.why-image img {
    width: 100%;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lifted);
}

.why-image img:hover {
}

/* Portfolio Section */
.portfolio-section {
    padding: 80px 0;
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item {
    background: var(--brand-component-bg);
    border-radius: var(--border-radius-sm);
    padding: 32px;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.portfolio-item:hover {
    box-shadow: var(--shadow-lifted);
}

.portfolio-tag {
    display: inline-block;
    background: var(--white);
    color: var(--brand-dark-slate);
    font-size: 10px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.portfolio-item h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--brand-dark-slate);
}

.portfolio-item p {
    color: var(--brand-muted-subtitles);
    margin-bottom: 16px;
    line-height: 1.6;
}

.portfolio-screenshot {
    margin-bottom: 20px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    aspect-ratio: 16/10;
    width: 100%;
    background: var(--brand-component-bg);
}

.portfolio-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item:hover .portfolio-screenshot img {
}
    display: inline-block;
    background: var(--white);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 100px;
    margin-right: 6px;
    margin-bottom: 6px;
    color: var(--brand-muted-subtitles);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-illustration {
    width: 100%;
    height: 160px;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--brand-component-bg);
}

.blog-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card:hover .blog-illustration img {
}

.blog-thumbnail {
    border-radius: 8px;
    margin-bottom: 16px;
    width: 100%;
    height: auto;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 32px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* CTA Section */
.global-cta {
    padding: 80px 0;
    background: var(--brand-dark-slate);
    text-align: center;
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.global-cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.global-cta p {
    font-size: 1rem;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.8);
}

.global-cta .btn-primary {
    background: var(--brand-digital-orange);
    color: var(--white);
}

/* Footer */
.global-footer {
    background: var(--brand-dark-slate);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    max-width: 280px;
    line-height: 1.7;
    font-size: 14px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--brand-digital-orange);
    font-weight: 600;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.footer-column a:hover {
    color: var(--brand-digital-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Footer Newsletter */
.footer-newsletter {
    margin-top: 20px;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 14px;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-form button {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.footer-logo-img {
    display: block;
    max-width: 250px;
    max-height: 100px;
    width: auto;
    height: auto;
    margin-bottom: 16px;
}

/* Animations */
.fade-in {
    opacity: 1;
    transform: none;
}

.fade-in.visible {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid,
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blueprint-grid {
        grid-template-columns: 1fr;
    }
    
    .blueprint-step:not(:last-child)::after {
        display: none;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        min-height: 400px;
        padding: 80px 0 40px;
        text-align: center;
    }
    
    .hero-visual {
        margin-top: 40px;
    }

    .hero-visual-desktop img {
        max-height: 300px;
        object-fit: cover;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .stats-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .services-grid,
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .header-nav {
        display: none;
    }
    
    .logo-img {
        max-width: 150px;
        max-height: 50px;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        background: var(--brand-digital-orange);
        color: var(--white);
        border: none;
        width: 44px;
        height: 44px;
        border-radius: var(--border-radius-sm);
        font-size: 20px;
        cursor: pointer;
        padding: 8px;
    }
    
    .footer-newsletter-form {
        flex-direction: column;
    }
    
    .footer-newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .header-cta {
        gap: 8px;
    }
    
    .header-cta .btn-outline {
        display: none;
    }
    
    .header-cta .btn-primary {
        display: none;
    }
    
    .content-wrapper,
    .contact-form-wrapper,
    .service-card,
    .portfolio-item,
    .stat-item {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .why-grid {
        text-align: center;
    }
    
    .btn-primary,
    .hero-buttons .btn {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    
    .hero-buttons {
        align-items: center;
    }
    
    .footer-logo-img {
        max-width: 220px;
        max-height: 90px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .hero-dashboard {
        padding: 20px;
    }
    
    .service-card,
    .portfolio-item,
    .stat-item {
        padding: 24px;
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    padding: 80px 32px 32px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .nav-link {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 24px;
}