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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    position: relative;
}

/* General Body Styles */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background: #121212 !important;
    color: #e0e0e0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Ensure all sections have proper background */
section {
    background: #121212;
    position: relative;
}

/* Container */
.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
    padding: 0 20px;
}

/* Header */
header {
    background: #ffffff !important;
    color: #121212;
    padding: 20px 0;
    min-height: auto;
    border-bottom: 1px solid #8A2BE2;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease-in-out;
    width: 100%;
}

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

header.scrolled {
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.1);
}

header a {
    color: #121212;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

header a:hover {
    color: #8A2BE2;
}

header ul {
    padding: 0;
    margin: 0;
    list-style: none;
    float: right;
    display: flex;
    align-items: center;
}

header li {
    display: inline;
    padding: 0 20px;
}

header #branding h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

header #branding h1 a {
    color: #000000;
}

header nav {
    margin-top: 0;
}

/* Home Section */
.home-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.home-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.home-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(147, 112, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(75, 0, 130, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

.home-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(138, 43, 226, 0.1) 0%, 
        rgba(147, 112, 219, 0.05) 50%, 
        rgba(75, 0, 130, 0.1) 100%);
    animation: gradientShift 15s ease-in-out infinite;
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.home-text {
    animation: fadeInUp 1s ease-out;
}

.home-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(45deg, #8A2BE2, #9370DB, #4B0082);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 3s ease-in-out infinite;
}

.home-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #b0b0b0;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.home-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #8A2BE2;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-cta {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: linear-gradient(45deg, #8A2BE2, #9370DB);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
    background: linear-gradient(45deg, #9370DB, #8A2BE2);
}

.cta-button.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #8A2BE2;
}

.cta-button.secondary:hover {
    background: #8A2BE2;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.home-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.automation-workflow {
    position: relative;
    width: 500px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.workflow-container {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}



.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border-radius: 12px;
    border: 1px solid rgba(147, 112, 219, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: stepPulse 3s ease-in-out infinite;
    min-width: 100px;
}

.workflow-step:hover {
    transform: translateY(-3px);
    border-color: rgba(147, 112, 219, 0.8);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

.workflow-operator {
    font-size: 2rem;
    font-weight: 700;
    color: #8A2BE2;
    animation: operatorPulse 2s ease-in-out infinite;
}

.workflow-arrow {
    font-size: 2.5rem;
    font-weight: 900;
    color: #8A2BE2;
    animation: arrowPulse 2s ease-in-out infinite;
}

.workflow-arrow-mobile {
    display: none;
}

.step-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.6));
    transition: all 0.3s ease;
}

.step-icon:hover {
    filter: drop-shadow(0 0 25px rgba(138, 43, 226, 0.8));
    transform: scale(1.05);
}

/* Enhanced SME Icon - Modern Business Building */
.icon-sme {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8A2BE2, #9370DB);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    transition: all 0.3s ease;
}

.icon-sme:hover {
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
}

.icon-sme::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px 4px 0 0;
    top: 8px;
    left: 13px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.icon-sme::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 4px 4px;
    top: 28px;
    left: 11px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Enhanced Prefornix Icon - Network/Web Connector */
.icon-prefornix {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8A2BE2, #4B0082);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.icon-prefornix:hover {
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.9);
    transform: scale(1.05);
}

/* Network grid lines */
.icon-prefornix::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 10px 10px;
    border-radius: 8px;
    animation: networkPulse 4s ease-in-out infinite;
}

/* Central connection hub */
.icon-prefornix::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    top: 19px;
    left: 19px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: hubPulse 3s ease-in-out infinite;
}

/* Network connection nodes */
.icon-prefornix .network-node-1 {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 8px;
    left: 8px;
    animation: nodePulse 2s ease-in-out infinite;
}

.icon-prefornix .network-node-2 {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 8px;
    right: 8px;
    animation: nodePulse 2s ease-in-out infinite 0.5s;
}

.icon-prefornix .network-node-3 {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    bottom: 8px;
    left: 8px;
    animation: nodePulse 2s ease-in-out infinite 1s;
}

.icon-prefornix .network-node-4 {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    bottom: 8px;
    right: 8px;
    animation: nodePulse 2s ease-in-out infinite 1.5s;
}

/* Connection lines */
.icon-prefornix .connection-line-1 {
    position: absolute;
    width: 1px;
    height: 15px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
    top: 14px;
    left: 24px;
    animation: connectionFlow 3s ease-in-out infinite;
}

.icon-prefornix .connection-line-2 {
    position: absolute;
    width: 15px;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
    top: 24px;
    left: 14px;
    animation: connectionFlow 3s ease-in-out infinite 0.5s;
}

/* Enhanced Growth Icon - Dynamic Chart */
.icon-growth {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8A2BE2, #9370DB);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    transition: all 0.3s ease;
}

.icon-growth:hover {
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
}

/* Growth trend line base */
.icon-growth::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    bottom: 8px;
    left: 9px;
}

/* Growth bars */
.icon-growth::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 3px;
    bottom: 10px;
    left: 8px;
    animation: growthBar1 2.5s ease-in-out infinite;
}

.icon-growth .growth-bar-2 {
    content: '';
    position: absolute;
    width: 6px;
    height: 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 3px;
    bottom: 10px;
    left: 18px;
    animation: growthBar2 2.5s ease-in-out infinite 0.3s;
}

.icon-growth .growth-bar-3 {
    content: '';
    position: absolute;
    width: 6px;
    height: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 3px;
    bottom: 10px;
    left: 28px;
    animation: growthBar3 2.5s ease-in-out infinite 0.6s;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-1 { animation-delay: 0s; }
.step-2 { animation-delay: 1s; }
.step-3 { animation-delay: 2s; }

.automation-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #8A2BE2;
    border-radius: 50%;
    animation: particleFlow 4s linear infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 40%;
    left: 20%;
    animation-delay: 0.8s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 30%;
    animation-delay: 1.6s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 40%;
    animation-delay: 2.4s;
}

.particle:nth-child(5) {
    top: 70%;
    left: 50%;
    animation-delay: 3.2s;
}

.automation-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    border-radius: 20px;
    animation: glowPulse 4s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid #8A2BE2;
    border-bottom: 3px solid #8A2BE2;
    transform: rotate(45deg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 30px rgba(138, 43, 226, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 0 50px rgba(138, 43, 226, 0.7),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes stepPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(138, 43, 226, 0.4);
    }
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes operatorPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes particleFlow {
    0% {
        opacity: 0;
        transform: translateX(-50px) translateY(0);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(50px) translateY(-20px);
    }
}

@keyframes automationShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Enhanced Growth Animations */
@keyframes growthBar1 {
    0%, 100% {
        height: 8px;
        transform: scale(1);
    }
    50% {
        height: 12px;
        transform: scale(1.1);
    }
}

@keyframes growthBar2 {
    0%, 100% {
        height: 14px;
        transform: scale(1);
    }
    50% {
        height: 18px;
        transform: scale(1.1);
    }
}

@keyframes growthBar3 {
    0%, 100% {
        height: 20px;
        transform: scale(1);
    }
    50% {
        height: 26px;
        transform: scale(1.1);
    }
}

/* Enhanced Prefornix Network Animations */
@keyframes networkPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes hubPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(255, 255, 255, 1);
    }
}

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes connectionFlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}



@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* Sections */
section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    text-align: center;
    padding-bottom: 40px;
    font-size: 36px;
    font-weight: 700;
    color: #9370DB;
}

/* Services */
#services {
    background: #121212 !important;
    padding: 120px 0;
    position: relative;
    width: 100%;
}

#services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

#services .box {
    background: linear-gradient(145deg, #1A1A1A, #101010);
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

#services .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: rgba(147, 112, 219, 0.3);
}

#services .box i {
    font-size: 50px;
    margin-bottom: 20px;
    color: #9370DB;
}

#services .box h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ffffff;
}

/* About Us */
#about {
    background: linear-gradient(135deg, #4B0082, #2a0d45) !important;
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
    z-index: 1;
    padding: 120px 0;
    position: relative;
    width: 100%;
}

#about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
}

/* Contact */
#contact {
    background: #121212;
    padding-top: 180px;
}

#contact form {
    max-width: 600px;
    margin: 20px auto 0 auto;
    display: grid;
    gap: 20px;
}

#contact input[type="text"], 
#contact input[type="email"], 
#contact textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #444;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #333;
    color: #e0e0e0;
}

#contact input[type="text"]:focus, 
#contact input[type="email"]:focus, 
#contact textarea:focus {
    outline: none;
    border-color: #9370DB;
    box-shadow: 0 0 5px rgba(147, 112, 219, 0.3);
}

#contact button {
    padding: 15px;
    border: 0;
    background: linear-gradient(45deg, #8A2BE2, #9370DB);
    color: #ffffff;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#contact button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.3);
    background: linear-gradient(45deg, #9370DB, #8A2BE2);
}


/* Footer */
footer {
    padding: 40px 20px;
    color: #a0a0a0;
    background-color: #1A1A1A !important;
    text-align: center;
    width: 100%;
    position: relative;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #121212;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media(max-width: 768px){
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    /* Header Mobile Styles */
    header .container {
        flex-wrap: wrap;
        position: relative;
    }
    
    header #branding {
        flex: 1;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #8A2BE2;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        order: 3;
        width: 100%;
    }
    
    header nav.active {
        display: block;
    }
    
    header nav ul {
        flex-direction: column;
        padding: 20px 0;
        margin: 0;
        text-align: center;
    }
    
    header nav ul li {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    
    header nav ul li:last-child {
        border-bottom: none;
    }
    
    header nav ul li a {
        display: block;
        padding: 5px 0;
        font-size: 16px;
        font-weight: 500;
    }

    /* Home Section Mobile */
    .home-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 40px 0 80px 0;
    }

    .home-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .home-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .automation-workflow {
        width: 100%;
        max-width: 350px;
        height: auto;
        margin: 0 auto;
    }

    .workflow-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .workflow-operator {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }
    
    .workflow-arrow-desktop {
        display: none;
    }
    
    .workflow-arrow-mobile {
        display: block;
        font-size: 1.5rem;
        margin: 10px 0;
    }
    
    .workflow-step {
        min-width: 120px;
        padding: 20px;
    }
    
    /* Services Mobile */
    #services .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #services .box {
        padding: 30px 20px;
    }
    
    .scroll-indicator {
        bottom: 1.5rem;
    }
}

@media(max-width: 480px){
    .container {
        padding: 0 10px;
    }
    
    header #branding h1 {
        font-size: 20px;
    }
    
    .home-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }
    
    .home-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .workflow-step {
        min-width: 100px;
        padding: 15px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
    }
    
    .icon-sme,
    .icon-prefornix,
    .icon-growth {
        width: 45px;
        height: 45px;
    }
    
    /* Adjust growth icon for medium mobile screens */
    .icon-growth::after {
        animation: growthBar1Medium 2.5s ease-in-out infinite;
    }
    
    .icon-growth .growth-bar-2 {
        animation: growthBar2Medium 2.5s ease-in-out infinite 0.3s;
    }
    
    .icon-growth .growth-bar-3 {
        animation: growthBar3Medium 2.5s ease-in-out infinite 0.6s;
    }
    
    .automation-workflow {
        max-width: 300px;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
}

@media(max-width: 360px){
    header #branding h1 {
        font-size: 18px;
    }
    
    .home-title {
        font-size: 1.8rem;
    }
    
    .workflow-step {
        min-width: 80px;
        padding: 12px;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
    }
    
    .icon-sme,
    .icon-prefornix,
    .icon-growth {
        width: 35px;
        height: 35px;
    }
    
    /* Adjust internal icon elements for very small screens */
    .icon-sme::before {
        width: 18px;
        height: 15px;
        top: 6px;
        left: 8px;
    }
    
    .icon-sme::after {
        width: 21px;
        height: 9px;
        top: 21px;
        left: 7px;
    }
    
    .icon-prefornix::before {
        width: 28px;
        height: 28px;
        background-size: 7px 7px;
    }
    
    .icon-prefornix::after {
        width: 8px;
        height: 8px;
        top: 13px;
        left: 13px;
    }
    
    .icon-growth::before {
        width: 24px;
        left: 6px;
        bottom: 6px;
    }
    
    .icon-growth::after {
        width: 4px;
        height: 5px;
        left: 6px;
        bottom: 7px;
        animation: growthBar1Mobile 2.5s ease-in-out infinite;
    }
    
    .icon-growth .growth-bar-2 {
        width: 4px;
        height: 8px;
        left: 12px;
        bottom: 7px;
        animation: growthBar2Mobile 2.5s ease-in-out infinite 0.3s;
    }
    
    .icon-growth .growth-bar-3 {
        width: 4px;
        height: 11px;
        left: 18px;
        bottom: 7px;
        animation: growthBar3Mobile 2.5s ease-in-out infinite 0.6s;
    }
    
    /* Adjust Prefornix network nodes for very small screens */
    .icon-prefornix .network-node-1,
    .icon-prefornix .network-node-2,
    .icon-prefornix .network-node-3,
    .icon-prefornix .network-node-4 {
        width: 4px;
        height: 4px;
    }
    
    .icon-prefornix .network-node-1 {
        top: 6px;
        left: 6px;
    }
    
    .icon-prefornix .network-node-2 {
        top: 6px;
        right: 6px;
    }
    
    .icon-prefornix .network-node-3 {
        bottom: 6px;
        left: 6px;
    }
    
    .icon-prefornix .network-node-4 {
        bottom: 6px;
        right: 6px;
    }
    
    .icon-prefornix .connection-line-1 {
        height: 10px;
        top: 10px;
        left: 17px;
    }
    
    .icon-prefornix .connection-line-2 {
        width: 10px;
        top: 17px;
        left: 10px;
    }
    
    .scroll-indicator {
        bottom: 0.5rem;
    }
}

/* Mobile-specific growth bar animations for medium mobile screens */
@media(max-width: 480px){
    @keyframes growthBar1Medium {
        0%, 100% {
            height: 8px;
            transform: scale(1);
        }
        50% {
            height: 10px;
            transform: scale(1.1);
        }
    }

    @keyframes growthBar2Medium {
        0%, 100% {
            height: 14px;
            transform: scale(1);
        }
        50% {
            height: 16px;
            transform: scale(1.1);
        }
    }

    @keyframes growthBar3Medium {
        0%, 100% {
            height: 20px;
            transform: scale(1);
        }
        50% {
            height: 22px;
            transform: scale(1.1);
        }
    }
}

/* Mobile-specific growth bar animations for very small screens */
@media(max-width: 360px){
    @keyframes growthBar1Mobile {
        0%, 100% {
            height: 5px;
            transform: scale(1);
        }
        50% {
            height: 7px;
            transform: scale(1.1);
        }
    }

    @keyframes growthBar2Mobile {
        0%, 100% {
            height: 8px;
            transform: scale(1);
        }
        50% {
            height: 11px;
            transform: scale(1.1);
        }
    }

    @keyframes growthBar3Mobile {
        0%, 100% {
            height: 11px;
            transform: scale(1);
        }
        50% {
            height: 15px;
            transform: scale(1.1);
        }
    }
}
